Sure, texts like "linear algebra done right" or "Understanding Analysis" do a unusually good job of integrating large multi part examples where the reader works through them and proves the theorems themselves before they are explained in the book. The nominal case for most math texts is definition, lemmas, theorems, and sometimes they provide examples, and other times, readers are expected to make their own examples. For example, basic topology really only needs 10-20 pages to completely define, but to really understand why the axioms are chosen and the implications, you must work through examples, it is the only way. In fact there is a good book on topology specifically due to this " Counterexamples in Topology"