Count tested index occurrences
Lax342547.FilterOccurrences · concepts/Lax342547/FilterOccurrences.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Filtering subtype indices and filtering their underlying finite set have identical cardinalities.
Concept map
Lean source view on GitHub
| 1 | import Lax342547.CoverCounts |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Count tested index occurrences |
| 6 | type: lemma |
| 7 | --- |
| 8 | Filtering subtype indices and filtering their underlying finite set have identical cardinalities. |
| 9 | -/ |
| 10 | |
| 11 | namespace Lax342547.FilterOccurrences |
| 12 | |
| 13 | |
| 14 | |
| 15 | axiom filter_subtype_card {ι : Type} [DecidableEq ι] (I : Finset ι) (P : ι → Prop) : by |
| 16 | classical |
| 17 | exact (Finset.univ.filter (fun i : I => P i.val)).card = (I.filter P).card |
| 18 | |
| 19 | end Lax342547.FilterOccurrences |
| 20 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments