grid57_fixed0_prefix_group1
The fixed column 0 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_fixed0_prefix_group1 (a : Fin 32) (hlo : 8 ≤ a.val) (hhi : a.val < 16) : grid57_prefix_obstruction 0 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 over all 32 possible values of the column index a. Any candidate outside the range [8, 16) is immediately ruled out because it contradicts one of the given boundary hypotheses (8 ≤ a or a < 16). For each of the eight remaining candidates in the range, the definition of the obstruction is unfolded and Lean's decision procedure exhaustively checks all sorted continuations, confirming that none can keep the cumulative pair cost at or below 9.
For every column index a ∈ Fin 32 satisfying 8 ≤ a < 16, the prefix (0, a) cannot be extended to seven sorted columns with cumulative pair cost at most 9. automation
We perform a complete case split over all 32 possible values of the column index `a` using `fin_cases`. For the values a ∈ {0, …, 7}, the hypothesis `hlo` (8 ≤ a) evaluates to false via `norm_num`, immediately refuting these cases. Similarly, for the values a ∈ {16, …, 31}, the hypothesis `hhi` (a < 16) evaluates to false via `norm_num`, closing those cases. For each of the remaining eight values a ∈ {8, …, 15}, the definition of `grid57_prefix_obstruction` is unfolded into a bounded search over all non-decreasing continuations b ≤ c ≤ d ≤ e ≤ f in Fin 32, and the decision procedure `decide` computationally verifies that every branch exceeds the cumulative pair cost threshold of 9.
fin_cases a <;> try norm_num at hlo <;> try norm_num at hhi <;> unfold grid57_prefix_obstruction <;> decide
- The tactic `decide` performs an exhaustive finite search directly via computation, verifying for each of the eight valid choices of column `a` that no sorted five-column extension has total pair cost at most 9.
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_fixed0_prefix_group1 (a : Fin 32) (hlo : 8 ≤ a.val) (hhi : a.val < 16) : grid57_prefix_obstruction 0 a := by fin_cases a <;> try norm_num at hlo <;> try norm_num at hhi <;> unfold grid57_prefix_obstruction <;> decide