AFTD Auto-Formalizing Theoretical Domains

op1525_cycle_pair_orientation_safe_card

theoremverified

For the explicit twelve-cycle colorings in op1525_cycle_pair_profiles_do_not_reconstruct, each coloring has seven true vertices, and switching vertex 11 in the first and vertex 6 in the second gives the same eight-true-vertex coloring after rotating by one position.

Statement

theorem op1525_cycle_pair_orientation_safe_card :
    (∑ x : Fin 12, if decide (x.val ∈ [0,1,2,3,5,6,8]) then 1 else 0 : ℕ) = 7 ∧
    (∑ x : Fin 12, if decide (x.val ∈ [0,1,2,3,4,7,9]) then 1 else 0 : ℕ) = 7 ∧
    (∑ x : Fin 12, if xor (decide (x.val ∈ [0,1,2,3,5,6,8])) (decide (x = 11)) then 1 else 0 : ℕ) = 8 ∧
    (∀ x : Fin 12,
      xor (decide (x.val ∈ [0,1,2,3,5,6,8])) (decide (x = 11)) =
      xor (decide ((x+1).val ∈ [0,1,2,3,4,7,9])) (decide (x+1 = 6)))
Source
An orientation-safe shared-card obstruction to the general pair-orbital approach for OP-1525.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem verifies that two explicit subsets of the 12-cycle, {0, 1, 2, 3, 5, 6, 8} and {0, 1, 2, 3, 4, 7, 9}, each contain 7 vertices, that flipping vertex 11 in the first yields an 8-vertex set, and that shifting this modified configuration by 1 matches the second set with vertex 6 flipped. Because all assertions involve only finite sums and a universal quantifier over the 12 elements of Fin 12, the statement is a decidable Boolean proposition. The proof proceeds entirely by finite computational evaluation.

  1. Both colorings have 7 true vertices, flipping vertex 11 in the first yields 8 true vertices, and the two modified colorings are isomorphic via a rotation by 1. automation

    The domain `Fin 12` contains only twelve elements, so both the cardinalities (expressed as finite sums of indicator functions) and the universal quantifier over all vertices in `Fin 12` are decidable propositions. Lean's `decide` tactic evaluates these finite checks exhaustively by computation.

    line 8

      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

theorem op1525_cycle_pair_orientation_safe_card :    (∑ x : Fin 12, if decide (x.val ∈ [0,1,2,3,5,6,8]) then 1 else 0 : ℕ) = 7 ∧    (∑ x : Fin 12, if decide (x.val ∈ [0,1,2,3,4,7,9]) then 1 else 0 : ℕ) = 7 ∧    (∑ x : Fin 12, if xor (decide (x.val ∈ [0,1,2,3,5,6,8])) (decide (x = 11)) then 1 else 0 : ℕ) = 8 ∧    (∀ x : Fin 12,      xor (decide (x.val ∈ [0,1,2,3,5,6,8])) (decide (x = 11)) =      xor (decide ((x+1).val ∈ [0,1,2,3,4,7,9])) (decide (x+1 = 6))) := by  decide
See it in the graphDiscuss this resultChallenge it