AFTD Auto-Formalizing Theoretical Domains

grid57_fixed0_prefix_group3

theoremverified

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_group3 (a : Fin 32) (hlo : 24 ≤ a.val) (hhi : a.val < 32) : 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 establishes that a 7-column configuration starting with column 0 followed by any column $a \\in \\{24, \\dots, 31\\}$ cannot achieve a total pair cost of at most 9. The proof proceeds by exhaustive enumeration over all 32 possible values of the finite index $a$: values below 24 are ruled out immediately by contradiction with the lower bound hypothesis, and the remaining eight values are proved impossible by direct exhaustive computation of all prefix extensions.

  1. For every column $a \\in \\mathrm{Fin}\\, 32$ satisfying $24 \\le a < 32$, the prefix $(0, a)$ cannot be extended to a sorted seven-column configuration with total pair cost at most 9. automation

    We perform an exhaustive case analysis over all 32 possible values of $a \\in \\mathrm{Fin}\\, 32$. For each case where $a < 24$, numerical evaluation (`norm_num`) finds a contradiction with the lower bound $24 \\le a$, immediately closing the branch. For each of the remaining eight cases ($a \\in \\{24, \\dots, 31\\}$), the upper and lower bounds hold trivially, and we unfold the definition of `grid57_prefix_obstruction`. The obstruction condition is a decidable bounded search asserting that no sorted continuation $a \\le b \\le c \\le d \\le e \\le f$ has cumulative pair cost at most 9; the computational decision procedure (`decide`) evaluates this finite search space directly and determines that no such continuation exists.

    line 5

      fin_cases a <;> try norm_num at hlo <;> try norm_num at hhi <;> unfold grid57_prefix_obstruction <;> decide

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

set_option maxHeartbeats 4000000set_option linter.all falsetheorem grid57_fixed0_prefix_group3 (a : Fin 32) (hlo : 24 ≤ a.val) (hhi : a.val < 32) : grid57_prefix_obstruction 0 a := by  fin_cases a <;> try norm_num at hlo <;> try norm_num at hhi <;> unfold grid57_prefix_obstruction <;> decide
See it in the graphDiscuss this resultChallenge it