AFTD Auto-Formalizing Theoretical Domains

op874_four_square_open_port_cut_bound

theoremverified

After one matching edge in the four-square obstruction is opened into two independently assigned ports, any cut constant on the other seven matching edges crosses at most twelve of the sixteen factor edges. The displayed ordered list records every factor edge after the seven contractions; repeated pairs represent distinct original edges.

Statement

theorem op874_four_square_open_port_cut_bound
    (a b c d e f g h i : Bool) :
    (([(e,f),(e,a),(f,e),(e,a),(g,c),(g,d),(c,g),(g,d),
       (d,c),(d,b),(c,h),(h,b),(i,b),(i,a),(b,f),(f,a)] : List (Bool × Bool)).filter
       (fun p => p.1 != p.2)).length ≤ 12
Source
OP-874; opened four-square obstruction block, experiment 41908.
Verified
27 Nov 2026
Axioms
none — Lean reports it depends on no axioms
Used by 1

The proof, explained

The theorem bounds the cut size across factor edges by at most 12 for any boolean assignment to the nine open port and vertex variables. Because there are only 2⁹ = 512 possible assignments to the nine boolean variables, the proof proceeds by exhaustive case analysis. Lean splits on every variable and evaluates the resulting ground list expression for each case using the `decide` decision procedure.

  1. For every boolean assignment to the nine variables a, b, c, d, e, f, g, h, and i, at most 12 of the 16 pairs have differing components. automation

    The proof performs an exhaustive case split over all nine boolean variables a through i, producing 2⁹ = 512 subgoals. In each subgoal, the variables in the list are replaced by concrete boolean values (false or true). The `decide` tactic then reduces the filter condition, counts the remaining elements, and checks that the resulting length is at most 12 by direct computation.

    lines 6–8

      set_option maxHeartbeats 3000000 in
        cases a <;> cases b <;> cases c <;> cases d <;> cases e <;>
        cases f <;> cases g <;> cases h <;> cases i <;> 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

Lean’s trace was cut to the first 400 of 1024 tactics.

theorem op874_four_square_open_port_cut_bound    (a b c d e f g h i : Bool) :    (([(e,f),(e,a),(f,e),(e,a),(g,c),(g,d),(c,g),(g,d),       (d,c),(d,b),(c,h),(h,b),(i,b),(i,a),(b,f),(f,a)] : List (Bool × Bool)).filter       (fun p => p.1 != p.2)).length ≤ 12 := by  set_option maxHeartbeats 3000000 in    cases a <;> cases b <;> cases c <;> cases d <;> cases e <;>    cases f <;> cases g <;> cases h <;> cases i <;> decide
See it in the graphDiscuss this resultChallenge it