grid57_fixed1_prefix_group3
The fixed column 1 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
Statement
theorem grid57_fixed1_prefix_group3 (a : Fin 32) (hlo : 24 ≤ a.val) (hhi : a.val < 32) : grid57_prefix_obstruction 1 a- Source
- OP-1867: sorted-column finite obstruction computed in experiments 43999 and 44004–44005; related work arXiv:2611.19635 section 6.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- grid57_prefix_obstructionThe sorted six-column continuation of the two given columns cannot maintain accumulated pair cost at most nine.
- grid57_pair_costAn explicit table of monochromatic rectangle counts determined by two five-bit columns.
The proof, explained
The theorem is proved by finite case exhaustion and computational reflection. The column index $a \in \mathrm{Fin}(32)$ is split into its 32 possible values, of which the first 24 are immediately eliminated by arithmetic contradiction with the hypothesis $24 \le a$. For each of the eight remaining values in the range $24 \le a < 32$, the prefix obstruction condition is unfolded into a finite search over completions to seven sorted columns, which Lean's decision procedure checks exhaustively by computation.
For any column index $a \in \mathrm{Fin}(32)$ with $24 \le a < 32$, no extension of columns 1 and $a$ to seven sorted columns achieves a total pairwise cost of at most nine. automation
The proof splits $a \in \mathrm{Fin}(32)$ into its 32 possible values using `fin_cases`. For the first 24 cases ($0 \le a \le 23$), the lower-bound hypothesis $24 \le a$ evaluates to false, which `norm_num` uses to eliminate these cases immediately. For each of the remaining eight cases ($24 \le a < 32$), the hypotheses hold trivially, and unfolding `grid57_prefix_obstruction` yields a finite search over sorted completions $b \le c \le d \le e \le f$ in $\mathrm{Fin}(32)$. The `decide` tactic checks this finite search tree by direct computation, establishing that the total pairwise cost exceeds nine in every branch.
fin_cases a <;> try norm_num at hlo <;> try norm_num at hhi <;> unfold grid57_prefix_obstruction <;> decide
- The entire proof is executed by automation: `norm_num` discharges out-of-range cases by numerical evaluation, and `decide` exhaustively evaluates the finite search tree for each valid column index to verify that the cost bound cannot be satisfied.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option maxHeartbeats 4000000set_option linter.all falsetheorem grid57_fixed1_prefix_group3 (a : Fin 32) (hlo : 24 ≤ a.val) (hhi : a.val < 32) : grid57_prefix_obstruction 1 a := by fin_cases a <;> try norm_num at hlo <;> try norm_num at hhi <;> unfold grid57_prefix_obstruction <;> decide