pathological example
A pathological example is the mathematical equivalent of a crash-test dummy: a deliberately weird object built to slam into your intuition and reveal where it dents. It behaves so contrary to naive expectation that it forces you to state exactly what you were secretly assuming.
Formally, a pathological example is a construction satisfying the letter of some definition while flagrantly violating the mental picture that usually accompanies it. Famous specimens include a function continuous everywhere yet differentiable nowhere (Weierstrass), a curve that fills a square (Peano), and a function discontinuous at every rational but continuous at every irrational. Each is perfectly legitimate; only our intuition was over-optimistic.
Pathologies are not curiosities for their own sake — they do indispensable work. They sharpen hypotheses by showing which conditions a theorem truly cannot drop, and they expose hidden assumptions baked into casual reasoning. The honest perspective: what one generation calls pathological a later generation often calls typical. Continuous-nowhere-differentiable functions seemed monstrous in 1872; in modern probability, a ‘random’ continuous path is nowhere differentiable with probability one.
Dirichlet's function D(x) = 1 if x is rational, 0 if irrational, is discontinuous at every single point and is not Riemann integrable. It looks innocent but breaks the naive belief that a bounded function on [0, 1] must have a sensible area — a pathology that motivated the Lebesgue integral.
A bounded function that defeats Riemann integration outright.