AFTD Auto-Formalizing Theoretical Domains

cycle_power_eight_alternating_false_phase_no_defect

theoremverified

If the first inner bit alternates in a zero-phase defective exponent-three model, no defect can occur at a root where that bit is false.

Statement

theorem cycle_power_eight_alternating_false_phase_no_defect (x : ℤ → ℕ → Bool) (e : ℤ → Bool)
    (hm : cycle_power_dyadic_defective_half_model 3 x e 0)
    (halt : ∀ p : ℤ, x (p + 1) 1 = !(x p 1)) :
    ∀ p : ℤ, x p 1 = false → e p = false
Source
RT-1 / OP-205, arXiv:2610.15635; finite computations 29006, 29007 and 29023.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • cycle_power_dyadic_defective_half_modelA dyadic half model with a Boolean defect: lower ranks have unique owners, top-rank ownership and the active count each lose one at a…
  • cycle_power_dyadic_tight_class_parentEquality in the dyadic class weight bound forces all rooted-tree parent implications at every smaller dyadic scale, uniformly in the arc…
  • cycle_power_dyadic_class_weightThe weighted number of pairs in a dyadic arc: the endpoint pair has weight two, and distances 2^m-2^j for 1≤j<m have weight one.
  • g$g(S,M) = \dim_{\mathbb{F}_p}(S^{\perp}_M) - \dim_{\mathbb{F}_p}(S_M)$.
Used by 3

The proof, explained

The theorem establishes that in an exponent-three defective half-model with zero phase, if the first inner bit alternates between consecutive positions (x(p+1) 1 = ¬x(p) 1), no defect can occur at any position where this bit is false (x(p) 1 = false implies e(p) = false). Assuming for contradiction that a defect occurs at such a position p, the alternation condition fixes the inner bit at positions p-1, p-2, and p-3 to be true, false, and true, respectively. Shifting the entire model by translation invariance moves p to the origin, producing a model with a defect at 0 and true inner bits at -1 and -3. Combining the model's rank, defect, and total weight equations with covering bounds around the origin yields a system of linear constraints on word bits that integer linear arithmetic proves to be unsatisfiable, completing the proof.

  1. Every word y(p) in the defective model has true endpoint bits: y(p) 0 = true and y(p) 7 = true.

    The model's rank-0 condition requires the sum over range(2^0) = {0} of (y(p-a) a && y(p-a)(a+7)).toNat to equal 1. For a = 0, this single term is (y(p) 0 && y(p) 7).toNat = 1, which by boolean case analysis forces both y(p) 0 = true and y(p) 7 = true.

    lines 10–14

    uses pow_zero, Finset.sum_range_one, Nat.cast_zero, sub_zero, zero_add

      constructor
      · intro p
        have hex := h.2.1 0 (by omega) p
        simp only [pow_zero, Finset.sum_range_one, Nat.cast_zero, sub_zero, zero_add] at hex
        cases h0 : y p 0 <;> cases h7 : y p 7 <;> simp_all
  2. Every word y(p) satisfies six parent-child implications: y(p) 1 → y(p) 7, y(p) 2 → y(p) 6, y(p) 3 → y(p) 7, y(p) 4 → y(p) 0, y(p) 5 → y(p) 1, and y(p) 6 → y(p) 0.

    Applying cycle_power_dyadic_tight_class_parent at scales j = 1 and j = 2 establishes parent implications between bit a and bit a + 8 - 2^j. Specializing these implications to the relevant bit indices a ∈ {0, 1, 2, 3} and simplifying arithmetic with norm_num produces the six implications.

    lines 15–25

    uses cycle_power_dyadic_tight_class_parent

      · intro p
        have h1 := cycle_power_dyadic_tight_class_parent 3 1 (by omega) (by omega) (y p) (h.1 p)
        have h2 := cycle_power_dyadic_tight_class_parent 3 2 (by omega) (by omega) (y p) (h.1 p)
        have a := (h1 1 (by norm_num)).2 (by norm_num)
        have b := (h2 2 (by norm_num)).2 (by norm_num)
        have c := (h2 3 (by norm_num)).2 (by norm_num)
        have d := (h2 0 (by norm_num)).1 (by norm_num)
        have f := (h2 1 (by norm_num)).1 (by norm_num)
        have g := (h1 0 (by norm_num)).1 (by norm_num)
        norm_num at a b c d f g
        exact ⟨a,b,c,d,f,g⟩
  3. If boolean a implies boolean b, then their conjunction a && b equals a.

    Exhaustive case analysis on booleans a and b: if a is false, both sides evaluate to false; if a is true, the implication ensures b is true, so both sides evaluate to true.

    line 28

      cases a <;> cases b <;> simp_all
  4. In any exponent-three zero-phase model, three simplified linear constraints hold at every coordinate v: (x(v) 6).toNat + (x(v-1) 1).toNat = 1, (x(v) 4).toNat + (x(v-1) 5).toNat + (x(v-2) 2).toNat + (x(v-3) 3).toNat + (e(v)).toNat = 1, and ∑_{a=0}^7 (x(v-a) a).toNat + (e(v)).toNat = 4.

    Using rt1_bridge_base895, the endpoints x(p) 0 and x(p) 7 are true, while parent implications imply x(p) 1 && x(p) 5 = x(p) 5 and x(p) 2 && x(p) 6 = x(p) 2 via bool_parent_and and Bool.and_comm. Unrolling the finite sums in the model's rank-1 condition, defect condition, and total weight condition with Finset.sum_range_succ and simplifying with these boolean identities gives the three equations.

    lines 38–55

    uses rt1_bridge_base895, Bool.and_comm, bool_parent_and, Finset.sum_range_succ

      obtain ⟨hend, hp⟩ := rt1_bridge_base895 x e h
      have hpa (p : ℤ) : (x p 1 && x p 5) = x p 5 := by
        rw [Bool.and_comm]; exact bool_parent_and _ _ (hp p).2.2.2.2.1
      have hpb (p : ℤ) : (x p 2 && x p 6) = x p 2 :=
        bool_parent_and _ _ (hp p).2.1
      refine ⟨?_, ?_, ?_⟩
      · intro v
        have hh := h.2.1 1 (by omega) v
        norm_num [Finset.sum_range_succ, hend, hpa, hpb] at hh ⊢
        exact hh
      · intro v
        have hh := h.2.2.1 v
        norm_num [Finset.sum_range_succ, hend, hpa, hpb] at hh ⊢
        exact hh
      · intro v
        have hh := h.2.2.2.2 v
        norm_num [Finset.sum_range_succ] at hh ⊢
        exact hh
  5. The system of fifteen linear equalities and inequalities over twenty-two natural numbers has no solution. automation

    The integer linear arithmetic solver omega checks that the given system of upper bounds, lower bounds, and equality constraints is unsatisfiable.

    line 71

      omega
  6. At any coordinate v, 1 ≤ (x(v) 5).toNat + (x(v-1) 6).toNat + (x(v-2) 2).toNat.

    The covering condition at difference d = 5 gives an index a < 3 where both x(v-a) a and x(v-a)(a+5) are true. Case analysis on a ∈ {0, 1, 2} shows that at least one of x(v) 5, x(v-1) 6, or x(v-2) 2 is true in every case.

    lines 76–79

      obtain ⟨a, ha, h1, h2⟩ := h.2.2.2.1 5 (by decide) (by decide) (by decide) v
      norm_num at ha
      interval_cases a <;> norm_num at h1 h2
      all_goals simp_all <;> omega
  7. At any coordinate v, 1 ≤ (x(v) 5).toNat + (x(v-1) 1).toNat + (x(v-2) 2).toNat.

    Applying the covering condition with d = 5 again gives an offset a < 3. For a = 0 bit 5 is true, for a = 1 bit 1 is true, and for a = 2 bit 2 is true, so the sum of these three natural numbers is at least 1.

    lines 84–87

      obtain ⟨a, ha, h1, h2⟩ := h.2.2.2.1 5 (by decide) (by decide) (by decide) v
      norm_num at ha
      interval_cases a <;> norm_num at h1 h2
      all_goals simp_all <;> omega
  8. At the origin, 1 ≤ (x(0) 3).toNat + (x(-1) 4).toNat + (x(-2) 2).toNat + (x(-3) 3).toNat + (x(-4) 4).toNat.

    The covering condition with d = 3 at position 0 yields an index a < 5 where both bits at distance 3 are true. Testing each case a ∈ {0, 1, 2, 3, 4} shows that one of the five terms must be true.

    lines 93–96

      obtain ⟨a, ha, h1, h2⟩ := h.2.2.2.1 3 (by decide) (by decide) (by decide) 0
      norm_num at ha
      interval_cases a <;> norm_num at h1 h2
      all_goals simp_all <;> omega
  9. For every boolean b, b.toNat ≤ 1.

    By evaluating b.toNat on false (which yields 0 ≤ 1) and true (which yields 1 ≤ 1).

    line 98

    private theorem rt1_bool_toNat_le942 (b : Bool) : b.toNat ≤ 1 := by cases b <;> decide
  10. If boolean a implies boolean b, then a.toNat ≤ b.toNat.

    By case analysis: if a is false, 0 ≤ b.toNat is trivial; if a is true, the hypothesis ensures b is true, giving 1 ≤ 1.

    line 100

      cases a <;> cases b <;> simp_all
  11. Assuming x(-1) 1 = true, x(-3) 1 = true, and e(0) = true, the semantic equations, covering inequalities, and parent bounds at coordinates -2, -1, 0, 3, 4 reduce to the premises of the arithmetic contradiction lemma.

    We instantiate the rank equation at -2, the defect equations at 0 and 4, the total weight equations at 0, 3, 4, the covering bounds from rt1_cover_five_upper942, rt1_cover_five_first_upper942, and rt1_cover_three_upper942, and the parent bounds using rt1_bool_imp_toNat942 and rt1_bool_toNat_le942. Rewriting with the known endpoint bits and the hypotheses via Bool.toNat_true simplifies each relation into the exact form required by rt1_false_arithmetic942.

    lines 105–132

    uses rt1_bridge_base895, rt1_false_semantics939, rt1_cover_five_upper942, rt1_cover_five_first_upper942, rt1_cover_three_upper942, rt1_bool_imp_toNat942, rt1_bool_toNat_le942, Bool.toNat_true

      obtain ⟨hend, hp⟩ := rt1_bridge_base895 x e h
      obtain ⟨hrank, htop, hcount⟩ := rt1_false_semantics939 x e h
      have htop0 := htop 0
      have hcount0 := hcount 0
      have hrankm2 := hrank (-2)
      have hcount3 := hcount 3
      have htop4 := htop 4
      have hcount4 := hcount 4
      have hc5m1 := rt1_cover_five_upper942 x e h (-1)
      have hc53 := rt1_cover_five_first_upper942 x e h 3
      have hc30 := rt1_cover_three_upper942 x e h
      have hp_b := rt1_bool_imp_toNat942 _ _ (hp (-3)).2.1
      have hp_h := rt1_bool_imp_toNat942 _ _ (hp 3).2.2.2.2.1
      have hbm := rt1_bool_toNat_le942 (x (-3) 2)
      have hfm := rt1_bool_toNat_le942 (x (-3) 6)
      have ha3b := rt1_bool_toNat_le942 (x 3 1)
      have hh3b := rt1_bool_toNat_le942 (x 3 5)
      have he0n : (e 0).toNat = 1 := by simp [he0]
      have ha1n : (x (-1) 1).toNat = 1 := by simp [ha1]
      have ha3n : (x (-3) 1).toNat = 1 := by simp [ha3]
      have ends0 := hend 0
      have endsm7 := hend (-7)
      have ends3 := hend 3
      have endsm4 := hend (-4)
      have ends4 := hend 4
      have endsm3 := hend (-3)
      norm_num only [Bool.toNat_true, ends0.1, endsm7.2, ends3.1, endsm4.2, ends4.1, endsm3.2,
        he0, ha1, ha3] at htop0 hcount0 hrankm2 hcount3 htop4 hcount4 hc5m1 hc53 hc30
  12. No defective model can simultaneously have x(-1) 1 = true, x(-3) 1 = true, and e(0) = true.

    Feeding the twenty-two natural-number quantities into rt1_false_arithmetic942 discharges all fifteen hypotheses (using omega for remaining linear relations), completing the contradiction.

    lines 133–141

    uses rt1_false_arithmetic942

      exact rt1_false_arithmetic942
        (x (-2) 2).toNat (x (-3) 3).toNat (x (-4) 4).toNat (x (-5) 5).toNat
        (x (-6) 6).toNat (x 0 4).toNat (x (-1) 5).toNat (x (-2) 6).toNat
        (x (-3) 2).toNat (x (-3) 6).toNat (x 0 3).toNat (x (-1) 4).toNat
        (x 2 1).toNat (x 1 2).toNat (x (-2) 5).toNat (e 3).toNat
        (x 3 5).toNat (x 3 1).toNat (x 2 2).toNat (x 1 3).toNat
        (x 4 4).toNat (e 4).toNat
        (by omega) (by omega) (by omega) (by omega) hp_b hbm hfm (by omega)
        (by omega) (by omega) hp_h ha3b hh3b (by omega) (by omega)
  13. Translating a defective half-model by any integer offset v produces another defective half-model with zero phase.

    Each of the five axioms defining cycle_power_dyadic_defective_half_model is universally quantified over coordinates; substituting v + p for p and rearranging index subtractions with add_sub_assoc and add_zero verifies that the shifted sequences satisfy all five axioms.

    lines 145–159

    uses add_sub_assoc, add_zero

      rcases h with ⟨hw, hl, ht, hc, hn⟩
      refine ⟨?_, ?_, ?_, ?_, ?_⟩
      · intro p
        exact hw (v+p)
      · intro j hj p
        simpa only [add_sub_assoc] using hl j hj (v+p)
      · intro p
        simpa only [add_sub_assoc, add_zero] using ht (v+p)
      · intro d hd hd8 hd4 p
        obtain ⟨a,ha,ha1,ha2⟩ := hc d hd hd8 hd4 (v+p)
        refine ⟨a, ha, ?_, ?_⟩
        · simpa only [add_sub_assoc] using ha1
        · simpa only [add_sub_assoc] using ha2
      · intro p
        simpa only [add_sub_assoc] using hn (v+p)
  14. If bit 1 alternates across coordinates and x(p) 1 = false, then x(p-1) 1 = true, x(p-2) 1 = false, and x(p-3) 1 = true.

    Using the alternation assumption x(k+1) 1 = !x(k) 1 sequentially at k = p-1, k = p-2, and k = p-3, the boolean value toggles at each step from false to true, false, and true.

    lines 166–181

      intro p hp
      have a1 : x (p-1) 1 = true := by
        have hh := halt (p-1)
        have hi : p-1+1 = p := by omega
        rw [hi, hp] at hh
        cases hbit : x (p-1) 1 <;> simp [hbit] at hh ⊢
      have a2 : x (p-2) 1 = false := by
        have hh := halt (p-2)
        have hi : p-2+1 = p-1 := by omega
        rw [hi, a1] at hh
        cases hbit : x (p-2) 1 <;> simp [hbit] at hh ⊢
      have a3 : x (p-3) 1 = true := by
        have hh := halt (p-3)
        have hi : p-3+1 = p-2 := by omega
        rw [hi, a2] at hh
        cases hbit : x (p-3) 1 <;> simp [hbit] at hh ⊢
  15. Whenever x(p) 1 = false, the defect bit e(p) must be false.

    Case split on e(p): if false, the claim holds immediately. If true, translate the model by p using rt1_model_shift_upper895 so that the defect moves to coordinate 0 and the bits at -1 and -3 remain true by sub_eq_add_neg. This matches the hypotheses of rt1_false_origin_short942, deriving a contradiction via False.elim.

    lines 182–189

    uses rt1_model_shift_upper895, sub_eq_add_neg, rt1_false_origin_short942, False.elim

      cases he : e p with
      | false => rfl
      | true =>
        have hs := rt1_model_shift_upper895 x e hm p
        have he0 : (fun q => e (p+q)) 0 = true := by simpa using he
        have ha1 : (fun q a => x (p+q) a) (-1) 1 = true := by simpa only [sub_eq_add_neg] using a1
        have ha3 : (fun q a => x (p+q) a) (-3) 1 = true := by simpa only [sub_eq_add_neg] using a3
        exact False.elim (rt1_false_origin_short942 _ _ hs ha1 ha3 he0)
  16. In an exponent-three defective half-model where the first inner bit alternates, x(p) 1 = false implies e(p) = false for all p.

    The main theorem delegates directly to the result proved in RT1False942.rt1_false_phase942.

    line 197

    uses RT1False942.rt1_false_phase942

      exact RT1False942.rt1_false_phase942 x e hm halt
add_zero
In an additive monoid with a zero, adding zero on the right leaves an element unchanged: a + 0 = a.
add_sub_assoc
In an additive group, addition and subtraction associate as (a + b) - c = a + (b - c).
Bool.and_comm
Boolean conjunction is commutative: x && y = y && x.
Bool.toNat_true
The numeric conversion of the boolean true to a natural number is 1.
bool_parent_and
If boolean a implies boolean b, then their conjunction a && b is equal to a.
cycle_power_dyadic_tight_class_parent
In a tight dyadic word of length 2^m, at scale j < m, bit a implies bit a + 2^m - 2^j if a ≥ 2^(j-1), and bit a + 2^m - 2^j implies bit a if a < 2^(j-1).
False.elim
From a contradiction (False), any conclusion follows.
Finset.sum_range_one
The sum of a function over the range {0} of length 1 equals the function evaluated at 0.
Finset.sum_range_succ
The sum over the range of length n + 1 equals the sum over length n plus the term at index n.
Nat.cast_zero
The natural number zero cast into an additive monoid with one equals zero.
pow_zero
Any element raised to the zeroth power in a monoid equals 1.
RT1False942.rt1_false_phase942
In an exponent-three zero-phase model where bit 1 alternates across coordinates, bit 1 being false implies the defect bit is false.
rt1_bool_toNat_le942
For any boolean b, its natural number value b.toNat is at most 1.
rt1_bool_imp_toNat942
If boolean a implies boolean b, then a.toNat ≤ b.toNat.
rt1_bridge_base895
In an exponent-three zero-phase defective half-model, all words have true endpoints and satisfy six parent-child bit implications.
rt1_cover_three_upper942
In an exponent-three zero-phase defective half-model, the sum of bit 3 at 0 and bits at offsets -1, -2, -3, -4 is at least 1.
rt1_cover_five_first_upper942
In an exponent-three zero-phase defective half-model, at every coordinate the sum of bit 5, previous bit 1, and two-step previous bit 2 is at least 1.
rt1_cover_five_upper942
In an exponent-three zero-phase defective half-model, at every coordinate the sum of bit 5, previous bit 6, and two-step previous bit 2 is at least 1.
rt1_false_arithmetic942
A system of fifteen linear equalities and inequalities over twenty-two natural numbers is contradictory.
rt1_false_origin_short942
In an exponent-three zero-phase defective half-model, bit 1 cannot simultaneously be true at -1 and -3 while a defect occurs at 0.
rt1_false_semantics939
In an exponent-three zero-phase defective half-model, the rank-1 sum, the defect-level sum, and the total word sum simplify to explicit linear equations at every coordinate.
rt1_model_shift_upper895
Translating an exponent-three zero-phase defective half-model by any integer offset yields another valid defective half-model with zero phase.
sub_zero
Subtracting zero leaves an element unchanged: a - 0 = a.
sub_eq_add_neg
Subtracting b equals adding the negation -b: a - b = a + (-b).
zero_add
Adding zero on the left leaves an element unchanged: 0 + a = a.

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 RT1False942set_option maxRecDepth 16384set_option maxHeartbeats 8000000theorem rt1_bridge_base895 (y : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 y e 0) :    (∀ p, y p 0 = true ∧ y p 7 = true) ∧    (∀ p, (y p 1 = true → y p 7 = true) ∧ (y p 2 = true → y p 6 = true) ∧          (y p 3 = true → y p 7 = true) ∧ (y p 4 = true → y p 0 = true) ∧          (y p 5 = true → y p 1 = true) ∧ (y p 6 = true → y p 0 = true)) := by  constructor  · intro p    have hex := h.2.1 0 (by omega) p    simp only [pow_zero, Finset.sum_range_one, Nat.cast_zero, sub_zero, zero_add] at hex    cases h0 : y p 0 <;> cases h7 : y p 7 <;> simp_all  · intro p    have h1 := cycle_power_dyadic_tight_class_parent 3 1 (by omega) (by omega) (y p) (h.1 p)    have h2 := cycle_power_dyadic_tight_class_parent 3 2 (by omega) (by omega) (y p) (h.1 p)    have a := (h1 1 (by norm_num)).2 (by norm_num)    have b := (h2 2 (by norm_num)).2 (by norm_num)    have c := (h2 3 (by norm_num)).2 (by norm_num)    have d := (h2 0 (by norm_num)).1 (by norm_num)    have f := (h2 1 (by norm_num)).1 (by norm_num)    have g := (h1 0 (by norm_num)).1 (by norm_num)    norm_num at a b c d f g    exact ⟨a,b,c,d,f,g⟩private theorem bool_parent_and (a b : Bool) (h : a = true → b = true) : (a && b) = a := by  cases a <;> cases b <;> simp_alltheorem rt1_false_semantics939 (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 x e 0) :    (∀ v : ℤ, (x v 6).toNat + (x (v-1) 1).toNat = 1) ∧    (∀ v : ℤ, (x v 4).toNat + (x (v-1) 5).toNat + (x (v-2) 2).toNat +       (x (v-3) 3).toNat + (e v).toNat = 1) ∧    (∀ v : ℤ, (x v 0).toNat + (x (v-1) 1).toNat + (x (v-2) 2).toNat +       (x (v-3) 3).toNat + (x (v-4) 4).toNat + (x (v-5) 5).toNat +       (x (v-6) 6).toNat + (x (v-7) 7).toNat + (e v).toNat = 4) := by  obtain ⟨hend, hp⟩ := rt1_bridge_base895 x e h  have hpa (p : ℤ) : (x p 1 && x p 5) = x p 5 := by    rw [Bool.and_comm]; exact bool_parent_and _ _ (hp p).2.2.2.2.1  have hpb (p : ℤ) : (x p 2 && x p 6) = x p 2 :=    bool_parent_and _ _ (hp p).2.1  refine ⟨?_, ?_, ?_⟩  · intro v    have hh := h.2.1 1 (by omega) v    norm_num [Finset.sum_range_succ, hend, hpa, hpb] at hh ⊢    exact hh  · intro v    have hh := h.2.2.1 v    norm_num [Finset.sum_range_succ, hend, hpa, hpb] at hh ⊢    exact hh  · intro v    have hh := h.2.2.2.2 v    norm_num [Finset.sum_range_succ] at hh ⊢    exact hhtheorem rt1_false_arithmetic942    (bm2 cm3 dm4 hm5 fm6 d0 hm1 fm2 bm3 fm3 : ℕ)    (c0 dm1 a2 b1 hm2 e3 h3 a3 b2 c1 d4 e4 : ℕ)    (htop0 : d0 + hm1 + bm2 + cm3 + 1 = 1)    (hcount0 : bm2 + cm3 + dm4 + hm5 + fm6 + 4 = 4)    (hrank : fm2 + 1 = 1)    (hcov5m1 : 1 ≤ hm1 + fm2 + bm3)    (hparentb : bm3 ≤ fm3) (hbm : bm3 ≤ 1) (hfm : fm3 ≤ 1)    (hcov30 : 1 ≤ c0 + dm1 + bm2 + cm3 + dm4)    (hcount3 : a2 + b1 + c0 + dm1 + hm2 + e3 + fm3 + 2 = 4)    (hcov53 : 1 ≤ h3 + a2 + b1)    (hparenth : h3 ≤ a3) (ha3 : a3 ≤ 1) (hh3 : h3 ≤ 1)    (htop4 : d4 + h3 + b2 + c1 + e4 = 1)    (hcount4 : a3 + b2 + c1 + d0 + hm1 + fm2 + e4 + 2 = 4) : False := by  omegatheorem rt1_cover_five_upper942 (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 x e 0) (v : ℤ) :    1 ≤ (x v 5).toNat + (x (v-1) 6).toNat + (x (v-2) 2).toNat := by  obtain ⟨a, ha, h1, h2⟩ := h.2.2.2.1 5 (by decide) (by decide) (by decide) v  norm_num at ha  interval_cases a <;> norm_num at h1 h2  all_goals simp_all <;> omegatheorem rt1_cover_five_first_upper942 (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 x e 0) (v : ℤ) :    1 ≤ (x v 5).toNat + (x (v-1) 1).toNat + (x (v-2) 2).toNat := by  obtain ⟨a, ha, h1, h2⟩ := h.2.2.2.1 5 (by decide) (by decide) (by decide) v  norm_num at ha  interval_cases a <;> norm_num at h1 h2  all_goals simp_all <;> omegatheorem rt1_cover_three_upper942 (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 x e 0) :    1 ≤ (x 0 3).toNat + (x (-1) 4).toNat + (x (-2) 2).toNat +      (x (-3) 3).toNat + (x (-4) 4).toNat := by  obtain ⟨a, ha, h1, h2⟩ := h.2.2.2.1 3 (by decide) (by decide) (by decide) 0  norm_num at ha  interval_cases a <;> norm_num at h1 h2  all_goals simp_all <;> omegaprivate theorem rt1_bool_toNat_le942 (b : Bool) : b.toNat ≤ 1 := by cases b <;> decideprivate theorem rt1_bool_imp_toNat942 (a b : Bool) (h : a = true → b = true) : a.toNat ≤ b.toNat := by  cases a <;> cases b <;> simp_alltheorem rt1_false_origin_short942 (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 x e 0)    (ha1 : x (-1) 1 = true) (ha3 : x (-3) 1 = true) (he0 : e 0 = true) : False := by  obtain ⟨hend, hp⟩ := rt1_bridge_base895 x e h  obtain ⟨hrank, htop, hcount⟩ := rt1_false_semantics939 x e h  have htop0 := htop 0  have hcount0 := hcount 0  have hrankm2 := hrank (-2)  have hcount3 := hcount 3  have htop4 := htop 4  have hcount4 := hcount 4  have hc5m1 := rt1_cover_five_upper942 x e h (-1)  have hc53 := rt1_cover_five_first_upper942 x e h 3  have hc30 := rt1_cover_three_upper942 x e h  have hp_b := rt1_bool_imp_toNat942 _ _ (hp (-3)).2.1  have hp_h := rt1_bool_imp_toNat942 _ _ (hp 3).2.2.2.2.1  have hbm := rt1_bool_toNat_le942 (x (-3) 2)  have hfm := rt1_bool_toNat_le942 (x (-3) 6)  have ha3b := rt1_bool_toNat_le942 (x 3 1)  have hh3b := rt1_bool_toNat_le942 (x 3 5)  have he0n : (e 0).toNat = 1 := by simp [he0]  have ha1n : (x (-1) 1).toNat = 1 := by simp [ha1]  have ha3n : (x (-3) 1).toNat = 1 := by simp [ha3]  have ends0 := hend 0  have endsm7 := hend (-7)  have ends3 := hend 3  have endsm4 := hend (-4)  have ends4 := hend 4  have endsm3 := hend (-3)  norm_num only [Bool.toNat_true, ends0.1, endsm7.2, ends3.1, endsm4.2, ends4.1, endsm3.2,    he0, ha1, ha3] at htop0 hcount0 hrankm2 hcount3 htop4 hcount4 hc5m1 hc53 hc30  exact rt1_false_arithmetic942    (x (-2) 2).toNat (x (-3) 3).toNat (x (-4) 4).toNat (x (-5) 5).toNat    (x (-6) 6).toNat (x 0 4).toNat (x (-1) 5).toNat (x (-2) 6).toNat    (x (-3) 2).toNat (x (-3) 6).toNat (x 0 3).toNat (x (-1) 4).toNat    (x 2 1).toNat (x 1 2).toNat (x (-2) 5).toNat (e 3).toNat    (x 3 5).toNat (x 3 1).toNat (x 2 2).toNat (x 1 3).toNat    (x 4 4).toNat (e 4).toNat    (by omega) (by omega) (by omega) (by omega) hp_b hbm hfm (by omega)    (by omega) (by omega) hp_h ha3b hh3b (by omega) (by omega)theorem rt1_model_shift_upper895 (y : ℤ → ℕ → Bool) (e : ℤ → Bool)    (h : cycle_power_dyadic_defective_half_model 3 y e 0) (v : ℤ) :    cycle_power_dyadic_defective_half_model 3 (fun p a => y (v+p) a) (fun p => e (v+p)) 0 := by  rcases h with ⟨hw, hl, ht, hc, hn⟩  refine ⟨?_, ?_, ?_, ?_, ?_⟩  · intro p    exact hw (v+p)  · intro j hj p    simpa only [add_sub_assoc] using hl j hj (v+p)  · intro p    simpa only [add_sub_assoc, add_zero] using ht (v+p)  · intro d hd hd8 hd4 p    obtain ⟨a,ha,ha1,ha2⟩ := hc d hd hd8 hd4 (v+p)    refine ⟨a, ha, ?_, ?_⟩    · simpa only [add_sub_assoc] using ha1    · simpa only [add_sub_assoc] using ha2  · intro p    simpa only [add_sub_assoc] using hn (v+p)theorem rt1_false_phase942 (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (hm : cycle_power_dyadic_defective_half_model 3 x e 0)    (halt : ∀ p : ℤ, x (p + 1) 1 = !(x p 1)) :    ∀ p : ℤ, x p 1 = false → e p = false := by  intro p hp  have a1 : x (p-1) 1 = true := by    have hh := halt (p-1)    have hi : p-1+1 = p := by omega    rw [hi, hp] at hh    cases hbit : x (p-1) 1 <;> simp [hbit] at hh ⊢  have a2 : x (p-2) 1 = false := by    have hh := halt (p-2)    have hi : p-2+1 = p-1 := by omega    rw [hi, a1] at hh    cases hbit : x (p-2) 1 <;> simp [hbit] at hh ⊢  have a3 : x (p-3) 1 = true := by    have hh := halt (p-3)    have hi : p-3+1 = p-2 := by omega    rw [hi, a2] at hh    cases hbit : x (p-3) 1 <;> simp [hbit] at hh ⊢  cases he : e p with  | false => rfl  | true =>    have hs := rt1_model_shift_upper895 x e hm p    have he0 : (fun q => e (p+q)) 0 = true := by simpa using he    have ha1 : (fun q a => x (p+q) a) (-1) 1 = true := by simpa only [sub_eq_add_neg] using a1    have ha3 : (fun q a => x (p+q) a) (-3) 1 = true := by simpa only [sub_eq_add_neg] using a3    exact False.elim (rt1_false_origin_short942 _ _ hs ha1 ha3 he0)end RT1False942theorem cycle_power_eight_alternating_false_phase_no_defect (x : ℤ → ℕ → Bool) (e : ℤ → Bool)    (hm : cycle_power_dyadic_defective_half_model 3 x e 0)    (halt : ∀ p : ℤ, x (p + 1) 1 = !(x p 1)) :    ∀ p : ℤ, x p 1 = false → e p = false := by  exact RT1False942.rt1_false_phase942 x e hm halt
See it in the graphDiscuss this resultChallenge it