cycle_power_dyadic_regular_continuation_left_of_right
The leftward continuation follows from the rightward one, exponent by exponent. Call a class regular of the first kind if it contains offset 1 and its offsets come in consecutive pairs (2i, 2i+1 both in or both out), and regular of the second kind if it consists of its two endpoints only. Fix t and suppose that in every tight, exactly dyadically covered, fully covered integer Boolean class model at exponent t+1 with exactly t+2 active classes per vertex, whenever the classes rooted at p0 - 3·2^t, ..., p0 are regular with kinds alternating and p0 of the first kind, the class rooted at p0+1 is of the second kind and the class rooted at p0+2 of the first kind. Then in every such model, whenever the classes rooted at p0, ..., p0 + 3·2^t are regular with kinds alternating and p0 of the first kind, the class rooted at p0-1 is of the second kind and the class rooted at p0-2 of the first kind.
Statement
theorem cycle_power_dyadic_regular_continuation_left_of_right (t : ℕ) (hCTr : ∀ (x : ℤ → ℕ → Bool), (∀ p, cycle_power_dyadic_class_weight (t+1) (x p) = (Finset.range (2^(t+1))).sum (fun a => (x p a).toNat)) → (∀ i < t+1, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) = 1) → (∀ d : ℕ, 1 ≤ d → d < 2^(t+1) → ∀ v : ℤ, ∃ a : ℕ, a < 2^(t+1)-d ∧ x (v-(a : ℤ)) a = true ∧ x (v-(a : ℤ)) (a+d) = true) → (∀ v : ℤ, (Finset.range (2^(t+1))).sum (fun a => (x (v-(a : ℤ)) a).toNat) = (t+1)+1) → ∀ p0 : ℤ, (∀ r : ℤ, p0 - 3*2^t ≤ r → r ≤ p0 → ((p0 - r) % 2 = 0 → x r 1 = true ∧ ∀ i < 2^t, x r (2*i) = x r (2*i+1)) ∧ ((p0 - r) % 2 = 1 → ∀ a, 0 < a → a < 2^(t+1) - 1 → x r a = false)) → (∀ a, 0 < a → a < 2^(t+1) - 1 → x (p0+1) a = false) ∧ (x (p0+2) 1 = true ∧ ∀ i < 2^t, x (p0+2) (2*i) = x (p0+2) (2*i+1))) (x : ℤ → ℕ → Bool) (htight : ∀ p, cycle_power_dyadic_class_weight (t+1) (x p) = (Finset.range (2^(t+1))).sum (fun a => (x p a).toNat)) (hexact : ∀ i < t+1, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) = 1) (hcover : ∀ d : ℕ, 1 ≤ d → d < 2^(t+1) → ∀ v : ℤ, ∃ a : ℕ, a < 2^(t+1)-d ∧ x (v-(a : ℤ)) a = true ∧ x (v-(a : ℤ)) (a+d) = true) (hcount : ∀ v : ℤ, (Finset.range (2^(t+1))).sum (fun a => (x (v-(a : ℤ)) a).toNat) = (t+1)+1) (p0 : ℤ) (hreg : ∀ r : ℤ, p0 ≤ r → r ≤ p0 + 3*2^t → ((r - p0) % 2 = 0 → x r 1 = true ∧ ∀ i < 2^t, x r (2*i) = x r (2*i+1)) ∧ ((r - p0) % 2 = 1 → ∀ a, 0 < a → a < 2^(t+1) - 1 → x r a = false)) : (∀ a, 0 < a → a < 2^(t+1) - 1 → x (p0-1) a = false) ∧ (x (p0-2) 1 = true ∧ ∀ i < 2^t, x (p0-2) (2*i) = x (p0-2) (2*i+1))
- Source
- Helper step for the main statement of OP-205 (arXiv:2610.15635, the case k+1 = 2^m, n even, (k+1) not dividing n, left open there); it concerns the integer Boolean class models that optimal (m+1)-layer covers give. Removes the leftward continuation hypothesis: cycle_power_dyadic_regular_continuation_left follows from cycle_power_dyadic_regular_continuation_right.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- cycle_power_rooted_reflectReflects the offsets of a rooted Boolean profile in its arc of length D and changes its integer root so that physical lattice points are…
- cycle_power_rooted_reflect_exactReflection of rooted profiles preserves exact pair ownership at every rank length L with0<L<=D; the physical starting point changes from v…
- cycle_power_rooted_reflect_coverReflection preserves coverage of every ordinary distance strictly between0 and the arc length.
- cycle_power_dyadic_class_weight_reflectThe dyadic class weight is invariant under reversing the offset interval.
- cycle_power_reflect_count_defectReflection transports a pointwise active-count defect by negating its vertex.
- 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.
- Used by 1
- simple_graph_equivalence_covering_number_cycle_power_two_pow_even_not_dvd_of_regular_continuation_rightConditional reduction of OP-205 to three statements about tight, exactly dyadically covered, fully covered integer Boolean class models.…
The proof, explained
The theorem deduces leftward continuation of regular classes from rightward continuation by exploiting a reflection symmetry. Reflecting the Boolean class model across both root positions and offset coordinates produces a new model that preserves tightness, dyadic coverage, full coverage, and vertex class counts. Under this reflection, the assumed alternating regular pattern to the right of p0 turns into an alternating regular pattern to the left of the reflected root, allowing the rightward continuation theorem to be applied. Reflecting the resulting conclusions back shows that p0 - 1 has no internal active offsets and p0 - 2 is regular of the first kind.
Define abbreviations T = 2^t and D = 2^(t+1) = 2T, establish their positivity and arithmetic identities, and record an argument congruence helper for x.
We set T = 2^t, so D = 2^(t+1) = 2T with T > 0 and D > 0. We also cast 2^(t+1) - 1 to the integer 2T - 1, and prove the congruence helper that x(q, a) = x(q', a') whenever q = q' and a = a'.
uses
pow_succobtain ⟨T, hT⟩ : ∃ T : ℕ, T = 2^t := ⟨_, rfl⟩ have hTpos : 0 < T := by rw [hT]; positivity have hD : (2:ℕ)^(t+1) = 2*T := by rw [hT, pow_succ]; ring have hDpos : 0 < (2:ℕ)^(t+1) := by positivity have hTz : ((2:ℤ))^t = (T:ℤ) := by rw [hT]; push_cast; rfl have hcast : (((2^(t+1) - 1 : ℕ)) : ℤ) = 2*(T:ℤ) - 1 := by rw [hD]; omega have hx : ∀ (q q' : ℤ) (a a' : ℕ), q = q' → a = a' → x q a = x q' a' := by intro q q' a a' h1 h2; rw [h1, h2]
Every class rooted at v has both endpoints active: x(v, 0) = true and x(v, 2^(t+1) - 1) = true.
Specializing the exact dyadic coverage assumption (hexact) to level i = 0 gives a sum over the singleton range {0}. The single term requires (x(v, 0) && x(v, 2^(t+1) - 1)).toNat = 1, forcing both endpoint booleans to be true.
uses
pow_zero,Finset.range_one,Finset.sum_singleton,Nat.cast_zero,sub_zero,Nat.zero_addhave hends : ∀ v : ℤ, x v 0 = true ∧ x v (2^(t+1) - 1) = true := by intro v have h := hexact 0 (by omega) v simp only [pow_zero, Finset.range_one, Finset.sum_singleton, Nat.cast_zero, sub_zero, Nat.zero_add] at h revert h generalize x v 0 = u generalize x v (2^(t+1) - 1) = w cases u <;> cases w <;> simp
The reflected Boolean model y(q, a) = x(-q - (2^(t+1)-1), 2^(t+1)-1-a) satisfies tightness, exact dyadic coverage, full coverage, and vertex class count t + 2.
The model y is formed by reflecting both the root vertex and the offset coordinates. Tightness is preserved by cycle_power_dyadic_class_weight_reflect and Finset.sum_range_reflect. Exact dyadic coverage and full difference coverage are preserved by cycle_power_rooted_reflect_exact and cycle_power_rooted_reflect_cover. The active class count per vertex is preserved by cycle_power_reflect_count_defect with zero defect.
uses
cycle_power_dyadic_class_weight_reflect,Finset.sum_range_reflect,cycle_power_rooted_reflect_exact,Nat.pow_le_pow_right,cycle_power_rooted_reflect_cover,cycle_power_reflect_count_defectlet y : ℤ → ℕ → Bool := cycle_power_rooted_reflect (2^(t+1)) x have yd : ∀ (q : ℤ) (a : ℕ), y q a = x (-q - ((2^(t+1) - 1 : ℕ) : ℤ)) (2^(t+1) - 1 - a) := fun _ _ => rfl have ytight : ∀ p, cycle_power_dyadic_class_weight (t+1) (y p) = (Finset.range (2^(t+1))).sum (fun a => (y p a).toNat) := by intro p change cycle_power_dyadic_class_weight (t+1) (fun a => x (-p - ((2^(t+1) - 1 : ℕ) : ℤ)) (2^(t+1) - 1 - a)) = _ rw [cycle_power_dyadic_class_weight_reflect, htight] exact (Finset.sum_range_reflect (fun a => (x (-p - ((2^(t+1) - 1 : ℕ) : ℤ)) a).toNat) (2^(t+1))).symm have yexact : ∀ i < t+1, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a => (y (v-(a : ℤ)) a && y (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) = 1 := by intro i hi exact cycle_power_rooted_reflect_exact (2^(t+1)) (2^i) (by positivity) (Nat.pow_le_pow_right (by norm_num) (by omega)) x (hexact i hi) have ycover := cycle_power_rooted_reflect_cover (2^(t+1)) hDpos x hcover have ycount : ∀ v : ℤ, (Finset.range (2^(t+1))).sum (fun a => (y (v-(a : ℤ)) a).toNat) = (t+1)+1 := by intro v have h := cycle_power_reflect_count_defect (2^(t+1)) hDpos x (fun _ => false) ((t+1)+1) (by intro w; simpa using hcount w) v simpa using h
The reflected model y satisfies the alternating regularity hypothesis on [p'0 - 3·2^t, p'0] at root p'0 = -p0 - (2^(t+1)-1), so the rightward continuation theorem applies to y.
For any root r' in [p'0 - 3·2^t, p'0], the reflected root r = -r' - (2^(t+1)-1) lies in [p0, p0 + 3·2^t]. The parities match because p'0 - r' ≡ r - p0 (mod 2). If the parity is odd, x(r) has no internal active offsets, so by reflection neither does y(r'). If the parity is even, x(r) pairs consecutive offsets (2j, 2j+1); under coordinate reversal a ↦ (2^(t+1)-1) - a, consecutive pairs are preserved in y(r'). Furthermore, offset 1 in y(r') corresponds to offset 2^(t+1)-2 in x(r), which pairs with the endpoint 2^(t+1)-1; since the endpoint is active, y(r', 1) = true. Thus all preconditions of the rightward continuation theorem (hCTr) are satisfied by y at p'0.
have hmain := hCTr y ytight yexact ycover ycount (-p0 - ((2^(t+1) - 1 : ℕ) : ℤ)) (by intro r' hr1 hr2 rw [hcast, hTz] at hr1 rw [hcast] at hr2 have hw := hreg (-r' - ((2^(t+1) - 1 : ℕ) : ℤ)) (by rw [hcast]; omega) (by rw [hcast, hTz]; omega) refine ⟨fun hpar => ?_, fun hpar => ?_⟩ · obtain ⟨_, hp⟩ := hw.1 (by rw [hcast] at hpar ⊢; omega) refine ⟨?_, fun i hi => ?_⟩ · rw [yd] have h1 := hp (T - 1) (by rw [← hT]; omega) have h2 := (hends (-r' - ((2^(t+1) - 1 : ℕ) : ℤ))).2 rw [hx _ _ (2^(t+1) - 1 - 1) (2*(T-1)) rfl (by rw [hD]; omega), h1, hx _ _ (2*(T-1)+1) (2^(t+1) - 1) rfl (by rw [hD]; omega), h2] · rw [yd, yd] rw [← hT] at hi have h1 := hp (T - 1 - i) (by rw [← hT]; omega) rw [hx _ _ (2^(t+1) - 1 - 2*i) (2*(T-1-i)+1) rfl (by rw [hD]; omega), ← h1] exact hx _ _ _ _ rfl (by rw [hD]; omega) · intro a ha1 ha2 rw [yd] exact hw.2 (by rw [hcast] at hpar ⊢; omega) _ (by omega) (by omega))
The class of x rooted at p0 - 2 has its offsets grouped in consecutive pairs: x(p0-2, 2i) = x(p0-2, 2i+1) for all i < 2^t.
Applying rightward continuation to y gives consecutive pair matching for y at root p'0 + 2. Under reflection, root p'0 + 2 corresponds to -(p'0+2) - (2^(t+1)-1) = p0 - 2, and the pairing of offsets 2(T-1-i) and 2(T-1-i)+1 in y(p'0+2) translates directly to x(p0-2, 2i) = x(p0-2, 2i+1).
have hq1 : -(-p0 - ((2^(t+1) - 1 : ℕ) : ℤ) + 1) - ((2^(t+1) - 1 : ℕ) : ℤ) = p0 - 1 := by ring have hq2 : -(-p0 - ((2^(t+1) - 1 : ℕ) : ℤ) + 2) - ((2^(t+1) - 1 : ℕ) : ℤ) = p0 - 2 := by ring obtain ⟨hA, _, hC⟩ := hmain have hpair : ∀ i < 2^t, x (p0-2) (2*i) = x (p0-2) (2*i+1) := by intro i hi rw [← hT] at hi have h := hC (T - 1 - i) (by rw [← hT]; omega) rw [yd, yd, hq2] at h rw [hx (p0-2) (p0-2) (2*i) (2^(t+1) - 1 - (2*(T-1-i)+1)) rfl (by rw [hD]; omega), ← h] exact hx _ _ _ _ rfl (by rw [hD]; omega)
The class rooted at p0 - 1 is of the second kind (no internal active offsets), and the class rooted at p0 - 2 is of the first kind (offset 1 is active and offsets pair consecutively).
For root p0 - 1, reflection corresponds to root p'0 + 1 in y, which has no internal active offsets by rightward continuation. For root p0 - 2, the consecutive offset pairing at i = 0 gives x(p0-2, 1) = x(p0-2, 0). Since the endpoint x(p0-2, 0) is true, offset 1 is active as well.
uses
Nat.mul_zero,Nat.zero_addrefine ⟨fun a ha1 ha2 => ?_, ?_, hpair⟩ · have h := hA (2^(t+1) - 1 - a) (by omega) (by omega) rw [yd, hq1] at h rw [← h] exact hx _ _ _ _ rfl (by omega) · have h := hpair 0 (by positivity) simp only [Nat.mul_zero, Nat.zero_add] at h rw [← h] exact (hends (p0-2)).1
pow_succ- For any monoid element a and natural n, a^(n+1) = a^n * a.
pow_zero- For any monoid element a, a^0 = 1.
Finset.range_one- The range of natural numbers less than 1 is the singleton set {0}.
Finset.sum_singleton- The sum of a function over a singleton set {a} equals f(a).
Nat.cast_zero- The natural number 0 casts to 0 in any ring or additive monoid with zero.
sub_zero- Subtracting zero leaves an element unchanged: a - 0 = a.
Nat.zero_add- Adding zero to any natural number leaves it unchanged: 0 + n = n.
cycle_power_dyadic_class_weight_reflect- Reversing the offsets of a Boolean class of length 2^t preserves its dyadic class weight.
Finset.sum_range_reflect- Summing f(n - 1 - j) over j in range n equals summing f(j) over the same range.
cycle_power_rooted_reflect_exact- Reflection of a rooted Boolean model preserves the exact dyadic coverage property at every level.
Nat.pow_le_pow_right- For base n > 0, if i ≤ j then n^i ≤ n^j.
cycle_power_rooted_reflect_cover- Reflection of a rooted Boolean model preserves the full difference coverage property.
cycle_power_reflect_count_defect- Reflection of a rooted Boolean model preserves the active class count per vertex.
Nat.mul_zero- Multiplying any natural number by zero yields zero: n * 0 = 0.
- Rather than reading the condition that offset 1 is active directly off the rightward continuation theorem, the proof establishes x(p0-2, 1) = true by pairing it with the endpoint x(p0-2, 0), which is always true in any exact dyadically covered model.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem cycle_power_dyadic_regular_continuation_left_of_right (t : ℕ) (hCTr : ∀ (x : ℤ → ℕ → Bool), (∀ p, cycle_power_dyadic_class_weight (t+1) (x p) = (Finset.range (2^(t+1))).sum (fun a => (x p a).toNat)) → (∀ i < t+1, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) = 1) → (∀ d : ℕ, 1 ≤ d → d < 2^(t+1) → ∀ v : ℤ, ∃ a : ℕ, a < 2^(t+1)-d ∧ x (v-(a : ℤ)) a = true ∧ x (v-(a : ℤ)) (a+d) = true) → (∀ v : ℤ, (Finset.range (2^(t+1))).sum (fun a => (x (v-(a : ℤ)) a).toNat) = (t+1)+1) → ∀ p0 : ℤ, (∀ r : ℤ, p0 - 3*2^t ≤ r → r ≤ p0 → ((p0 - r) % 2 = 0 → x r 1 = true ∧ ∀ i < 2^t, x r (2*i) = x r (2*i+1)) ∧ ((p0 - r) % 2 = 1 → ∀ a, 0 < a → a < 2^(t+1) - 1 → x r a = false)) → (∀ a, 0 < a → a < 2^(t+1) - 1 → x (p0+1) a = false) ∧ (x (p0+2) 1 = true ∧ ∀ i < 2^t, x (p0+2) (2*i) = x (p0+2) (2*i+1))) (x : ℤ → ℕ → Bool) (htight : ∀ p, cycle_power_dyadic_class_weight (t+1) (x p) = (Finset.range (2^(t+1))).sum (fun a => (x p a).toNat)) (hexact : ∀ i < t+1, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) = 1) (hcover : ∀ d : ℕ, 1 ≤ d → d < 2^(t+1) → ∀ v : ℤ, ∃ a : ℕ, a < 2^(t+1)-d ∧ x (v-(a : ℤ)) a = true ∧ x (v-(a : ℤ)) (a+d) = true) (hcount : ∀ v : ℤ, (Finset.range (2^(t+1))).sum (fun a => (x (v-(a : ℤ)) a).toNat) = (t+1)+1) (p0 : ℤ) (hreg : ∀ r : ℤ, p0 ≤ r → r ≤ p0 + 3*2^t → ((r - p0) % 2 = 0 → x r 1 = true ∧ ∀ i < 2^t, x r (2*i) = x r (2*i+1)) ∧ ((r - p0) % 2 = 1 → ∀ a, 0 < a → a < 2^(t+1) - 1 → x r a = false)) : (∀ a, 0 < a → a < 2^(t+1) - 1 → x (p0-1) a = false) ∧ (x (p0-2) 1 = true ∧ ∀ i < 2^t, x (p0-2) (2*i) = x (p0-2) (2*i+1)) := by obtain ⟨T, hT⟩ : ∃ T : ℕ, T = 2^t := ⟨_, rfl⟩ have hTpos : 0 < T := by rw [hT]; positivity have hD : (2:ℕ)^(t+1) = 2*T := by rw [hT, pow_succ]; ring have hDpos : 0 < (2:ℕ)^(t+1) := by positivity have hTz : ((2:ℤ))^t = (T:ℤ) := by rw [hT]; push_cast; rfl have hcast : (((2^(t+1) - 1 : ℕ)) : ℤ) = 2*(T:ℤ) - 1 := by rw [hD]; omega have hx : ∀ (q q' : ℤ) (a a' : ℕ), q = q' → a = a' → x q a = x q' a' := by intro q q' a a' h1 h2; rw [h1, h2] have hends : ∀ v : ℤ, x v 0 = true ∧ x v (2^(t+1) - 1) = true := by intro v have h := hexact 0 (by omega) v simp only [pow_zero, Finset.range_one, Finset.sum_singleton, Nat.cast_zero, sub_zero, Nat.zero_add] at h revert h generalize x v 0 = u generalize x v (2^(t+1) - 1) = w cases u <;> cases w <;> simp let y : ℤ → ℕ → Bool := cycle_power_rooted_reflect (2^(t+1)) x have yd : ∀ (q : ℤ) (a : ℕ), y q a = x (-q - ((2^(t+1) - 1 : ℕ) : ℤ)) (2^(t+1) - 1 - a) := fun _ _ => rfl have ytight : ∀ p, cycle_power_dyadic_class_weight (t+1) (y p) = (Finset.range (2^(t+1))).sum (fun a => (y p a).toNat) := by intro p change cycle_power_dyadic_class_weight (t+1) (fun a => x (-p - ((2^(t+1) - 1 : ℕ) : ℤ)) (2^(t+1) - 1 - a)) = _ rw [cycle_power_dyadic_class_weight_reflect, htight] exact (Finset.sum_range_reflect (fun a => (x (-p - ((2^(t+1) - 1 : ℕ) : ℤ)) a).toNat) (2^(t+1))).symm have yexact : ∀ i < t+1, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a => (y (v-(a : ℤ)) a && y (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) = 1 := by intro i hi exact cycle_power_rooted_reflect_exact (2^(t+1)) (2^i) (by positivity) (Nat.pow_le_pow_right (by norm_num) (by omega)) x (hexact i hi) have ycover := cycle_power_rooted_reflect_cover (2^(t+1)) hDpos x hcover have ycount : ∀ v : ℤ, (Finset.range (2^(t+1))).sum (fun a => (y (v-(a : ℤ)) a).toNat) = (t+1)+1 := by intro v have h := cycle_power_reflect_count_defect (2^(t+1)) hDpos x (fun _ => false) ((t+1)+1) (by intro w; simpa using hcount w) v simpa using h have hmain := hCTr y ytight yexact ycover ycount (-p0 - ((2^(t+1) - 1 : ℕ) : ℤ)) (by intro r' hr1 hr2 rw [hcast, hTz] at hr1 rw [hcast] at hr2 have hw := hreg (-r' - ((2^(t+1) - 1 : ℕ) : ℤ)) (by rw [hcast]; omega) (by rw [hcast, hTz]; omega) refine ⟨fun hpar => ?_, fun hpar => ?_⟩ · obtain ⟨_, hp⟩ := hw.1 (by rw [hcast] at hpar ⊢; omega) refine ⟨?_, fun i hi => ?_⟩ · rw [yd] have h1 := hp (T - 1) (by rw [← hT]; omega) have h2 := (hends (-r' - ((2^(t+1) - 1 : ℕ) : ℤ))).2 rw [hx _ _ (2^(t+1) - 1 - 1) (2*(T-1)) rfl (by rw [hD]; omega), h1, hx _ _ (2*(T-1)+1) (2^(t+1) - 1) rfl (by rw [hD]; omega), h2] · rw [yd, yd] rw [← hT] at hi have h1 := hp (T - 1 - i) (by rw [← hT]; omega) rw [hx _ _ (2^(t+1) - 1 - 2*i) (2*(T-1-i)+1) rfl (by rw [hD]; omega), ← h1] exact hx _ _ _ _ rfl (by rw [hD]; omega) · intro a ha1 ha2 rw [yd] exact hw.2 (by rw [hcast] at hpar ⊢; omega) _ (by omega) (by omega)) have hq1 : -(-p0 - ((2^(t+1) - 1 : ℕ) : ℤ) + 1) - ((2^(t+1) - 1 : ℕ) : ℤ) = p0 - 1 := by ring have hq2 : -(-p0 - ((2^(t+1) - 1 : ℕ) : ℤ) + 2) - ((2^(t+1) - 1 : ℕ) : ℤ) = p0 - 2 := by ring obtain ⟨hA, _, hC⟩ := hmain have hpair : ∀ i < 2^t, x (p0-2) (2*i) = x (p0-2) (2*i+1) := by intro i hi rw [← hT] at hi have h := hC (T - 1 - i) (by rw [← hT]; omega) rw [yd, yd, hq2] at h rw [hx (p0-2) (p0-2) (2*i) (2^(t+1) - 1 - (2*(T-1-i)+1)) rfl (by rw [hD]; omega), ← h] exact hx _ _ _ _ rfl (by rw [hD]; omega) refine ⟨fun a ha1 ha2 => ?_, ?_, hpair⟩ · have h := hA (2^(t+1) - 1 - a) (by omega) (by omega) rw [yd, hq1] at h rw [← h] exact hx _ _ _ _ rfl (by omega) · have h := hpair 0 (by positivity) simp only [Nat.mul_zero, Nat.zero_add] at h rw [← h] exact (hends (p0-2)).1