kernel-Nat.Hall.exists_isMatching_singleton
- Kind
- kernel-term
- Status
- checked
Supports: Hall's condition at a singleton index set yields a matching
cargo test --release -p axeyum-lean-kernel --lib -- nat_prelude::hall_sufficiency_tests:: --test-threads=4 Evidence notes
Hall's condition is instantiated at t := singleton a with the identity inclusion, giving Le (card (singleton a)) (card (unionOver nb (singleton a))). Nat.Finset.card_singleton rewrites the left side to `succ zero`, and `Nat.lt x y` is `Nat.le (succ x) y` by delta, so the count IS a positivity statement with no bridging lemma. Nat.Finset.exists_memB_of_card_pos then produces a value in the union, Nat.Hall.memB_unionOver_elim produces an index of the singleton at which the value is a member, and Nat.Finset.eq_of_memB_singleton identifies that index as a. The matching is the constant function at the value.