AFTD Auto-Formalizing Theoretical Domains

biplane_weighing_signing

def

A weighing signing of a biplane B (points P, lines L, block size B.k) is a function σ from the flags (incident point-line pairs) to the integers taking only the values 1 and −1, such that the L × P integer matrix W with W(l, p) = σ(p, l) when p is on l and 0 otherwise satisfies W · Wᵀ = k · I (the L × L identity scaled by k).

Statement

open Classical in
def biplane_weighing_signing {P L : Type*} [Fintype P] [Fintype L] (B : Biplane P L)
    (σ : BiplaneFlag B → ℤ) : Prop
Defined in
arXiv:2611.17855 (On configurations that are nearly generalised polygons), Section 2.2 (signing and weighing signing of a biplane).
Verified
27 Nov 2026
Axioms
none listed
Built on 2
  • BiplaneA biplane is a symmetric 2-(v, k, 2) design: a finite incidence structure of points and lines where each line contains k points, each…
  • BiplaneFlagThe type of flags of a biplane, defined as pairs of an incident point and line.
Used by 2

Read back from the Lean

Given finite types P and L, a biplane B on (P, L) with parameter k : ℕ and incidence relation B.inc, and a function σ assigning an integer to each flag f : BiplaneFlag B (i.e. each pair (p, l) such that B.inc p l), biplane_weighing_signing B σ asserts that: 1. For every flag f, σ f = 1 or σ f = -1; and 2. The product of the L × P matrix M and its transpose Mᵀ equals k times the L × L identity matrix over ℤ, where M has entry at (l, p) equal to σ ⟨(p, l), h⟩ if h : B.inc p l, and 0 otherwise.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

open Classical in
def biplane_weighing_signing {P L : Type*} [Fintype P] [Fintype L] (B : Biplane P L)
    (σ : BiplaneFlag B → ℤ) : Prop :=
  (∀ f, σ f = 1 ∨ σ f = -1) ∧
    (Matrix.of fun (l : L) (p : P) => if h : B.inc p l then σ ⟨(p, l), h⟩ else 0) *
      (Matrix.of fun (l : L) (p : P) => if h : B.inc p l then σ ⟨(p, l), h⟩ else 0).transpose =
        (B.k : ℤ) • (1 : Matrix L L ℤ)
See it in the graphDiscuss this resultChallenge it