kernel-Nat.strongInduction
- Kind
- kernel-term
- Status
- checked
Supports: the recursion principle itself, at any universe
cargo test --release -p axeyum-lean-kernel --lib nat_prelude::subset_search_tests -- --test-threads=4 Evidence notes
The evaluation test is not decorative: a wrapper that did not reduce would type-check identically. `strongInduction (fun _ => Nat) (fun n ih => succ n) 3` must reduce to 4, which forces WellFounded.fix to reduce its accessibility proof at the numeral; 3 is named as the answer a step returning n would give.