cycle_power_dyadic_regular_continuation_right_low_corners
Conjecture. Let t ≥ 2 and D = 2^(t+1). In a tight, exactly dyadically covered, fully covered integer Boolean class model at exponent t+1 with exactly t+2 active classes at every vertex, suppose that for every root r with p0 - 3·2^t ≤ r ≤ p0: if p0 - r is even, the class rooted at r contains offset 1 and its offsets come in consecutive pairs (2i and 2i+1 both in or both out, i < 2^t); if p0 - r is odd, that class consists of its two endpoints only. Then the class rooted at p0+1 contains none of the offsets 2^j - 1 for 2 ≤ j ≤ t.
Statement
theorem cycle_power_dyadic_regular_continuation_right_low_corners (t : ℕ) (ht : 2 ≤ t) (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 - 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)) : ∀ j, 2 ≤ j → j ≤ t → x (p0+1) (2^j - 1) = false
- 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. The remaining offsets of the first conclusion of cycle_power_dyadic_regular_continuation_right (hypothesis hcorner of cycle_power_dyadic_regular_continuation_right_of_low_corners).
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- 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.
- 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_regular_continuation_right_rank_partnerPart of the rightward continuation, for every exponent t+1 ≥ 2, from exactness alone. In an exactly dyadically covered integer Boolean…
- Used by 1
- cycle_power_dyadic_regular_continuation_right_next_paired_of_middleConditional form of the pairing step. Let t ≥ 2 and D = 2^(t+1). In a tight, exactly dyadically covered, fully covered integer Boolean…
The proof, explained
The proof argues by contradiction: suppose the class at p0 + 1 contains offset 2^j - 1 for some 2 ≤ j ≤ t. We compare the total counts of active classes (t + 2) at vertex v = p0 + 2^j + 1 and at vertex v - 1. For large offsets, roots fall in the regular continuation window and their contributions to both counts match; for low offsets, a dyadic block inequality proved by induction bounds the difference between the two counts by at most 1, contradicting the difference of 2 forced by the active endpoints and the assumed corner bit.
Dyadic bounds 2^i ≤ 2^(t+1) and 4 ≤ 2^i hold, and exact covering at scale i at vertex v gives sum 1.
We establish the arithmetic bounds 2^i ≤ 2^(t+1) and 2^i ≥ 2^2 = 4 using monotonicity of powers (Nat.pow_le_pow_right), and specialize the exact covering hypothesis hexact at index i and vertex v to obtain hex.
uses
Nat.pow_le_pow_righthave hD : 2^i ≤ 2^(t+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have h4 : 4 ≤ 2^i := by calc 4 = 2^2 := by norm_num _ ≤ 2^i := Nat.pow_le_pow_right (by norm_num) hi have hex := hexact i (by omega) v
The sum of x(v - a, a) over a ∈ [2^(i-1), 2^i) is at most 1, bounded by the sum of conjunctions with partner offsets.
By tightness (cycle_power_dyadic_tight_class_parent), any active offset a in [2^(i-1), 2^i) has its partner offset a + 2^(t+1) - 2^i active as well, so x(v - a, a) ≤ x(v - a, a) && x(v - a, a + 2^(t+1) - 2^i). Summing this over [2^(i-1), 2^i) using Finset.sum_le_sum and embedding into the full range [0, 2^i) via Finset.sum_le_sum_of_subset bounds the sum by hex = 1.
uses
cycle_power_dyadic_tight_class_parent,Finset.mem_Ico,Finset.mem_range.mpr,Finset.sum_le_sum_of_subset,Finset.sum_le_sumhave hut : ∀ a : ℕ, a ∈ Finset.Ico (2^(i-1)) (2^i) → (x (v-(a:ℤ)) a).toNat ≤ (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat := by intro a ha rw [Finset.mem_Ico] at ha have hp := (cycle_power_dyadic_tight_class_parent (t+1) i (by omega) (by omega) (x (v-(a:ℤ))) (htight _) a ha.2).2 ha.1 cases h : x (v-(a:ℤ)) a · simp · simp [hp h] have hsub : Finset.Ico (2^(i-1)) (2^i) ⊆ Finset.range (2^i) := by intro a ha; rw [Finset.mem_Ico] at ha; exact Finset.mem_range.mpr ha.2 have hS : (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) ≤ 1 := by exact (Finset.sum_le_sum_of_subset (f := fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) hsub).trans hex.le have hU : (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a:ℤ)) a).toNat) ≤ (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) := Finset.sum_le_sum hut
Full covering at distance 2^(t+1) - 2^i + 1 yields a pair of active offsets for root v - (a' + 1) with a' + 1 < 2^i.
Applying full covering (hcover) at vertex v - 1 for distance d = 2^(t+1) - 2^i + 1 produces an offset a' < 2^i - 1 such that both offsets a' and a' + d are active in the class rooted at v - 1 - a' = v - (a' + 1).
obtain ⟨a', ha', h1, h2⟩ := hcover (2^(t+1) - 2^i + 1) (by omega) (by omega) (v - 1) have ha'lt : a' + 1 < 2^i := by omega have hv : v - 1 - (a':ℤ) = v - ((a'+1 : ℕ):ℤ) := by push_cast; ring rw [hv] at h1 h2
If a' + 1 < 2^(i-1), the sum over [2^(i-1), 2^i) of x(v - a, a) must be 0, establishing the block inequality. automation
When a' + 1 < 2^(i-1), the partner offset a' + d equals (a' + 1) + 2^(t+1) - 2^i. Tightness (cycle_power_dyadic_tight_class_parent) implies that offset a' + 1 is also active, giving a conjunction of 1 at a' + 1 ∉ [2^(i-1), 2^i). Since inserting a' + 1 into [2^(i-1), 2^i) remains inside [0, 2^i) (Finset.sum_insert, Finset.sum_le_sum_of_subset) where the total sum is 1, the sum over [2^(i-1), 2^i) must be 0, making the inequality trivial.
uses
Nat.lt_or_ge,cycle_power_dyadic_tight_class_parent,Finset.mem_Ico,Finset.mem_insert,Finset.mem_range.mpr,Finset.sum_le_sum_of_subset,Finset.sum_insertrcases Nat.lt_or_ge (a'+1) (2^(i-1)) with hlt | hge · have h2' : x (v-((a'+1:ℕ):ℤ)) (a'+1 + 2^(t+1) - 2^i) = true := by rw [show a'+1 + 2^(t+1) - 2^i = a' + (2^(t+1) - 2^i + 1) by omega]; exact h2 have hp := (cycle_power_dyadic_tight_class_parent (t+1) i (by omega) (by omega) (x (v-((a'+1:ℕ):ℤ))) (htight _) (a'+1) ha'lt).1 hlt h2' have hown : (x (v-((a'+1:ℕ):ℤ)) (a'+1) && x (v-((a'+1:ℕ):ℤ)) (a'+1+2^(t+1)-2^i)).toNat = 1 := by rw [hp, h2']; rfl have hnot : a'+1 ∉ Finset.Ico (2^(i-1)) (2^i) := by rw [Finset.mem_Ico]; omega have hins : insert (a'+1) (Finset.Ico (2^(i-1)) (2^i)) ⊆ Finset.range (2^i) := by intro b hb; rw [Finset.mem_insert] at hb; rcases hb with rfl | hb · exact Finset.mem_range.mpr ha'lt · exact hsub hb have hle := Finset.sum_le_sum_of_subset (f := fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) hins rw [Finset.sum_insert hnot, hown, hex] at hle omega
If a' + 1 ≥ 2^(i-1), the right-hand sum is at least 1, establishing the block inequality. automation
When a' + 1 ≥ 2^(i-1), a' + 1 belongs to [2^(i-1), 2^i). At this index, the shifted offset (a' + 1) - 1 = a' is active, so by Finset.single_le_sum the right-hand sum is at least 1. Since the left-hand sum is at most 1, the inequality holds.
uses
Nat.add_sub_cancel,Finset.mem_Ico.mpr,Finset.single_le_sum,Nat.zero_le· have hw : (x (v-((a'+1:ℕ):ℤ)) (a'+1-1)).toNat = 1 := by rw [Nat.add_sub_cancel, h1]; rfl have hmem : a'+1 ∈ Finset.Ico (2^(i-1)) (2^i) := Finset.mem_Ico.mpr ⟨hge, ha'lt⟩ have h1le := Finset.single_le_sum (f := fun a : ℕ => (x (v-(a:ℤ)) (a-1)).toNat) (fun _ _ => Nat.zero_le _) hmem omega
Assume for contradiction that offset 2^j - 1 is active at p0 + 1, and set up constants T = 2^t and J = 2^j.
We assume x(p0 + 1, 2^j - 1) = true and define T = 2^t and J = 2^j. From 2 ≤ j ≤ t, we establish that J ≤ T, J = 2 · 2^(j-1), and 4 ≤ J via Nat.pow_le_pow_right, pow_succ, and pow_succ'.
uses
pow_succ,Nat.pow_le_pow_right,pow_succ'intro j hj2 hjt by_contra hne have hJ1 : x (p0+1) (2^j - 1) = true := by revert hne; cases x (p0+1) (2^j-1) <;> simp obtain ⟨T, hT⟩ : ∃ T : ℕ, T = 2^t := ⟨_, rfl⟩ obtain ⟨J, hJ⟩ : ∃ J : ℕ, J = 2^j := ⟨_, rfl⟩ have hD : (2:ℕ)^(t+1) = 2*T := by rw [hT, pow_succ]; ring have hJT : J ≤ T := by rw [hJ, hT]; exact Nat.pow_le_pow_right (by norm_num) hjt have hJ2 : J = 2 * 2^(j-1) := by rw [hJ, ← pow_succ']; congr 1; omega have hJ4 : 4 ≤ J := by rw [hJ] calc 4 = 2^2 := by norm_num _ ≤ 2^j := Nat.pow_le_pow_right (by norm_num) hj2 have hTz : ((2:ℤ))^t = (T:ℤ) := by rw [hT]; push_cast; rfl
The endpoints 0 and 2^(t+1) - 1 are active in every class.
Specializing exact covering hexact at scale i = 0 for any vertex w gives a singleton sum over range 1 = {0} of x(w, 0) && x(w, 2^(t+1) - 1) equal to 1, forcing both endpoints to be true (using pow_zero, Finset.range_one, Finset.sum_singleton, Nat.cast_zero, sub_zero, Nat.zero_add).
uses
pow_zero,Finset.range_one,Finset.sum_singleton,Nat.cast_zero,sub_zero,Nat.zero_addhave 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 -- the class at p0+1 does not contain offset J
The class at p0 + 1 does not contain offset J.
By cycle_power_dyadic_regular_continuation_right_rank_partner, offset 2^(t+1) - 2^j is false at p0 + 1. If j < t, tightness at scale j + 1 (cycle_power_dyadic_tight_class_parent) would force this partner to be true if J were true, a contradiction. If j = t, 2^(t+1) - 2^t = 2^t = J, directly yielding false.
uses
cycle_power_dyadic_regular_continuation_right_rank_partner,Nat.lt_or_ge,pow_succ,cycle_power_dyadic_tight_class_parent,Nat.add_sub_cancelhave hJf : x (p0+1) J = false := by have hrp := cycle_power_dyadic_regular_continuation_right_rank_partner t (by omega) x hexact p0 hreg j (by omega) hjt rcases Nat.lt_or_ge j t with hlt | hge · cases hc : x (p0+1) J · rfl · have hJlt : J < 2^(j+1) := by rw [pow_succ]; omega have hp := (cycle_power_dyadic_tight_class_parent (t+1) (j+1) (by omega) (by omega) (x (p0+1)) (htight _) J hJlt).2 (by rw [Nat.add_sub_cancel, hJ]) hc rw [hx (p0+1) (p0+1) (J + 2^(t+1) - 2^(j+1)) (2^(t+1) - 2^j) rfl (by rw [pow_succ, ← hJ]; omega), hrp] at hp exact absurd hp (by decide) · have hjt' : j = t := by omega have hJT' : J = T := by rw [hJ, hT, hjt'] have e : (2:ℕ)^(t+1) - 2^j = J := by rw [← hJ, hD]; omega rw [e] at hrp; exact hrp
For vertex v = p0 + J + 1 and offsets a ∈ [J+1, 2^(t+1)), the terms x(v - a, a) and x(v - a, a - 1) agree.
For each offset a in this interval, the root r = v - a lies in the regularity window [p0 - 3·2^t, p0]. By parity (Nat.mod_two_eq_zero_or_one), if a is even, p0 - r is odd, so the class has only endpoints and both intermediate offsets evaluate to false; if a is odd, p0 - r is even, so offsets come in consecutive pairs and x(r, a - 1) = x(r, a). We sum these equalities over the stretch using Finset.sum_congr and congrArg.
uses
Finset.mem_Ico,Nat.mod_two_eq_zero_or_one,congrArg,Finset.sum_congrobtain ⟨v, hv⟩ : ∃ v : ℤ, v = p0 + J + 1 := ⟨_, rfl⟩ -- the stretch terms of the two counts agree have hM : ∀ a : ℕ, a ∈ Finset.Ico (J+1) (2^(t+1)) → (x (v-(a:ℤ)) a).toNat = (x (v-(a:ℤ)) (a-1)).toNat := by intro a ha rw [Finset.mem_Ico] at ha have hr := hreg (v - (a:ℤ)) (by rw [hTz, hv]; omega) (by rw [hv]; omega) rcases Nat.mod_two_eq_zero_or_one a with hpar | hpar · rw [hr.2 (by rw [hv]; omega) a (by omega) (by omega), hr.2 (by rw [hv]; omega) (a-1) (by omega) (by omega)] · have hp := (hr.1 (by rw [hv]; omega)).2 ((a-1)/2) (by omega) rw [hx _ _ (a-1) (2*((a-1)/2)) rfl (by omega), hp] exact congrArg Bool.toNat (hx _ _ _ _ rfl (by omega)) have hMs := Finset.sum_congr rfl hM -- count at v
The active class count at vertex v splits into 1 at offset 0, the sum over [1, J), 0 at offset J, and the matching stretch sum.
Using hcount v = (t+1)+1, we decompose the sum over range (2^(t+1)) into a = 0 (which is 1), the interval [1, J), a = J (which is 0), and the remaining interval [J+1, 2^(t+1)) using Finset.range_eq_Ico, Finset.sum_eq_sum_Ico_succ_bot, and Finset.sum_Ico_consecutive.
uses
Finset.range_eq_Ico,Finset.sum_eq_sum_Ico_succ_bot,Finset.sum_Ico_consecutivehave hc1 := hcount v rw [Finset.range_eq_Ico, Finset.sum_eq_sum_Ico_succ_bot (by omega), ← Finset.sum_Ico_consecutive _ (show 0+1 ≤ J by omega) (show J ≤ 2^(t+1) by omega), Finset.sum_eq_sum_Ico_succ_bot (show J < 2^(t+1) by omega), hMs] at hc1 have u0 : (x (v - ((0:ℕ):ℤ)) 0).toNat = 1 := by rw [hx _ v 0 0 (by simp) rfl, (hends v).1]; rfl have uJ : (x (v - ((J:ℕ):ℤ)) J).toNat = 0 := by rw [hx _ (p0+1) J J (by rw [hv]; ring) rfl, hJf]; rfl rw [u0, uJ, show (0:ℕ)+1 = 1 from rfl] at hc1 -- count at v - 1, reindexed
The reindexed active class count at vertex v - 1 splits into 1 at a = 1, the sum over [2, J), 1 at a = J, the matching stretch sum, and 1 at a = 2^(t+1).
Reindexing the count at v - 1 via Finset.sum_Ico_eq_sum_range shifts offsets by 1. We isolate the terms at a = 1 (endpoint, value 1), a = J (the assumed bit x(p0+1, 2^j - 1) = 1), and a = 2^(t+1) (endpoint, value 1) using Finset.sum_Ico_succ_top, Finset.sum_eq_sum_Ico_succ_bot, and Finset.sum_Ico_consecutive.
uses
Finset.sum_Ico_eq_sum_range,Nat.add_sub_cancel,Finset.sum_congr,congrArg,Finset.sum_Ico_succ_top,Finset.sum_eq_sum_Ico_succ_bot,Finset.sum_Ico_consecutivehave hc0 := hcount (v - 1) have hre : (Finset.range (2^(t+1))).sum (fun a => (x (v - 1 - (a:ℤ)) a).toNat) = (Finset.Ico 1 (2^(t+1)+1)).sum (fun a : ℕ => (x (v - (a:ℤ)) (a-1)).toNat) := by rw [Finset.sum_Ico_eq_sum_range, Nat.add_sub_cancel] refine Finset.sum_congr rfl fun k _ => ?_ exact congrArg Bool.toNat (hx _ _ _ _ (by push_cast; ring) (by omega)) rw [hre, Finset.sum_Ico_succ_top (by omega), Finset.sum_eq_sum_Ico_succ_bot (by omega), ← Finset.sum_Ico_consecutive _ (show 1+1 ≤ J by omega) (show J ≤ 2^(t+1) by omega), Finset.sum_eq_sum_Ico_succ_bot (show J < 2^(t+1) by omega)] at hc0 have w1 : (x (v - ((1:ℕ):ℤ)) (1-1)).toNat = 1 := by rw [hx _ (v-1) (1-1) 0 (by simp) rfl, (hends _).1]; rfl have wJ : (x (v - ((J:ℕ):ℤ)) (J-1)).toNat = 1 := by rw [hx _ (p0+1) (J-1) (2^j-1) (by rw [hv]; ring) (by rw [hJ]), hJ1]; rfl have wD : (x (v - ((2^(t+1):ℕ):ℤ)) (2^(t+1)-1)).toNat = 1 := by rw [(hends _).2]; rfl rw [w1, wJ, wD, show (1:ℕ)+1 = 2 from rfl] at hc0 -- block bound
For every 1 ≤ b ≤ j, the sum of x(v - a, a) over [1, 2^b) is at most 1 plus the sum of x(v - a, a - 1) over [2, 2^b).
By induction on b: for b = 1, [1, 2) is {1} and [2, 2) is empty, so the single term is at most 1 (using zero_add, pow_one, Finset.Ico_self, Finset.sum_empty, add_zero). For b + 1, we split the interval [1, 2^(b+1)) into [1, 2^b) and [2^b, 2^(b+1)) via Finset.sum_Ico_consecutive. The first interval is bounded by the induction hypothesis, and the dyadic block [2^b, 2^(b+1)) is bounded by the auxiliary block lemma cycle_power_dyadic_regular_continuation_right_low_corners_block. Adding the two bounds completes the induction step.
uses
Nat.lt_or_ge,zero_add,pow_one,Finset.Ico_self,Finset.sum_empty,add_zero,Finset.sum_eq_sum_Ico_succ_bot,Nat.pow_le_pow_right,cycle_power_dyadic_regular_continuation_right_low_corners_block,Nat.add_sub_cancel,Finset.sum_Ico_consecutivehave key : ∀ b, 1 ≤ b → b ≤ j → (Finset.Ico 1 (2^b)).sum (fun a : ℕ => (x (v-(a:ℤ)) a).toNat) ≤ 1 + (Finset.Ico 2 (2^b)).sum (fun a : ℕ => (x (v-(a:ℤ)) (a-1)).toNat) := by intro b hb1 hbj induction b with | zero => omega | succ b ih => rcases Nat.lt_or_ge b 1 with h | h · have hb0 : b = 0 := by omega subst hb0 simp only [zero_add, pow_one, Finset.Ico_self, Finset.sum_empty, add_zero] rw [Finset.sum_eq_sum_Ico_succ_bot (by norm_num), Finset.Ico_self, Finset.sum_empty] cases x (v - ((1:ℕ):ℤ)) 1 <;> simp · have h2b : 2 ≤ 2^b := by calc 2 = 2^1 := by norm_num _ ≤ 2^b := Nat.pow_le_pow_right (by norm_num) h have hbb : 2^b ≤ 2^(b+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have hblk := cycle_power_dyadic_regular_continuation_right_low_corners_block t x htight hexact hcover v (b+1) (by omega) (by omega) rw [Nat.add_sub_cancel] at hblk rw [← Finset.sum_Ico_consecutive _ (show 1 ≤ 2^b by omega) hbb, ← Finset.sum_Ico_consecutive _ h2b hbb] have := ih h (by omega) omega
The block bound contradicts the class counts, completing the proof. automation
Evaluating the block bound at b = j shows that the sum over [1, J) exceeds the sum over [2, J) by at most 1. However, subtracting the two class count decompositions (which cancel the identical matching stretch terms) requires this difference to be 2. This arithmetic contradiction (2 ≤ 1) refutes the assumption that x(p0 + 1, 2^j - 1) = true.
uses
le_rflhave hk := key j (by omega) le_rfl rw [← hJ] at hk omega
Nat.pow_le_pow_right- For any base n > 0 and exponents i ≤ j, n^i ≤ n^j.
cycle_power_dyadic_tight_class_parent- In a tight Boolean class model at scale j < m, an active element in the upper dyadic half implies its partner in the top range is active, and an active element in the lower dyadic half has its partner in the top range active only if the lower element is active.
Finset.mem_Ico- An element x lies in the half-open interval [a, b) if and only if a ≤ x and x < b.
Finset.mem_range.mpr- An element lies in Finset.range n if it is strictly less than n.
Finset.sum_le_sum_of_subset- If s is a subset of t, the sum of a non-negative function over s is bounded by the sum over t.
Finset.sum_le_sum- If f(x) ≤ g(x) for all x in s, then the sum of f over s is at most the sum of g over s.
Nat.lt_or_ge- Either n < m or n ≥ m for any natural numbers n, m.
Finset.mem_insert- An element x belongs to insert a s if and only if x = a or x belongs to s.
Finset.sum_insert- If a ∉ s, the sum over insert a s equals f(a) plus the sum over s.
Nat.add_sub_cancel- (n + m) - m = n for any natural numbers n and m.
Finset.mem_Ico.mpr- If a ≤ x and x < b, then x lies in the interval [a, b).
Finset.single_le_sum- A single term f(a) for a ∈ s is bounded above by the sum of non-negative f over s.
Nat.zero_le- 0 ≤ n for all natural numbers n.
pow_succ- a^(n+1) = a^n * a.
pow_succ'- a^(n+1) = a * a^n.
pow_zero- a^0 = 1 for any element a.
Finset.range_one- Finset.range 1 is the singleton set {0}.
Finset.sum_singleton- The sum of f over the singleton {a} is f(a).
Nat.cast_zero- The coercion of 0 from ℕ is 0.
sub_zero- a - 0 = a for any group element a.
Nat.zero_add- 0 + n = n for any natural number n.
cycle_power_dyadic_regular_continuation_right_rank_partner- Under regular continuation hypotheses, the class at p0 + 1 does not contain any of the dyadic partner offsets 2^(t+1) - 2^i for 1 ≤ i ≤ t.
Nat.mod_two_eq_zero_or_one- Every natural number is either even (n % 2 = 0) or odd (n % 2 = 1).
congrArg- Equal arguments to a function yield equal values.
Finset.sum_congr- Two sums are equal if their index sets are equal and their terms agree on all elements.
Finset.range_eq_Ico- Finset.range a is identical to the interval Finset.Ico 0 a.
Finset.sum_eq_sum_Ico_succ_bot- Splitting off the first element a from the interval [a, b) leaves the interval [a+1, b).
Finset.sum_Ico_consecutive- The sum over adjacent intervals [m, n) and [n, k) equals the sum over [m, k).
Finset.sum_Ico_eq_sum_range- Reindexing a sum over [m, n) as a sum over range (n - m) shifted by m.
Finset.sum_Ico_succ_top- Splitting off the top element b from the interval [a, b+1) leaves the sum over [a, b) plus f(b).
zero_add- 0 + a = a.
pow_one- a^1 = a for any element a.
Finset.Ico_self- The half-open interval [a, a) is empty.
Finset.sum_empty- The sum over the empty set is 0.
add_zero- a + 0 = a.
cycle_power_dyadic_regular_continuation_right_low_corners_block- The dyadic block inequality: the sum of x(v - a, a) over a ∈ [2^(i-1), 2^i) is bounded by the sum of x(v - a, a - 1) over the same interval.
le_rfl- Inequality ≤ is reflexive.
- The proof establishes an auxiliary dyadic block inequality (cycle_power_dyadic_regular_continuation_right_low_corners_block) first, which is then applied inductively across scales.
- The count of active classes at each vertex is (t + 1) + 1 = t + 2, re-indexed between vertex v and vertex v - 1 to isolate boundary offsets and matching stretch offsets.
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_right_low_corners_block (t : ℕ) (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) (v : ℤ) (i : ℕ) (hi : 2 ≤ i) (hit : i ≤ t) : (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a:ℤ)) a).toNat) ≤ (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a:ℤ)) (a-1)).toNat) := by have hD : 2^i ≤ 2^(t+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have h4 : 4 ≤ 2^i := by calc 4 = 2^2 := by norm_num _ ≤ 2^i := Nat.pow_le_pow_right (by norm_num) hi have hex := hexact i (by omega) v have hut : ∀ a : ℕ, a ∈ Finset.Ico (2^(i-1)) (2^i) → (x (v-(a:ℤ)) a).toNat ≤ (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat := by intro a ha rw [Finset.mem_Ico] at ha have hp := (cycle_power_dyadic_tight_class_parent (t+1) i (by omega) (by omega) (x (v-(a:ℤ))) (htight _) a ha.2).2 ha.1 cases h : x (v-(a:ℤ)) a · simp · simp [hp h] have hsub : Finset.Ico (2^(i-1)) (2^i) ⊆ Finset.range (2^i) := by intro a ha; rw [Finset.mem_Ico] at ha; exact Finset.mem_range.mpr ha.2 have hS : (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) ≤ 1 := by exact (Finset.sum_le_sum_of_subset (f := fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) hsub).trans hex.le have hU : (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a:ℤ)) a).toNat) ≤ (Finset.Ico (2^(i-1)) (2^i)).sum (fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) := Finset.sum_le_sum hut obtain ⟨a', ha', h1, h2⟩ := hcover (2^(t+1) - 2^i + 1) (by omega) (by omega) (v - 1) have ha'lt : a' + 1 < 2^i := by omega have hv : v - 1 - (a':ℤ) = v - ((a'+1 : ℕ):ℤ) := by push_cast; ring rw [hv] at h1 h2 rcases Nat.lt_or_ge (a'+1) (2^(i-1)) with hlt | hge · have h2' : x (v-((a'+1:ℕ):ℤ)) (a'+1 + 2^(t+1) - 2^i) = true := by rw [show a'+1 + 2^(t+1) - 2^i = a' + (2^(t+1) - 2^i + 1) by omega]; exact h2 have hp := (cycle_power_dyadic_tight_class_parent (t+1) i (by omega) (by omega) (x (v-((a'+1:ℕ):ℤ))) (htight _) (a'+1) ha'lt).1 hlt h2' have hown : (x (v-((a'+1:ℕ):ℤ)) (a'+1) && x (v-((a'+1:ℕ):ℤ)) (a'+1+2^(t+1)-2^i)).toNat = 1 := by rw [hp, h2']; rfl have hnot : a'+1 ∉ Finset.Ico (2^(i-1)) (2^i) := by rw [Finset.mem_Ico]; omega have hins : insert (a'+1) (Finset.Ico (2^(i-1)) (2^i)) ⊆ Finset.range (2^i) := by intro b hb; rw [Finset.mem_insert] at hb; rcases hb with rfl | hb · exact Finset.mem_range.mpr ha'lt · exact hsub hb have hle := Finset.sum_le_sum_of_subset (f := fun a : ℕ => (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(t+1)-2^i)).toNat) hins rw [Finset.sum_insert hnot, hown, hex] at hle omega · have hw : (x (v-((a'+1:ℕ):ℤ)) (a'+1-1)).toNat = 1 := by rw [Nat.add_sub_cancel, h1]; rfl have hmem : a'+1 ∈ Finset.Ico (2^(i-1)) (2^i) := Finset.mem_Ico.mpr ⟨hge, ha'lt⟩ have h1le := Finset.single_le_sum (f := fun a : ℕ => (x (v-(a:ℤ)) (a-1)).toNat) (fun _ _ => Nat.zero_le _) hmem omegatheorem cycle_power_dyadic_regular_continuation_right_low_corners (t : ℕ) (ht : 2 ≤ t) (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 - 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)) : ∀ j, 2 ≤ j → j ≤ t → x (p0+1) (2^j - 1) = false := by intro j hj2 hjt by_contra hne have hJ1 : x (p0+1) (2^j - 1) = true := by revert hne; cases x (p0+1) (2^j-1) <;> simp obtain ⟨T, hT⟩ : ∃ T : ℕ, T = 2^t := ⟨_, rfl⟩ obtain ⟨J, hJ⟩ : ∃ J : ℕ, J = 2^j := ⟨_, rfl⟩ have hD : (2:ℕ)^(t+1) = 2*T := by rw [hT, pow_succ]; ring have hJT : J ≤ T := by rw [hJ, hT]; exact Nat.pow_le_pow_right (by norm_num) hjt have hJ2 : J = 2 * 2^(j-1) := by rw [hJ, ← pow_succ']; congr 1; omega have hJ4 : 4 ≤ J := by rw [hJ] calc 4 = 2^2 := by norm_num _ ≤ 2^j := Nat.pow_le_pow_right (by norm_num) hj2 have hTz : ((2:ℤ))^t = (T:ℤ) := by rw [hT]; push_cast; rfl 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 -- the class at p0+1 does not contain offset J have hJf : x (p0+1) J = false := by have hrp := cycle_power_dyadic_regular_continuation_right_rank_partner t (by omega) x hexact p0 hreg j (by omega) hjt rcases Nat.lt_or_ge j t with hlt | hge · cases hc : x (p0+1) J · rfl · have hJlt : J < 2^(j+1) := by rw [pow_succ]; omega have hp := (cycle_power_dyadic_tight_class_parent (t+1) (j+1) (by omega) (by omega) (x (p0+1)) (htight _) J hJlt).2 (by rw [Nat.add_sub_cancel, hJ]) hc rw [hx (p0+1) (p0+1) (J + 2^(t+1) - 2^(j+1)) (2^(t+1) - 2^j) rfl (by rw [pow_succ, ← hJ]; omega), hrp] at hp exact absurd hp (by decide) · have hjt' : j = t := by omega have hJT' : J = T := by rw [hJ, hT, hjt'] have e : (2:ℕ)^(t+1) - 2^j = J := by rw [← hJ, hD]; omega rw [e] at hrp; exact hrp obtain ⟨v, hv⟩ : ∃ v : ℤ, v = p0 + J + 1 := ⟨_, rfl⟩ -- the stretch terms of the two counts agree have hM : ∀ a : ℕ, a ∈ Finset.Ico (J+1) (2^(t+1)) → (x (v-(a:ℤ)) a).toNat = (x (v-(a:ℤ)) (a-1)).toNat := by intro a ha rw [Finset.mem_Ico] at ha have hr := hreg (v - (a:ℤ)) (by rw [hTz, hv]; omega) (by rw [hv]; omega) rcases Nat.mod_two_eq_zero_or_one a with hpar | hpar · rw [hr.2 (by rw [hv]; omega) a (by omega) (by omega), hr.2 (by rw [hv]; omega) (a-1) (by omega) (by omega)] · have hp := (hr.1 (by rw [hv]; omega)).2 ((a-1)/2) (by omega) rw [hx _ _ (a-1) (2*((a-1)/2)) rfl (by omega), hp] exact congrArg Bool.toNat (hx _ _ _ _ rfl (by omega)) have hMs := Finset.sum_congr rfl hM -- count at v have hc1 := hcount v rw [Finset.range_eq_Ico, Finset.sum_eq_sum_Ico_succ_bot (by omega), ← Finset.sum_Ico_consecutive _ (show 0+1 ≤ J by omega) (show J ≤ 2^(t+1) by omega), Finset.sum_eq_sum_Ico_succ_bot (show J < 2^(t+1) by omega), hMs] at hc1 have u0 : (x (v - ((0:ℕ):ℤ)) 0).toNat = 1 := by rw [hx _ v 0 0 (by simp) rfl, (hends v).1]; rfl have uJ : (x (v - ((J:ℕ):ℤ)) J).toNat = 0 := by rw [hx _ (p0+1) J J (by rw [hv]; ring) rfl, hJf]; rfl rw [u0, uJ, show (0:ℕ)+1 = 1 from rfl] at hc1 -- count at v - 1, reindexed have hc0 := hcount (v - 1) have hre : (Finset.range (2^(t+1))).sum (fun a => (x (v - 1 - (a:ℤ)) a).toNat) = (Finset.Ico 1 (2^(t+1)+1)).sum (fun a : ℕ => (x (v - (a:ℤ)) (a-1)).toNat) := by rw [Finset.sum_Ico_eq_sum_range, Nat.add_sub_cancel] refine Finset.sum_congr rfl fun k _ => ?_ exact congrArg Bool.toNat (hx _ _ _ _ (by push_cast; ring) (by omega)) rw [hre, Finset.sum_Ico_succ_top (by omega), Finset.sum_eq_sum_Ico_succ_bot (by omega), ← Finset.sum_Ico_consecutive _ (show 1+1 ≤ J by omega) (show J ≤ 2^(t+1) by omega), Finset.sum_eq_sum_Ico_succ_bot (show J < 2^(t+1) by omega)] at hc0 have w1 : (x (v - ((1:ℕ):ℤ)) (1-1)).toNat = 1 := by rw [hx _ (v-1) (1-1) 0 (by simp) rfl, (hends _).1]; rfl have wJ : (x (v - ((J:ℕ):ℤ)) (J-1)).toNat = 1 := by rw [hx _ (p0+1) (J-1) (2^j-1) (by rw [hv]; ring) (by rw [hJ]), hJ1]; rfl have wD : (x (v - ((2^(t+1):ℕ):ℤ)) (2^(t+1)-1)).toNat = 1 := by rw [(hends _).2]; rfl rw [w1, wJ, wD, show (1:ℕ)+1 = 2 from rfl] at hc0 -- block bound have key : ∀ b, 1 ≤ b → b ≤ j → (Finset.Ico 1 (2^b)).sum (fun a : ℕ => (x (v-(a:ℤ)) a).toNat) ≤ 1 + (Finset.Ico 2 (2^b)).sum (fun a : ℕ => (x (v-(a:ℤ)) (a-1)).toNat) := by intro b hb1 hbj induction b with | zero => omega | succ b ih => rcases Nat.lt_or_ge b 1 with h | h · have hb0 : b = 0 := by omega subst hb0 simp only [zero_add, pow_one, Finset.Ico_self, Finset.sum_empty, add_zero] rw [Finset.sum_eq_sum_Ico_succ_bot (by norm_num), Finset.Ico_self, Finset.sum_empty] cases x (v - ((1:ℕ):ℤ)) 1 <;> simp · have h2b : 2 ≤ 2^b := by calc 2 = 2^1 := by norm_num _ ≤ 2^b := Nat.pow_le_pow_right (by norm_num) h have hbb : 2^b ≤ 2^(b+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have hblk := cycle_power_dyadic_regular_continuation_right_low_corners_block t x htight hexact hcover v (b+1) (by omega) (by omega) rw [Nat.add_sub_cancel] at hblk rw [← Finset.sum_Ico_consecutive _ (show 1 ≤ 2^b by omega) hbb, ← Finset.sum_Ico_consecutive _ h2b hbb] have := ih h (by omega) omega have hk := key j (by omega) le_rfl rw [← hJ] at hk omega