AFTD Auto-Formalizing Theoretical Domains

op874_nonbinary_low_ports_one_exception

theoremverified

The explicit matching and selected low ports are consistent, cover same-bit factor edges without double selection, and have one reversal from the stated per-cycle directions.

Statement

theorem op874_nonbinary_low_ports_one_exception :
  (∀ i, In1098Global.mate (In1098Global.mate i) = i ∧ In1098Global.mate i ≠ i ∧ op874_nonbinary_bit (In1098Global.mate i) = op874_nonbinary_bit i ∧ In1098Global.prev (In1098Global.next i) = i ∧ In1098Global.next (In1098Global.prev i) = i) ∧
  (∀ i, In1098Global.selected i = In1098Global.mate i ∨ In1098Global.selected i = In1098Global.prev i ∨ In1098Global.selected i = In1098Global.next i) ∧
  (∀ i, In1098Global.selected i = In1098Global.mate i ↔ In1098Global.selected (In1098Global.mate i) ≠ i) ∧
  (∀ i, op874_nonbinary_bit i = op874_nonbinary_bit (In1098Global.next i) → In1098Global.selected i = In1098Global.next i ∨ In1098Global.selected (In1098Global.next i) = i) ∧
  (∀ i, ¬ (In1098Global.selected i = In1098Global.next i ∧ In1098Global.selected (In1098Global.next i) = i)) ∧
  (∀ i, In1098Global.selected i ≠ In1098Global.mate i → (i = 6 ∧ In1098Global.selected i = In1098Global.prev i) ∨ (i ≠ 6 ∧ (if In1098Global.group i = 3 then In1098Global.selected i = In1098Global.prev i else In1098Global.selected i = In1098Global.next i)))
Source
Explicit fixed-low local-to-global obstruction, experiments 36317–36319.
Verified
22 Nov 2026
Axioms
propext
Built on 2

The proof, explained

The theorem establishes that explicit port selections on a 16-node graph satisfy six structural properties: the matching is a fixed-point-free bit-preserving involution; successor and predecessor form cycle permutations; each node selects an incident edge; matching edges are selected by exactly one endpoint; same-bit cycle edges are covered without double selection; and non-matching selections follow per-group cycle directions with node 6 being the unique exception. Because all functions are defined by explicit lookups over `Fin 16`, the entire conjunction is verified by exhaustive computation via `decide`.

  1. All six structural properties—including involution consistency, unique matching selection, same-bit cycle-edge coverage, and cycle orientation with node 6 as the sole exception—hold for all sixteen nodes. automation

    Every function involved (`In1098Global.mate`, `prev`, `next`, `selected`, `group`, and `op874_nonbinary_bit`) is explicitly defined by tabular lookups on the finite domain `Fin 16`. Because each condition is a decidable predicate quantified over a finite type, the `decide` tactic verifies all six conjuncts simultaneously by exhaustive evaluation.

    line 7

      (∀ i, In1098Global.selected i ≠ In1098Global.mate i → (i = 6 ∧ In1098Global.selected i = In1098Global.prev i) ∨ (i ≠ 6 ∧ (if In1098Global.group i = 3 then In1098Global.selected i = In1098Global.prev i else In1098Global.selected i = In1098Global.next i))) := by 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 op874_nonbinary_low_ports_one_exception :  (∀ i, In1098Global.mate (In1098Global.mate i) = i ∧ In1098Global.mate i ≠ i ∧ op874_nonbinary_bit (In1098Global.mate i) = op874_nonbinary_bit i ∧ In1098Global.prev (In1098Global.next i) = i ∧ In1098Global.next (In1098Global.prev i) = i) ∧  (∀ i, In1098Global.selected i = In1098Global.mate i ∨ In1098Global.selected i = In1098Global.prev i ∨ In1098Global.selected i = In1098Global.next i) ∧  (∀ i, In1098Global.selected i = In1098Global.mate i ↔ In1098Global.selected (In1098Global.mate i) ≠ i) ∧  (∀ i, op874_nonbinary_bit i = op874_nonbinary_bit (In1098Global.next i) → In1098Global.selected i = In1098Global.next i ∨ In1098Global.selected (In1098Global.next i) = i) ∧  (∀ i, ¬ (In1098Global.selected i = In1098Global.next i ∧ In1098Global.selected (In1098Global.next i) = i)) ∧  (∀ i, In1098Global.selected i ≠ In1098Global.mate i → (i = 6 ∧ In1098Global.selected i = In1098Global.prev i) ∨ (i ≠ 6 ∧ (if In1098Global.group i = 3 then In1098Global.selected i = In1098Global.prev i else In1098Global.selected i = In1098Global.next i))) := by decide
See it in the graphDiscuss this resultChallenge it