AFTD Auto-Formalizing Theoretical Domains

cycle_power_eight_zero_phase_half_no_defects

theoremverified

Every zero-phase defective exponent-three model has no defects.

Statement

theorem cycle_power_eight_zero_phase_half_no_defects (x : ℤ → ℕ → Bool) (e : ℤ → Bool)
    (hm : cycle_power_dyadic_defective_half_model 3 x e 0) : ∀ p : ℤ, e p = false
Source
RT-1 / OP-205, arXiv:2610.15635; finite computations 29006, 29007 and 29023.
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5
Used by 1

The proof, explained

The argument first shows that the boundary values x(·, 1) strictly alternate between true and false at successive integer positions. If alternation failed anywhere, the known period-2 property would force the sequence to be constant everywhere, contradicting its established non-constancy. With alternation in hand, a case split on x(p, 1) applies the corresponding alternating-phase lemmas to conclude that every defect indicator e(p) must be false.

  1. The boundary sequence x(·, 1) has period 2, and is neither identically false nor identically true.

    From prior characterizations of exponent-three defective half-models, cycle_power_eight_defective_boundary_period_two establishes the two-periodicity x(p, 1) = x(p - 2, 1) for all p ∈ ℤ, and cycle_power_eight_defective_boundary_not_constant establishes that x(·, 1) is not constant.

    lines 3–4

    uses cycle_power_eight_defective_boundary_period_two, cycle_power_eight_defective_boundary_not_constant

      have hper := cycle_power_eight_defective_boundary_period_two x e hm
      have hnc := cycle_power_eight_defective_boundary_not_constant x e hm
  2. If x(·, 1) fails to strictly alternate, then adjacent values coincide at some point: x(p + 1, 1) = x(p, 1).

    To prove alternation by contradiction, assume there is a failure of alternation. By not_forall.mp, this provides an index p such that x(p + 1, 1) ≠ ¬x(p, 1). Since boolean variables admit only two values, evaluating all four truth-value assignments confirms that x(p + 1, 1) = x(p, 1).

    lines 5–10

    uses not_forall.mp

      have halt : ∀ p : ℤ, x (p + 1) 1 = !(x p 1) := by
        by_contra hne
        obtain ⟨p, hp⟩ := not_forall.mp hne
        have heq : x (p + 1) 1 = x p 1 := by
          revert hp
          cases x (p + 1) 1 <;> cases x p 1 <;> decide
  3. For all integers k, both x(p + 2k, 1) and x(p + 1 + 2k, 1) equal x(p, 1).

    This is proven by integer induction on k using Int.induction_on. The base case k = 0 follows from the equality of adjacent values at p. For the inductive steps in both positive and negative directions, shifting by multiples of 2 preserves values by the period-2 property of x(·, 1), propagating the value x(p, 1) across all even and odd offsets.

    lines 11–28

    uses Int.induction_on

        have hk : ∀ k : ℤ, x (p + 2 * k) 1 = x p 1 ∧ x (p + 1 + 2 * k) 1 = x p 1 := by
          intro k
          induction k using Int.induction_on with
          | zero => simpa using heq
          | succ k ih =>
            have h1 := hper (p + 2 * (k + 1))
            have h2 := hper (p + 1 + 2 * (k + 1))
            have e1 : p + 2 * (k + 1) - 2 = p + 2 * k := by ring
            have e2 : p + 1 + 2 * (k + 1) - 2 = p + 1 + 2 * k := by ring
            rw [e1] at h1; rw [e2] at h2
            exact ⟨h1.trans ih.1, h2.trans ih.2⟩
          | pred k ih =>
            have h1 := hper (p + 2 * (-(k : ℤ)))
            have h2 := hper (p + 1 + 2 * (-(k : ℤ)))
            have e1 : p + 2 * (-(k : ℤ)) - 2 = p + 2 * (-(k : ℤ) - 1) := by ring
            have e2 : p + 1 + 2 * (-(k : ℤ)) - 2 = p + 1 + 2 * (-(k : ℤ) - 1) := by ring
            rw [e1] at h1; rw [e2] at h2
            exact ⟨h1.symm.trans ih.1, h2.symm.trans ih.2⟩
  4. The sequence x(·, 1) is globally constant: x(q, 1) = x(p, 1) for every integer q.

    By Int.even_or_odd', every integer difference q - p is either even (q - p = 2k) or odd (q - p = 2k + 1). In the even case, q = p + 2k, so x(q, 1) = x(p, 1). In the odd case, q = p + 1 + 2k, so x(q, 1) = x(p, 1). Thus x(q, 1) has the same value for every q ∈ ℤ.

    lines 29–36

    uses Int.even_or_odd'

        have hall : ∀ q : ℤ, x q 1 = x p 1 := by
          intro q
          obtain ⟨k, hk'⟩ := Int.even_or_odd' (q - p)
          rcases hk' with hk' | hk'
          · have : q = p + 2 * k := by omega
            rw [this]; exact (hk k).1
          · have : q = p + 1 + 2 * k := by omega
            rw [this]; exact (hk k).2
  5. The boundary sequence x(·, 1) strictly alternates: x(p + 1, 1) = ¬x(p, 1) for all integers p.

    If x(p, 1) were false, x(·, 1) would be identically false, contradicting the first conjunct of non-constancy. If x(p, 1) were true, x(·, 1) would be identically true, contradicting the second conjunct. This contradiction refutes the assumption that alternation fails, completing the proof of strict alternation.

    lines 37–39

        cases hpv : x p 1
        · exact hnc.1 (fun q => (hall q).trans hpv)
        · exact hnc.2 (fun q => (hall q).trans hpv)
  6. No defects occur at any position: e(p) = false for all integers p.

    For an arbitrary integer p, case analysis on the boolean value x(p, 1) resolves the goal: if x(p, 1) = false, cycle_power_eight_alternating_false_phase_no_defect yields e(p) = false; if x(p, 1) = true, cycle_power_eight_alternating_true_phase_no_defect yields e(p) = false.

    lines 40–43

    uses cycle_power_eight_alternating_false_phase_no_defect, cycle_power_eight_alternating_true_phase_no_defect

      intro p
      cases hb : x p 1
      · exact cycle_power_eight_alternating_false_phase_no_defect x e hm halt p hb
      · exact cycle_power_eight_alternating_true_phase_no_defect x e hm halt p hb
cycle_power_eight_defective_boundary_period_two
In an exponent-three zero-phase defective half-model, the boundary sequence satisfies x(p, 1) = x(p - 2, 1) for all integers p.
cycle_power_eight_defective_boundary_not_constant
In an exponent-three zero-phase defective half-model, the boundary sequence x(·, 1) is neither constantly false nor constantly true.
not_forall.mp
If a universal statement ¬(∀ x, P x) fails, there exists some x such that ¬(P x).
Int.induction_on
Integer induction: a property holds for all integers if it holds at 0, steps from non-negative k to k + 1, and steps from non-positive -k to -k - 1.
Int.even_or_odd'
Every integer n can be written in the form 2k or 2k + 1 for some integer k.
cycle_power_eight_alternating_false_phase_no_defect
In an exponent-three zero-phase defective half-model where x(·, 1) strictly alternates, if x(p, 1) is false, then the defect indicator e(p) is false.
cycle_power_eight_alternating_true_phase_no_defect
In an exponent-three zero-phase defective half-model where x(·, 1) strictly alternates, if x(p, 1) is true, then the defect indicator e(p) is false.

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 cycle_power_eight_zero_phase_half_no_defects (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (hm : cycle_power_dyadic_defective_half_model 3 x e 0) : ∀ p : ℤ, e p = false := by  have hper := cycle_power_eight_defective_boundary_period_two x e hm  have hnc := cycle_power_eight_defective_boundary_not_constant x e hm  have halt : ∀ p : ℤ, x (p + 1) 1 = !(x p 1) := by    by_contra hne    obtain ⟨p, hp⟩ := not_forall.mp hne    have heq : x (p + 1) 1 = x p 1 := by      revert hp      cases x (p + 1) 1 <;> cases x p 1 <;> decide    have hk : ∀ k : ℤ, x (p + 2 * k) 1 = x p 1 ∧ x (p + 1 + 2 * k) 1 = x p 1 := by      intro k      induction k using Int.induction_on with      | zero => simpa using heq      | succ k ih =>        have h1 := hper (p + 2 * (k + 1))        have h2 := hper (p + 1 + 2 * (k + 1))        have e1 : p + 2 * (k + 1) - 2 = p + 2 * k := by ring        have e2 : p + 1 + 2 * (k + 1) - 2 = p + 1 + 2 * k := by ring        rw [e1] at h1; rw [e2] at h2        exact ⟨h1.trans ih.1, h2.trans ih.2⟩      | pred k ih =>        have h1 := hper (p + 2 * (-(k : ℤ)))        have h2 := hper (p + 1 + 2 * (-(k : ℤ)))        have e1 : p + 2 * (-(k : ℤ)) - 2 = p + 2 * (-(k : ℤ) - 1) := by ring        have e2 : p + 1 + 2 * (-(k : ℤ)) - 2 = p + 1 + 2 * (-(k : ℤ) - 1) := by ring        rw [e1] at h1; rw [e2] at h2        exact ⟨h1.symm.trans ih.1, h2.symm.trans ih.2⟩    have hall : ∀ q : ℤ, x q 1 = x p 1 := by      intro q      obtain ⟨k, hk'⟩ := Int.even_or_odd' (q - p)      rcases hk' with hk' | hk'      · have : q = p + 2 * k := by omega        rw [this]; exact (hk k).1      · have : q = p + 1 + 2 * k := by omega        rw [this]; exact (hk k).2    cases hpv : x p 1    · exact hnc.1 (fun q => (hall q).trans hpv)    · exact hnc.2 (fun q => (hall q).trans hpv)  intro p  cases hb : x p 1  · exact cycle_power_eight_alternating_false_phase_no_defect x e hm halt p hb  · exact cycle_power_eight_alternating_true_phase_no_defect x e hm halt p hb
See it in the graphDiscuss this resultChallenge it