cycle_power_dyadic_tight_class_interior_false_of_root_children
Tree structure of tight dyadic classes. Let m ≥ 2 and D = 2^m. A class b ⊆ [0, D) of tight dyadic weight (cycle_power_dyadic_class_weight m b = |b|) that contains none of the offsets 2^j - 1 and D - 2^j for 1 ≤ j < m contains no offset strictly between 0 and D - 1. (These offsets are the children of the endpoints in the parent forest of tight classes: every other offset has a parent at strictly smaller distance from the nearer end.)
Statement
theorem cycle_power_dyadic_tight_class_interior_false_of_root_children (m : ℕ) (hm : 2 ≤ m) (b : ℕ → Bool) (htight : cycle_power_dyadic_class_weight m b = (Finset.range (2^m)).sum (fun a => (b a).toNat)) (hlow : ∀ j, 1 ≤ j → j < m → b (2^j - 1) = false) (hhigh : ∀ j, 1 ≤ j → j < m → b (2^m - 2^j) = false) : ∀ a, 0 < a → a < 2^m - 1 → b a = 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. Reduces the first conclusion of cycle_power_dyadic_regular_continuation_right to the offsets 2^j - 1 and D - 2^j of the class at p0+1.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- 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.
- Used by 2
- 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…
- cycle_power_dyadic_regular_continuation_right_of_low_cornersConditional form of the rightward continuation. In a tight, exactly dyadically covered integer Boolean class model at exponent t+1 ≥ 3…
The proof, explained
The theorem is proved by strong induction on the distance n = min(a, 2^m - 1 - a) from an offset a to the nearer endpoint of the interval [0, 2^m - 1]. Assuming for contradiction that some interior offset a has b(a) = true, we find the unique dyadic scale j ∈ [1, m) containing a (if in the lower half) or its reflection 2^m - 1 - a (if in the upper half). By the parent property of tight dyadic classes, truth propagates along the forest edges toward an ancestor offset that is strictly closer to the boundary, unless the offset is already a root child (2^j - 1 or 2^m - 2^j); since all root children are assumed false by hypotheses hlow and hhigh, this ancestor must lie in the interior, contradicting the induction hypothesis.
The dimension m is written as s + 1, with midpoint T = 2^s and domain size 2^(s+1) = 2T.
Since m ≥ 2, we can write m = s + 1 for some natural number s ≥ 1. We introduce T = 2^s, representing half the cycle length 2^(s+1), and note that 2^(s+1) = 2 * T by the power recurrence `pow_succ` and ring arithmetic.
uses
pow_succobtain ⟨s, rfl⟩ : ∃ s, m = s + 1 := ⟨m - 1, by omega⟩ obtain ⟨T, hT⟩ : ∃ T : ℕ, T = 2^s := ⟨_, rfl⟩ have hD : (2:ℕ)^(s+1) = 2*T := by rw [hT, pow_succ]; ring
Every positive integer c < T belongs to a dyadic interval [Q, 2Q) with Q = 2^(j-1) for some 1 ≤ j < s + 1.
We prove the dyadic decomposition lemma `hlog`. Setting j = ⌊log_2 c⌋ + 1 and Q = 2^(⌊log_2 c⌋) = 2^(j-1), we have Q ≤ c by `Nat.pow_log_le_self` and c < 2Q by `Nat.lt_pow_succ_log_self`. Since c < T = 2^s, assuming j ≥ s + 1 would force 2^s ≤ Q ≤ c by `Nat.pow_le_pow_right`, a contradiction; hence j < s + 1.
uses
pow_succ,Nat.pow_log_le_self,Nat.pow_le_pow_right,Nat.lt_pow_succ_log_selfhave hlog : ∀ c : ℕ, 0 < c → c < T → ∃ j Q, 1 ≤ j ∧ j < s + 1 ∧ Q = 2^(j-1) ∧ 2^j = 2*Q ∧ Q ≤ c ∧ c < 2*Q := by intro c hc0 hcT refine ⟨Nat.log 2 c + 1, 2^(Nat.log 2 c), by omega, ?_, by simp, by rw [pow_succ]; ring, Nat.pow_log_le_self 2 (by omega), ?_⟩ · by_contra hcon have : 2^s ≤ 2^(Nat.log 2 c) := Nat.pow_le_pow_right (by norm_num) (by omega) have := Nat.pow_log_le_self 2 (show c ≠ 0 by omega) omega · have := Nat.lt_pow_succ_log_self (by norm_num : 1 < 2) c rw [pow_succ] at this; omega
By strong induction on the boundary distance n, any interior element a with min(a, 2^(s+1) - 1 - a) ≤ n satisfies b(a) = false.
We formulate `key`, asserting that b(a) = false for every interior offset a whose distance to the nearer endpoint is bounded by n. We induct on n using strong induction (`Nat.strong_induction_on`). Assuming for contradiction that b(a) ≠ false, the boolean nature of b implies b(a) = true.
uses
Nat.strong_induction_onhave key : ∀ n : ℕ, ∀ a, 0 < a → a < 2^(s+1) - 1 → min a (2^(s+1) - 1 - a) ≤ n → b a = false := by intro n induction n using Nat.strong_induction_on with | _ n ih => intro a ha0 ha1 hmu by_contra hne have hb : b a = true := by revert hne; generalize b a = w; cases w <;> simp
When a is in the lower half (a < T), the assumption b(a) = true leads to a contradiction.
We split into cases using `lt_or_ge`. When a < T, `hlog` yields a dyadic level 1 ≤ j < s + 1 such that 2^(j-1) ≤ a < 2^j. By `cycle_power_dyadic_tight_class_parent`, b(a) = true implies that its parent a' = a + 2^(s+1) - 2^j also has b(a') = true. If a = 2^j - 1, this contradicts the hypothesis `hlow` that all lower root children are false. Otherwise, a' is an interior offset whose distance to the boundary is strictly less than that of a, so the strong induction hypothesis `ih` gives b(a') = false, a contradiction.
uses
lt_or_ge,cycle_power_dyadic_tight_class_parent,Nat.pow_le_pow_right,le_rflrcases lt_or_ge a T with haT | haT · obtain ⟨j, Q, hj1, hjm, hQ, hPQ, hQa, haQ⟩ := hlog a ha0 haT have hp := (cycle_power_dyadic_tight_class_parent (s+1) j hj1 hjm b htight a (by omega)).2 (by rw [← hQ]; omega) hb by_cases hroot : a = 2^j - 1 · rw [hroot, hlow j hj1 hjm] at hb; exact absurd hb (by decide) · have hjT : 2^j ≤ 2^(s+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have := ih (min (a + 2^(s+1) - 2^j) (2^(s+1) - 1 - (a + 2^(s+1) - 2^j))) (by omega) (a + 2^(s+1) - 2^j) (by omega) (by omega) le_rfl rw [hp] at this; exact absurd this (by decide)
When a is in the upper half (a ≥ T), the assumption b(a) = true also leads to a contradiction.
When a ≥ T, the distance to the upper boundary c = 2^(s+1) - 1 - a satisfies 0 < c < T. Applying `hlog` to c gives 1 ≤ j < s + 1 with 2^(j-1) ≤ c < 2^j. Setting a'' = 2^j - 1 - c, we have a'' < 2^(j-1) and a'' + 2^(s+1) - 2^j = a. By the first clause of `cycle_power_dyadic_tight_class_parent`, b(a) = true implies b(a'') = true. If a = 2^(s+1) - 2^j, this contradicts `hhigh` (the upper root children are false). Otherwise, a'' is an interior offset strictly closer to the boundary than a, so the induction hypothesis gives b(a'') = false, a contradiction.
uses
cycle_power_dyadic_tight_class_parent,Nat.pow_le_pow_right,le_rfl· have hh0 : 0 < 2^(s+1) - 1 - a := by omega obtain ⟨j, Q, hj1, hjm, hQ, hPQ, hQa, haQ⟩ := hlog (2^(s+1) - 1 - a) hh0 (by omega) have hjT : 2^j ≤ 2^(s+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have hp := (cycle_power_dyadic_tight_class_parent (s+1) j hj1 hjm b htight (2^j - 1 - (2^(s+1) - 1 - a)) (by omega)).1 (by rw [← hQ]; omega) have hidx : 2^j - 1 - (2^(s+1) - 1 - a) + 2^(s+1) - 2^j = a := by omega rw [hidx] at hp have hb' := hp hb by_cases hroot : a = 2^(s+1) - 2^j · rw [hroot, hhigh j hj1 hjm] at hb; exact absurd hb (by decide) · have := ih (min (2^j - 1 - (2^(s+1) - 1 - a)) (2^(s+1) - 1 - (2^j - 1 - (2^(s+1) - 1 - a)))) (by omega) (2^j - 1 - (2^(s+1) - 1 - a)) (by omega) (by omega) le_rfl rw [hb'] at this; exact absurd this (by decide)
Every interior offset a ∈ (0, 2^m - 1) satisfies b(a) = false.
For any interior offset a, we specialize the induction lemma `key` with bound n = min(a, 2^(s+1) - 1 - a) using `le_rfl`, concluding that b(a) = false.
uses
le_rflintro a ha0 ha1 exact key _ a ha0 ha1 le_rfl
pow_succ- for any base a and natural number n, a^(n+1) = a^n * a
Nat.pow_log_le_self- for any base b and positive integer x ≠ 0, b^(⌊log_b x⌋) ≤ x
Nat.pow_le_pow_right- for a positive base n > 0 and exponents i ≤ j, n^i ≤ n^j
Nat.lt_pow_succ_log_self- for any base b > 1 and natural number x, x < b^(⌊log_b x⌋ + 1)
Nat.strong_induction_on- the principle of strong (complete) induction on ℕ: to prove a property for all n, it suffices to prove it for n assuming it holds for all m < n
lt_or_ge- in any linear order, either a < b or b ≤ a
cycle_power_dyadic_tight_class_parent- for a tight dyadic class b on [0, 2^m) and 1 ≤ j < m, an element a < 2^j satisfies: if a < 2^(j-1) and b(a + 2^m - 2^j) = true then b(a) = true; and if 2^(j-1) ≤ a and b(a) = true then b(a + 2^m - 2^j) = true
le_rfl- the inequality relation ≤ is reflexive: a ≤ a for any element a
- The proof relies extensively on linear integer arithmetic (`omega`) to verify the index arithmetic: that parent offsets remain strictly within the interior (0, 2^m - 1) and that their distance to the boundary strictly decreases.
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_tight_class_interior_false_of_root_children (m : ℕ) (hm : 2 ≤ m) (b : ℕ → Bool) (htight : cycle_power_dyadic_class_weight m b = (Finset.range (2^m)).sum (fun a => (b a).toNat)) (hlow : ∀ j, 1 ≤ j → j < m → b (2^j - 1) = false) (hhigh : ∀ j, 1 ≤ j → j < m → b (2^m - 2^j) = false) : ∀ a, 0 < a → a < 2^m - 1 → b a = false := by obtain ⟨s, rfl⟩ : ∃ s, m = s + 1 := ⟨m - 1, by omega⟩ obtain ⟨T, hT⟩ : ∃ T : ℕ, T = 2^s := ⟨_, rfl⟩ have hD : (2:ℕ)^(s+1) = 2*T := by rw [hT, pow_succ]; ring have hlog : ∀ c : ℕ, 0 < c → c < T → ∃ j Q, 1 ≤ j ∧ j < s + 1 ∧ Q = 2^(j-1) ∧ 2^j = 2*Q ∧ Q ≤ c ∧ c < 2*Q := by intro c hc0 hcT refine ⟨Nat.log 2 c + 1, 2^(Nat.log 2 c), by omega, ?_, by simp, by rw [pow_succ]; ring, Nat.pow_log_le_self 2 (by omega), ?_⟩ · by_contra hcon have : 2^s ≤ 2^(Nat.log 2 c) := Nat.pow_le_pow_right (by norm_num) (by omega) have := Nat.pow_log_le_self 2 (show c ≠ 0 by omega) omega · have := Nat.lt_pow_succ_log_self (by norm_num : 1 < 2) c rw [pow_succ] at this; omega have key : ∀ n : ℕ, ∀ a, 0 < a → a < 2^(s+1) - 1 → min a (2^(s+1) - 1 - a) ≤ n → b a = false := by intro n induction n using Nat.strong_induction_on with | _ n ih => intro a ha0 ha1 hmu by_contra hne have hb : b a = true := by revert hne; generalize b a = w; cases w <;> simp rcases lt_or_ge a T with haT | haT · obtain ⟨j, Q, hj1, hjm, hQ, hPQ, hQa, haQ⟩ := hlog a ha0 haT have hp := (cycle_power_dyadic_tight_class_parent (s+1) j hj1 hjm b htight a (by omega)).2 (by rw [← hQ]; omega) hb by_cases hroot : a = 2^j - 1 · rw [hroot, hlow j hj1 hjm] at hb; exact absurd hb (by decide) · have hjT : 2^j ≤ 2^(s+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have := ih (min (a + 2^(s+1) - 2^j) (2^(s+1) - 1 - (a + 2^(s+1) - 2^j))) (by omega) (a + 2^(s+1) - 2^j) (by omega) (by omega) le_rfl rw [hp] at this; exact absurd this (by decide) · have hh0 : 0 < 2^(s+1) - 1 - a := by omega obtain ⟨j, Q, hj1, hjm, hQ, hPQ, hQa, haQ⟩ := hlog (2^(s+1) - 1 - a) hh0 (by omega) have hjT : 2^j ≤ 2^(s+1) := Nat.pow_le_pow_right (by norm_num) (by omega) have hp := (cycle_power_dyadic_tight_class_parent (s+1) j hj1 hjm b htight (2^j - 1 - (2^(s+1) - 1 - a)) (by omega)).1 (by rw [← hQ]; omega) have hidx : 2^j - 1 - (2^(s+1) - 1 - a) + 2^(s+1) - 2^j = a := by omega rw [hidx] at hp have hb' := hp hb by_cases hroot : a = 2^(s+1) - 2^j · rw [hroot, hhigh j hj1 hjm] at hb; exact absurd hb (by decide) · have := ih (min (2^j - 1 - (2^(s+1) - 1 - a)) (2^(s+1) - 1 - (2^j - 1 - (2^(s+1) - 1 - a)))) (by omega) (2^j - 1 - (2^(s+1) - 1 - a)) (by omega) (by omega) le_rfl rw [hb'] at this; exact absurd this (by decide) intro a ha0 ha1 exact key _ a ha0 ha1 le_rfl