A role colouring puts every point on exactly lines
ProvedRolesForceSeven.three_linesLet be a Steiner triple system on with a role colouring . Then every point lies on exactly
lines. Completeness gives three lines through with three different roles, so at least ; minimality makes "line role of on it" one-to-one into , so at most .
import Mathlib import Definitions.Def_RolesForceSeven_sts
namespace RolesForceSeven
theorem three_lines (n : ℕ) (S : STS n) (role : Fin n → Finset (Fin n) → Fin 3)
(h : RoleColouring S role) (x : Fin n) :
(S.lines.filter (fun l => x ∈ l)).card = 3 := by sorry
end RolesForceSevenRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Theorem three_lines. Let be a natural number and write (a set with exactly elements, empty when ). Let be a Steiner triple system on , which here means a finite collection of subsets of (the lines; it is a set of subsets, so no line is listed twice) such that
- every line has exactly elements: for all ;
- every pair of distinct points lies on exactly one line: for all with there is a unique with and .
Let be an arbitrary function that takes a point and an arbitrary subset and returns a value . It is defined on all pairs (point, subset), including subsets that are not lines and points not in the subset; only the values with and are constrained below. Assume is a role colouring of , i.e. all three of the following hold:
- Injective on each line: for every line and all ,
- Every role is realised at every point: for every point and every there exists a line with and .
- Injective on the lines through a point: for every point and all lines with and ,
Then, for every point , the number of lines containing is exactly three:
Degenerate cases. When there are no points, so the conclusion (which is about a point ) is vacuous. When or , no -element subsets exist, so ; for the pair condition then cannot hold (no Steiner triple system exists), and for condition 2 of the role colouring fails (the single point lies on no line), so in both cases the hypotheses are unsatisfiable and the statement is vacuous. For larger the hypotheses require both that is a Steiner triple system on and that a role colouring of it exists; nothing else about is assumed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.