AFTD Auto-Formalizing Theoretical Domains

grid57_fixed0_prefix_group2

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_group2 (a : Fin 32) (hlo : 16 ≤ a.val) (hhi : a.val < 24) : 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 values of the column index a. For a < 16 and a ≥ 24, the cases are ruled out immediately by arithmetic contradictions with the lower and upper bound hypotheses. For each of the remaining eight values a ∈ {16, ..., 23}, the obstruction condition is an exhaustive search over all sorted five-column extensions, which Lean verifies by direct computation to find no configuration with total pair cost at most 9.

  1. For any column index a satisfying 16 ≤ a < 24, the two-column prefix (0, a) cannot be extended to seven sorted columns with cumulative pair cost at most 9. automation

    We perform a case split over all 32 elements of Fin 32. For each a ∈ {0, ..., 15}, numerical evaluation reduces the hypothesis 16 ≤ a to False, eliminating the branch immediately. For each a ∈ {24, ..., 31}, numerical evaluation similarly reduces a < 24 to False. For the eight remaining in-range cases a ∈ {16, ..., 23}, the bounding hypotheses both evaluate to True; after unfolding the definition of grid57_prefix_obstruction into a bounded search over all sorted extensions (b, c, d, e, f), Lean's kernel computes the cumulative pair costs and decides that every branch exceeds the threshold of 9.

    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_group2 (a : Fin 32) (hlo : 16 ≤ a.val) (hhi : a.val < 24) : 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