AFTD Auto-Formalizing Theoretical Domains

cycle_power_dyadic_optimal_count_no_middle_island_small

theoremverified

The cases j = 1 and j = 2 (exponents 4 and 5) of cycle_power_dyadic_optimal_count_no_middle_island: with D = 2^(j+3) and g = 2^j, in a tight, exactly dyadically covered, fully covered integer Boolean class model at exponent j+3 with exactly j+4 active classes at every vertex, no class is the island [0, g) ∪ [3g, 5g) ∪ [7g, D).

Statement

theorem cycle_power_dyadic_optimal_count_no_middle_island_small (j : ℕ) (hj1 : 1 ≤ j) (hj2 : j ≤ 2)
    (x : ℤ → ℕ → Bool)
    (htight : ∀ p, cycle_power_dyadic_class_weight (j+3) (x p) =
      (Finset.range (2^(j+3))).sum (fun a => (x p a).toNat))
    (hexact : ∀ i < j+3, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a =>
      (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(j+3)-2^i)).toNat) = 1)
    (hcover : ∀ d : ℕ, 1 ≤ d → d < 2^(j+3) → ∀ v : ℤ,
      ∃ a : ℕ, a < 2^(j+3)-d ∧ x (v-(a : ℤ)) a = true ∧
        x (v-(a : ℤ)) (a+d) = true)
    (hcount : ∀ v : ℤ, (Finset.range (2^(j+3))).sum (fun a =>
      (x (v-(a : ℤ)) a).toNat) = (j+3)+1) :
    ∀ p : ℤ, ¬ ∀ b < 2^(j+3), x p b = (decide (b < 2^j) || (decide (3*2^j ≤ b) && decide (b < 5*2^j)) || decide (7*2^j ≤ b))
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. Base cases of the island exclusion, from the no-island theorems at exponents 4 and 5.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 1

The proof, explained

The proof proceeds by contradiction, splitting into the cases j = 1 and j = 2. In each case, assuming that a class x(p, ·) is given by the middle-island configuration [0, g) ∪ [3g, 5g) ∪ [7g, D), we evaluate x(p, ·) at three positions a < b < c chosen such that a lies in the first gap [g, 3g), b lies in the middle island [3g, 5g), and c lies in the second gap [5g, 7g) (indices 2, 6, 10 for j = 1, and 4, 12, 20 for j = 2). This yields x(p, a) = false and x(p, b) = true, which by the structural no-island theorems for exponents 4 and 5 forces x(p, c) = true, directly contradicting the value x(p, c) = false given by the island definition.

  1. To reach a contradiction, it suffices to prove the impossibility of the island configuration for j = 1 and j = 2.

    We assume for contradiction that some vertex p has its class x(p, ·) given by the middle-island formula for all b < 2^(j+3). Since 1 ≤ j ≤ 2, integer arithmetic (via `omega`) reduces the analysis to two exhaustive cases: j = 1 and j = 2.

    lines 13–14

      intro p hI
      rcases (show j = 1 ∨ j = 2 by omega) with rfl | rfl
  2. For j = 1, the island formula explicitly determines the values of x(p, ·) at positions 2, 6, and 10.

    When j = 1, the exponent is 1 + 3 = 4, so the domain bound is 2^4 = 16. Specializing the island hypothesis at the indices 2, 6, and 10 (which are all strictly less than 16) yields explicit boolean equations for x(p, 2), x(p, 6), and x(p, 10).

    lines 15–17

      · have h2 := hI 2 (by norm_num)
        have h6 := hI 6 (by norm_num)
        have h10 := hI 10 (by norm_num)
  3. The case j = 1 leads to a contradiction.

    Applying `cycle_power_fifteen_model_no_island` at exponent 4 to the ordered indices 2 < 6 < 10 < 16—with x(p, 2) = false and x(p, 6) = true verified by evaluating the island condition—forces x(p, 10) to be true. However, rewriting with the explicit formula for x(p, 10) shows that the island condition gives x(p, 10) = false (since 10 lies in the gap between 5 · 2 and 7 · 2), deriving a contradiction.

    lines 18–21

    uses cycle_power_fifteen_model_no_island

        have h := cycle_power_fifteen_model_no_island x htight hexact hcover hcount p 2 6 10
          (by norm_num) (by norm_num) (by norm_num) (by rw [h2]; decide) (by rw [h6]; decide)
        rw [h10] at h
        revert h; decide
  4. For j = 2, the island formula explicitly determines the values of x(p, ·) at positions 4, 12, and 20.

    When j = 2, the exponent is 2 + 3 = 5, so the domain bound is 2^5 = 32. Specializing the island hypothesis at the indices 4, 12, and 20 (which are all strictly less than 32) yields explicit boolean equations for x(p, 4), x(p, 12), and x(p, 20).

    lines 22–24

      · have h4 := hI 4 (by norm_num)
        have h12 := hI 12 (by norm_num)
        have h20 := hI 20 (by norm_num)
  5. The case j = 2 leads to a contradiction, completing the proof.

    Applying `cycle_power_thirty_one_model_no_island` at exponent 5 to the ordered indices 4 < 12 < 20 < 32—with x(p, 4) = false and x(p, 12) = true—forces x(p, 20) to be true. But rewriting with the island formula shows that x(p, 20) = false (as 20 is the upper bound of the middle island [12, 20) and thus outside it), deriving a contradiction in the second case as well.

    lines 25–28

    uses cycle_power_thirty_one_model_no_island

        have h := cycle_power_thirty_one_model_no_island x htight hexact hcover hcount p 4 12 20
          (by norm_num) (by norm_num) (by norm_num) (by rw [h4]; decide) (by rw [h12]; decide)
        rw [h20] at h
        revert h; decide
cycle_power_fifteen_model_no_island
In a tight, exactly dyadically covered, fully covered Boolean model on ℤ at exponent 4 with active class count 4 + 1 = 5, no class can have a false-true-false pattern: if a < b < c < 16 with x(p, a) = false and x(p, b) = true, then x(p, c) must be true.
cycle_power_thirty_one_model_no_island
In a tight, exactly dyadically covered, fully covered Boolean model on ℤ at exponent 5 with active class count 5 + 1 = 6, no class can have a false-true-false pattern: if a < b < c < 32 with x(p, a) = false and x(p, b) = true, then x(p, c) must be true.

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

theorem cycle_power_dyadic_optimal_count_no_middle_island_small (j : ℕ) (hj1 : 1 ≤ j) (hj2 : j ≤ 2)    (x : ℤ → ℕ → Bool)    (htight : ∀ p, cycle_power_dyadic_class_weight (j+3) (x p) =      (Finset.range (2^(j+3))).sum (fun a => (x p a).toNat))    (hexact : ∀ i < j+3, ∀ v : ℤ, (Finset.range (2^i)).sum (fun a =>      (x (v-(a : ℤ)) a && x (v-(a : ℤ)) (a+2^(j+3)-2^i)).toNat) = 1)    (hcover : ∀ d : ℕ, 1 ≤ d → d < 2^(j+3) → ∀ v : ℤ,      ∃ a : ℕ, a < 2^(j+3)-d ∧ x (v-(a : ℤ)) a = true ∧        x (v-(a : ℤ)) (a+d) = true)    (hcount : ∀ v : ℤ, (Finset.range (2^(j+3))).sum (fun a =>      (x (v-(a : ℤ)) a).toNat) = (j+3)+1) :    ∀ p : ℤ, ¬ ∀ b < 2^(j+3), x p b = (decide (b < 2^j) || (decide (3*2^j ≤ b) && decide (b < 5*2^j)) || decide (7*2^j ≤ b)) := by  intro p hI  rcases (show j = 1 ∨ j = 2 by omega) with rfl | rfl  · have h2 := hI 2 (by norm_num)    have h6 := hI 6 (by norm_num)    have h10 := hI 10 (by norm_num)    have h := cycle_power_fifteen_model_no_island x htight hexact hcover hcount p 2 6 10      (by norm_num) (by norm_num) (by norm_num) (by rw [h2]; decide) (by rw [h6]; decide)    rw [h10] at h    revert h; decide  · have h4 := hI 4 (by norm_num)    have h12 := hI 12 (by norm_num)    have h20 := hI 20 (by norm_num)    have h := cycle_power_thirty_one_model_no_island x htight hexact hcover hcount p 4 12 20      (by norm_num) (by norm_num) (by norm_num) (by rw [h4]; decide) (by rw [h12]; decide)    rw [h20] at h    revert h; decide
See it in the graphDiscuss this resultChallenge it