Indexed multiplicity under list membership filtering #
These statements count positions, so repeated equal lists still contribute separately. They are generalized from the canonical incidence-path occupancy proofs.
Main results #
List.two_le_filter_contains_iff.List.exists_other_index_of_two_le_filter_contains.List.toFinset_filter_not_mem: filteringCby non-membership inHtakes the set differenceC.toFinset \ H.toFinset.List.countP_le_sum_map: if1 ≤ f xwheneverp x = trueonl, thenl.countP p ≤ (l.map f).sum.
theorem List.two_le_filter_contains_iff {α : Type u_1} [DecidableEq α] (rs : List (List α)) (p : α) :
At least two memberships correspond to distinct indices, even for repeated equal lists.