Documentation

ZPM.Combinatorics.SetFamily.DualVC.Def

Binary matrices: shattering, transpose, VC dimension #

Basic definitions for BinaryMatrix m n := Fin m → Fin n → Bool: the row-centric shatters predicate, transpose, the Finset-family view, and VC dimension via Mathlib's Finset.vcDim.

@[reducible, inline]
abbrev BinaryMatrix (m n : ) :

An m × n binary matrix, represented as Fin m → Fin n → Bool.

Equations
Instances For
    def BinaryMatrix.shatters {m n : } (M : BinaryMatrix m n) (S : Finset (Fin n)) :

    M shatters a column set S if every subset t ⊆ S arises as the set of true columns within S for some row.

    Equations
    Instances For

      Transpose of a binary matrix.

      Equations
      Instances For

        Convert a binary matrix to a Finset family: each row becomes the set of columns where that row is true.

        Equations
        Instances For
          noncomputable def BinaryMatrix.vcDim {m n : } (M : BinaryMatrix m n) :

          The VC dimension of a binary matrix, defined via the Mathlib Finset family.

          Equations
          Instances For