AFTD Auto-Formalizing Theoretical Domains

truncation_periodic_target_port_certificate

theoremverified

The specified periodic target states use six different colors and have pairwise compatible target and auxiliary ports.

Statement

theorem truncation_periodic_target_port_certificate :
    ∀ i : Fin 4,
      ({truncation_periodic_matching_bit i, truncation_periodic_other_bit i,
        truncation_periodic_factor_color (i-1), truncation_periodic_factor_color i,
        truncation_periodic_previous_port i, truncation_periodic_next_port i} : Finset (Fin 6)).card = 6 ∧
      Disjoint ({truncation_periodic_other_bit i, truncation_periodic_previous_port i} : Finset (Fin 6))
        {truncation_periodic_other_bit (i+1), truncation_periodic_next_port (i+1)} ∧
      Disjoint ({truncation_periodic_previous_port i, truncation_periodic_next_port i} : Finset (Fin 6))
        {truncation_periodic_other_bit i, truncation_periodic_auxiliary_exposure i}
Source
Helper for the OP-874 truncation coloring campaign, related to arXiv:2610.41950; finite witnesses are checked in experiments 33310, 33357, 33358 and 33378.
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6

The proof, explained

The theorem states that for each of the four periodic states $i \in \text{Fin } 4$, the six assigned colors and ports are all distinct (yielding a set of cardinality 6) and two disjointness constraints between pairs of ports and bits are satisfied. Because all relevant functions are given by explicit lookup tables over finite sets, the proof proceeds by exhaustive computation via `decide`.

  1. For every index $i \in \text{Fin } 4$, the six designated colors and ports are all distinct, and the two pairs of two-element sets are disjoint. automation

    Because the universal quantifier ranges over the finite type $\text{Fin } 4$ and all constituent functions are explicit tables of values in $\text{Fin } 6$, the proposition is purely computational. The `decide` tactic verifies all conditions by exhaustive evaluation on each of the four possible values of $i \in \{0, 1, 2, 3\}$.

    line 10

      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 truncation_periodic_target_port_certificate :    ∀ i : Fin 4,      ({truncation_periodic_matching_bit i, truncation_periodic_other_bit i,        truncation_periodic_factor_color (i-1), truncation_periodic_factor_color i,        truncation_periodic_previous_port i, truncation_periodic_next_port i} : Finset (Fin 6)).card = 6 ∧      Disjoint ({truncation_periodic_other_bit i, truncation_periodic_previous_port i} : Finset (Fin 6))        {truncation_periodic_other_bit (i+1), truncation_periodic_next_port (i+1)} ∧      Disjoint ({truncation_periodic_previous_port i, truncation_periodic_next_port i} : Finset (Fin 6))        {truncation_periodic_other_bit i, truncation_periodic_auxiliary_exposure i} := by  decide
See it in the graphDiscuss this resultChallenge it