kernel-Nat.Finset.card_lt_card_of_subsetFixed
- Kind
- kernel-term
- Status
- checked
Supports: a nonempty proper subset has a strictly smaller count
cargo test --release -p axeyum-lean-kernel --lib -- nat_prelude::hall_descent_tests:: --test-threads=4 Evidence notes
The proof is Nat.add_lt_add_left (card t) zero (card (sdiff s t)) applied to the positivity hypothesis, whose left side `add (card t) zero` IS `card t` by iota because Nat.add recurses on its RIGHT argument -- no add_zero rewrite appears in the term -- followed by one transport along Nat.Finset.card_add_card_sdiff. The mirror lemma costs one Nat.add_comm more, because add_lt_add_left grows the right summand and there the surviving one is on the left.