AFTD Auto-Formalizing Theoretical Domains

grid57_column_agreements

def

The number of agreeing unordered row pairs in a column of a binary five-by-seven layer.

Statement

def grid57_column_agreements (f : Fin 5 → Fin 7 → Bool) (y : Fin 7) : ℕ
Source
OP-1867: row-pair incidence count, related to arXiv:2611.19635 section 6.
Verified
28 Nov 2026
Axioms
none listed
Used by 4

Lean source view module on GitHub

def grid57_column_agreements (f : Fin 5 → Fin 7 → Bool) (y : Fin 7) : ℕ := ((Finset.univ : Finset (Fin 5 × Fin 5)).filter (fun p => p.1 < p.2 ∧ f p.1 y = f p.2 y)).card
See it in the graphDiscuss this resultChallenge it