AFTD Auto-Formalizing Theoretical Domains

cycle_power_eight_defective_boundary_period_two

theoremverified

The first inner class bit of every zero-phase defective exponent-three model is two-periodic.

Statement

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

The proof, explained

The proof proceeds by folding the 8-bit zero-phase defective model into a 4-bit exact model with diagonal count 3. In any such 4-bit model, matching constraints force both boundary bits to be true, which in turn implies that the inner bits on adjacent diagonals and along the same diagonal each sum to 1. Equating these two sums shows that the first inner bit of the folded model is 2-periodic. Finally, dyadic parent constraints ensure that the fold leaves the first inner bit unchanged (x(p, 1) ∨ x(p, 5) = x(p, 1)), transferring 2-periodicity directly to the original model.

  1. The 8-bit model folds into a 4-position exact model with diagonal matchings equal to 1 and total diagonal count 3.

    We fold the defective exponent-3 model into a 4-bit model by taking the bitwise OR of blocks of size 4, using cycle_power_dyadic_defective_fold_model_of_corrected_periodicity with t = 2. The required 4-periodicity of the corrected diagonal sum is supplied by cycle_power_eight_zero_phase_corrected_count_periodic.

    lines 14–15

    uses cycle_power_dyadic_defective_fold_model_of_corrected_periodicity, cycle_power_eight_zero_phase_corrected_count_periodic

      apply cycle_power_dyadic_defective_fold_model_of_corrected_periodicity 2 (by decide) x e hm
      simpa using cycle_power_eight_zero_phase_corrected_count_periodic x e hm
  2. In any such 4-position model, the boundary bits are always true: y(p, 0) = true and y(p, 3) = true for all p.

    Specializing the matching hypothesis at j = 0 for position p gives a single-term sum stating y(p, 0) ∧ y(p, 3) = true. Unfolding the summation using Finset.sum_range_succ and analyzing the possible boolean values forces both boundary bits to be true.

    lines 24–27

    uses Finset.sum_range_succ

      have ends (p : ℤ) : y p 0 = true ∧ y p 3 = true := by
        have h := he 0 (by decide) p
        norm_num [Finset.sum_range_succ] at h
        cases h0 : y p 0 <;> cases h3 : y p 3 <;> simp_all
  3. The inner bits on adjacent diagonals satisfy y(p, 2) + y(p - 1, 1) = 1 for all p.

    Specializing the matching hypothesis at j = 1 for position p gives (y(p, 0) ∧ y(p, 2)) + (y(p - 1, 1) ∧ y(p - 1, 3)) = 1. Since the boundary bits y(p, 0) and y(p - 1, 3) are true, this simplifies directly to the sum of the inner bits equaling 1.

    lines 28–31

    uses Finset.sum_range_succ

      have hpair (p : ℤ) : (y p 2).toNat + (y (p-1) 1).toNat = 1 := by
        have h := he 1 (by decide) p
        norm_num [Finset.sum_range_succ, ends] at h
        omega
  4. The inner bits along any diagonal satisfy y(p, 1) + y(p - 1, 2) = 1 for all p.

    The count hypothesis along diagonal p + 1 says that the sum of all four bits is 3. Since the two boundary bits y(p + 1, 0) and y(p - 1 - 1, 3) each contribute 1, the two inner bits must sum to 3 - 2 = 1.

    lines 32–37

    uses Finset.sum_range_succ

      have hactive (p : ℤ) : (y p 1).toNat + (y (p-1) 2).toNat = 1 := by
        have h := hc (p+1)
        have h1 : p+1-1 = p := by omega
        have h2 : p+1-2 = p-1 := by omega
        norm_num [Finset.sum_range_succ, ends, h1, h2] at h
        omega
  5. The first inner bit of the 4-position model is 2-periodic: y(p, 1) = y(p - 2, 1) for all p.

    We have y(p, 1) + y(p - 1, 2) = 1 from the diagonal count relation at p, and y(p - 1, 2) + y(p - 2, 1) = 1 from the matching relation at p - 1. Equating the two expressions shows y(p, 1) = y(p - 2, 1).

    lines 38–44

      intro p
      have h1 := hactive p
      have h2 := hpair (p-1)
      have hindex : p-1-1 = p-2 := by omega
      rw [hindex] at h2
      have heq : (y p 1).toNat = (y (p-2) 1).toNat := by omega
      cases ha : y p 1 <;> cases hb : y (p-2) 1 <;> simp_all
  6. The folded model y(p, a) = x(p, a) ∨ x(p, a + 4) has a 2-periodic first inner bit: x(p, 1) ∨ x(p, 5) = x(p - 2, 1) ∨ x(p - 2, 5).

    Applying rt1_eight_defective_fold produces the matching and count hypotheses for the folded model y, and rt1_folded_four_first_inner_period_two immediately implies that y(p, 1) is 2-periodic.

    lines 50–53

    uses rt1_eight_defective_fold, rt1_folded_four_first_inner_period_two

      have hf := rt1_eight_defective_fold x e hm
      dsimp at hf
      rcases hf with ⟨_, he, _, hc⟩
      have hper := rt1_folded_four_first_inner_period_two (fun p a => x p a || x p (a + 4)) he hc
  7. The fold does not change the first inner bit: x(p, 1) ∨ x(p, 5) = x(p, 1) for all p.

    By cycle_power_dyadic_fold_parents, an upper bit a + 4 can be true only if its parent bit a is true (for a < 2). At a = 1, this means x(p, 5) = true implies x(p, 1) = true, so the disjunction x(p, 1) ∨ x(p, 5) collapses to x(p, 1).

    lines 54–56

    uses cycle_power_dyadic_fold_parents

      have unchanged (p : ℤ) : (x p 1 || x p 5) = x p 1 := by
        have hparent := (cycle_power_dyadic_fold_parents 2 (by decide) (x p) (hm.1 p)).1 1 (by decide)
        cases h1 : x p 1 <;> cases h5 : x p 5 <;> simp_all
  8. The original first inner bit is 2-periodic: x(p, 1) = x(p - 2, 1) for all p.

    Substituting the identity x(p, 1) ∨ x(p, 5) = x(p, 1) into the 2-periodicity of the folded first inner bit yields x(p, 1) = x(p - 2, 1).

    lines 57–58

      intro p
      simpa only [show (1 : ℕ) + 2^2 = 5 by decide, unchanged] using hper p
  9. The first inner class bit of every zero-phase defective exponent-three model is two-periodic.

    This is the main theorem, directly calling rt1_eight_first_inner_period_two.

    line 64

    uses RT1Fold939.rt1_eight_first_inner_period_two

      exact RT1Fold939.rt1_eight_first_inner_period_two x e hm
cycle_power_dyadic_defective_fold_model_of_corrected_periodicity
A defective dyadic model of exponent t + 1 whose corrected diagonal sum is periodic with period 2^t folds by bitwise OR into an exact model of exponent t with constant diagonal sum t + 1.
cycle_power_eight_zero_phase_corrected_count_periodic
For every zero-phase defective model of exponent 3, the sum of the first 4 diagonal bits plus the defect bit is 4-periodic in the diagonal index.
Finset.sum_range_succ
The sum of a sequence over the range of n + 1 integers is the sum over n integers plus the (n+1)-th term.
rt1_eight_defective_fold
Folding a zero-phase defective exponent-3 model yields a 4-position model whose diagonal matchings equal 1 and whose total diagonal count is 3.
rt1_folded_four_first_inner_period_two
Any 4-position model whose diagonal matchings equal 1 and whose diagonal count is 3 has a 2-periodic first inner bit (at index 1).
cycle_power_dyadic_fold_parents
In an exact dyadic configuration of exponent t + 1, bit a + 2^t can only be true if the parent bit a is true (for any a < 2^(t - 1)).
RT1Fold939.rt1_eight_first_inner_period_two
The first inner class bit of any zero-phase defective exponent-3 model is 2-periodic in the position parameter.

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

namespace RT1Fold939theorem rt1_eight_defective_fold (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (hm : cycle_power_dyadic_defective_half_model 3 x e 0) :    let y : ℤ → ℕ → Bool := fun p a => x p a || x p (a + 2^2)    (∀ p, cycle_power_dyadic_class_weight 2 (y p) =      (Finset.range (2^2)).sum (fun a => (y p a).toNat)) ∧    (∀ j < 2, ∀ v : ℤ, (Finset.range (2^j)).sum (fun a =>      (y (v-(a:ℤ)) a && y (v-(a:ℤ)) (a+2^2-2^j)).toNat) = 1) ∧    (∀ d : ℕ, 1 ≤ d → d < 2^2 → ∀ v : ℤ,      ∃ a : ℕ, a < 2^2-d ∧ y (v-(a:ℤ)) a = true ∧        y (v-(a:ℤ)) (a+d) = true) ∧    (∀ v : ℤ, (Finset.range (2^2)).sum (fun a =>      (y (v-(a:ℤ)) a).toNat) = 2+1) := by  apply cycle_power_dyadic_defective_fold_model_of_corrected_periodicity 2 (by decide) x e hm  simpa using cycle_power_eight_zero_phase_corrected_count_periodic x e hm/-- A four-position exact model of count three has a two-periodic first inner bit. -/theorem rt1_folded_four_first_inner_period_two (y : ℤ → ℕ → Bool)    (he : ∀ j < 2, ∀ v : ℤ, (Finset.range (2^j)).sum (fun a =>      (y (v-(a:ℤ)) a && y (v-(a:ℤ)) (a+2^2-2^j)).toNat) = 1)    (hc : ∀ v : ℤ, (Finset.range (2^2)).sum (fun a =>      (y (v-(a:ℤ)) a).toNat) = 3) :    ∀ p : ℤ, y p 1 = y (p-2) 1 := by  have ends (p : ℤ) : y p 0 = true ∧ y p 3 = true := by    have h := he 0 (by decide) p    norm_num [Finset.sum_range_succ] at h    cases h0 : y p 0 <;> cases h3 : y p 3 <;> simp_all  have hpair (p : ℤ) : (y p 2).toNat + (y (p-1) 1).toNat = 1 := by    have h := he 1 (by decide) p    norm_num [Finset.sum_range_succ, ends] at h    omega  have hactive (p : ℤ) : (y p 1).toNat + (y (p-1) 2).toNat = 1 := by    have h := hc (p+1)    have h1 : p+1-1 = p := by omega    have h2 : p+1-2 = p-1 := by omega    norm_num [Finset.sum_range_succ, ends, h1, h2] at h    omega  intro p  have h1 := hactive p  have h2 := hpair (p-1)  have hindex : p-1-1 = p-2 := by omega  rw [hindex] at h2  have heq : (y p 1).toNat = (y (p-2) 1).toNat := by omega  cases ha : y p 1 <;> cases hb : y (p-2) 1 <;> simp_all/-- The first inner bit is unchanged by this fold and is two-periodic. -/theorem rt1_eight_first_inner_period_two (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (hm : cycle_power_dyadic_defective_half_model 3 x e 0) :    ∀ p : ℤ, x p 1 = x (p-2) 1 := by  have hf := rt1_eight_defective_fold x e hm  dsimp at hf  rcases hf with ⟨_, he, _, hc⟩  have hper := rt1_folded_four_first_inner_period_two (fun p a => x p a || x p (a + 4)) he hc  have unchanged (p : ℤ) : (x p 1 || x p 5) = x p 1 := by    have hparent := (cycle_power_dyadic_fold_parents 2 (by decide) (x p) (hm.1 p)).1 1 (by decide)    cases h1 : x p 1 <;> cases h5 : x p 5 <;> simp_all  intro p  simpa only [show (1 : ℕ) + 2^2 = 5 by decide, unchanged] using hper pend RT1Fold939theorem cycle_power_eight_defective_boundary_period_two (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (hm : cycle_power_dyadic_defective_half_model 3 x e 0) : ∀ p : ℤ, x p 1 = x (p - 2) 1 := by  exact RT1Fold939.rt1_eight_first_inner_period_two x e hm
See it in the graphDiscuss this resultChallenge it