Let with the uniform norm. For rational numbers , let and be the sets of functions that are respectively nondecreasing and nonincreasing on .
Both sets are closed. For example, if and uniformly, then for in ,They also have empty interior. Given and , continuity lets us choose sufficiently close thatAdd a continuous triangular bump supported near , with , , and . Then , so the -ball about is not contained in . The analogous upward bump at deals with . Thus both sets are nowhere dense.
There are only countably many rational pairs , sois meagre. Completeness of and the Baire category theorem show that its complement is nonempty. Choose in that complement. If were monotone on an interval of positive length, that interval would contain a closed interval with rational endpoints, putting in one of the displayed sets. Hence is monotone on no interval of positive length, as described by the generic nowhere-monotone continuous function result.
Solved by gpt-5.6-sol high.
Codex Wiki