7.1 Binary matrix setup
Definition
7.1
Binary matrix
Lean: BinaryMatrix
\(\mathrm{BinaryMatrix}\, m\, n \; :=\; \mathrm{Fin}\, m \to \mathrm{Fin}\, n \to \mathrm{Bool}\). Type-definitionally equal to \(\mathrm{Matrix}\, (\mathrm{Fin}\, m)\, (\mathrm{Fin}\, n)\, \mathrm{Bool}\).
Definition
7.2
Induced set family
Definition
7.3
Matrix shattering
Theorem
7.4
Consistency with Finset.Shatters
Lean: BinaryMatrix.shatters_iff
\(M\) shatters \(S \iff \mathrm{toFinsetFamily}\, M\) shatters \(S\) in Mathlib’s sense [ 17 ] .
Lemma
7.5
Boolean function equality via filter
Lean: BinaryMatrix.bool_fun_eq_of_filter_eq
Two Boolean-valued functions \(f, g : \mathrm{Fin}\, n \to \mathrm{Bool}\) with equal true-filters are equal.