kernel-Nat.Subsets.inclusion_exclusion_pos
- Kind
- kernel-term
- Status
- checked
Supports: the classical statement, over the non-empty subfamilies, admitted by the trusted gate with an empty axiom footprint
cargo test --release -p axeyum-lean-kernel --lib nat_prelude::inclusion_exclusion_tests -- --test-threads=4 Evidence notes
The proof is `sumSel_swap` (turning the sum over subsets of a sum over elements inside out), then `sumSel_meetInd` at each ambient element, then `prodPar_even`, then `countRange_compl` to convert the residue into m minus the union's size without writing a subtraction. The graded pair is what makes the last step possible in Nat.