Counting States: Product Soup vs. Sum Precision
Every extra Bool field doubles the state space of a structure. Four independent flags create 16 combinations, even when your domain lifecycle only has four real states: anonymous, mfaPending (uid : Nat), active (uid : Nat) (tokenEpoch : Nat), and revoked (reason : String).
When you model mutually exclusive lifecycle phases with inductive Session, an anonymous or revoked session physically cannot carry an active token, and an active session physically cannot omit uid : Nat. You no longer write defensive assertions for impossible combinations because no code—human or AI—can construct them.
Exhaustive Pattern Matching as Refactoring Armor
Lean's pattern matcher checks exhaustiveness at compile time. Add a fifth lifecycle state (suspended) next quarter, and every match expression across your codebase that forgets suspended fails to compile with the exact missing constructor.
Even better: your theorems over Session split cleanly into four crisp subgoals via cases s, matching the domain 1-to-1 instead of 16 messy boolean truth-table rows.