AFTD Auto-Formalizing Theoretical Domains

planar_occupied_lines

def

The number of occupied parallel lines meeting a finite planar set A in the direction orthogonal to u is the number of distinct values of the inner product ⟪p, u⟫ for p ∈ A.

Statement

noncomputable def planar_occupied_lines (A : Finset (EuclideanSpace ℝ (Fin 2)))
    (u : EuclideanSpace ℝ (Fin 2)) : ℕ
Defined in
arXiv:2610.38864 Section 1 and Section 3
Verified
07 Nov 2026
Axioms
none listed
Used by 2
  • planar_all_even_occupied_lines_ge_fourFor every planar all-even set A and every non-zero vector u, the number of lines perpendicular to u meeting A is at least 4.
  • planar_all_evenA finite set A in the plane is all-even if it is nonempty and for every non-zero vector u, the number of lines perpendicular to u meeting…

Read back from the Lean

Given a finite set A of points in 2-dimensional real Euclidean space (EuclideanSpace ℝ (Fin 2)) and a vector u : EuclideanSpace ℝ (Fin 2), planar_occupied_lines A u is defined as the cardinality (in ℕ) of the set of values obtained by taking the real inner product inner ℝ p u for each p ∈ A.

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

/-- The number of affine lines perpendicular to u that meet A. -/
noncomputable def planar_occupied_lines (A : Finset (EuclideanSpace ℝ (Fin 2)))
    (u : EuclideanSpace ℝ (Fin 2)) : ℕ := (A.image (fun p => inner ℝ p u)).card
See it in the graphDiscuss this resultChallenge it