Documentation

CslibFrontier.Computability.Complexity.FineGrained.SparseParitySchedule

Section 6.3 compiled CNF parity-row schedule feasibility and domain-examination bounds #

This module connects the compiled CNF parity-row systems and greedy model-counting reduction of CslibFrontier.Logics.Propositional.CNF.SparseParityCounter (Sections 6.1–6.3, Lemmas 6.1–6.2, printed pp. 39–43 of OpenAI, The Exponential Time Hypothesis is False) with the per-branch schedule feasibility, ReplacementDesign existence, and domain-examination bounds of CslibFrontier.Computability.Complexity.FineGrained.SparseBranchSchedule (Section 5.5, Proof of Theorem 2.2, printed pp. 38–39):

  1. Incidence, free-variable, and scope-width bounds for CNF.parityRowSystem (§6.3, p. 43): In Lemma 6.2 and Section 6.3, every candidate parity-row list rows : List (Fin φ.length → Bool) (as well as the final list A (3 * n)) has at most 6 * Fintype.card V equations, giving equation-count ratio 6, and row Hamming weight at most W (with W = max D₀ P). Theorem 2.2 uses a sufficiently large c = c(k) to bound both the equation count and monomial sparsity. For any width-≤ k CNF φ : CNF V:
  2. Per-branch and uniform ReplacementDesign existence and (16 * k + 4) domain-examination bounds for CNF.parityRowSystem (§6.3, p. 43):
  3. End-to-end Lemma 6.1 + Lemma 6.2 + Section 6.3 greedy parity-test schedule theorems:

Main definitions #

Main results #

References #

1. Incidence, free-variable, and scope-width bounds for CNF.parityRowSystem #

theorem Cslib.Logic.PL.CNF.totalIncidence_mul_le_of_card_equationScope_le {V : Type u_1} [Fintype V] [DecidableEq V] {φ : CNF V} {rows : List (Fin (List.length φ) → Bool)} {w s b₀ : ℕ} (hscope : ∀ (j : Fin rows.length), (BitString.equationScope (φ.parityRowSystem rows j)).card ≤ w) (hlen : rows.length ≤ 6 * Fintype.card V) (h_thresh : 6 * w * s ≤ b₀) :

Heavy-variable budget for a parity-row system: if every equation scope has at most w variables, there are at most 6 * Fintype.card V rows, and (6 * w) * s ≤ b₀, then the total incidence times the branching divisor s is at most b₀ * Fintype.card V. This is the hypothesis hM of card_le_two_mul_freeVar_of_heavyVars and card_branchAssignments_heavyVars_le_two_pow_div.

theorem Cslib.Logic.PL.CNF.totalIncidence_parityRowSystem_le_six_mul {V : Type u_1} [Fintype V] [DecidableEq V] {φ : CNF V} {k W : ℕ} (hk : ∀ c ∈ φ, List.length c ≤ k) {rows : List (Fin (List.length φ) → Bool)} (hW : ∀ r ∈ rows, BitString.weight r ≤ W) (hlen : rows.length ≤ 6 * Fintype.card V) :

Section 6.2 & 6.3 ($M \le 6 k W 2^k n$ for candidate parity-row systems): when every clause of φ has width at most k, every row in rows has Hamming weight at most W, and rows.length ≤ 6 * Fintype.card V, the total variable-equation incidence of φ.parityRowSystem rows is at most (6 * (k * (W * 2 ^ k))) * Fintype.card V.

theorem Cslib.Logic.PL.CNF.card_le_two_mul_freeVar_parityRowSystem {V : Type u_1} {n' : ℕ} [Fintype V] [DecidableEq V] {φ : CNF V} {k W b₀ s_div : ℕ} (hk : ∀ c ∈ φ, List.length c ≤ k) {rows : List (Fin (List.length φ) → Bool)} (hW : ∀ r ∈ rows, BitString.weight r ≤ W) (hlen : rows.length ≤ 6 * Fintype.card V) (hs_div : 2 ≤ s_div) (h_thresh : 6 * (k * (W * 2 ^ k)) * s_div ≤ b₀) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) ≃ Fin n') :

Section 5.5 & 6.3 ($n \le 2n'$ and branch count $\le 2^{n / s}$ for CNF.parityRowSystem): when ∀ c ∈ φ, c.length ≤ k, ∀ r ∈ rows, weight r ≤ W, rows.length ≤ 6 * Fintype.card V, 2 ≤ s_div, and (6 * (k * (W * 2 ^ k))) * s_div ≤ b₀, removing the heavy variables S = heavyVars univ univ (fun j => equationScope (φ.parityRowSystem rows j)) b₀ leaves Fintype.card V ≤ 2 * n', Fintype.card V / 2 ≤ n', and at most 2 ^ (Fintype.card V / s_div) branches in branchAssignments S.

theorem Cslib.Logic.PL.CNF.card_branchAugmentedScope_parityRowSystem_le {V : Type u_1} {n' : ℕ} [Fintype V] [DecidableEq V] {φ : CNF V} {k W : ℕ} (hk : ∀ c ∈ φ, List.length c ≤ k) {rows : List (Fin (List.length φ) → Bool)} (hW : ∀ r ∈ rows, BitString.weight r ≤ W) (S : Finset V) (e : ↥(Finset.univ \ S) ≃ Fin n') (b : V → Bool) (f : ↥Finset.univ ⊕ Fin n') :

Section 5.5 & 6.3 (per-factor scope width $\le \max(k W 2^k, 1)$ for CNF.parityRowSystem): when ∀ c ∈ φ, c.length ≤ k and ∀ r ∈ rows, weight r ≤ W, every factor f of branchAugmentedScope S e univ (φ.parityRowSystem rows) b has scope cardinality at most max (k * (W * 2 ^ k)) 1.

2. Per-branch and uniform ReplacementDesign and domain-examination bounds #

Section 6.3 per-branch ReplacementDesign existence for CNF.parityRowSystem: Given a width-≤ k CNF φ : CNF V, a parity-row list rows : List (Fin φ.length → Bool) with ∀ r ∈ rows, weight r ≤ W, S = heavyVars univ univ (fun j => equationScope (φ.parityRowSystem rows j)) b₀, e : ↥(univ \ S) ≃ Fin n', and hF : Feasible β n' (b₀ + 1) (max (k * (W * 2 ^ k)) 1) (∑ f, #(branchAugmentedScope S e univ (φ.parityRowSystem rows) b f)), there exists a concrete Section 4 ReplacementDesign for branchAugmentedScope S e univ (φ.parityRowSystem rows) b at the Lemma 4.8 schedule.

theorem Cslib.Logic.PL.CNF.exists_branch_schedule_parityRowSystem {β : ℕ} (hβ : 1 ≤ β) :
∃ (n₀ : ℕ), 20 ≤ n₀ ∧ ∀ {V : Type u_2} [inst : Fintype V] [inst_1 : DecidableEq V] {φ : CNF V} ⦃n' k W b₀ : ℕ⦄, (∀ c ∈ φ, List.length c ≤ k) → ∀ {rows : List (Fin (List.length φ) → Bool)}, (∀ r ∈ rows, BitString.weight r ≤ W) → ∀ (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) ≃ Fin n'), n₀ ≤ n' → b₀ + 1 ≤ Nat.clog 2 n' ^ β → max (k * (W * 2 ^ k)) 1 ≤ Nat.clog 2 n' ^ β → ∀ (b : V → Bool), Complexity.SubexponentialSAT.ReplacementParams.Feasible β n' (b₀ + 1) (max (k * (W * 2 ^ k)) 1) (∑ f : ↥Finset.univ ⊕ Fin n', (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) e Finset.univ (φ.parityRowSystem rows) b f).card) ∧ Nonempty (LinearAlgebra.ReplacementDesign (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) e Finset.univ (φ.parityRowSystem rows) b) (Complexity.SubexponentialSAT.ReplacementParams.numNodes n') (Complexity.SubexponentialSAT.ReplacementParams.numGroups n') (Complexity.SubexponentialSAT.ReplacementParams.intervalStart β n') (Complexity.SubexponentialSAT.ReplacementParams.rowBound β n') (Complexity.SubexponentialSAT.ReplacementParams.tauRat n'))

Uniform Section 6.3 schedule feasibility and ReplacementDesign existence for CNF.parityRowSystem: For every 1 ≤ β, there exists n₀ ≥ 20 such that for any width-≤ k CNF φ : CNF V and parity-row list rows : List (Fin φ.length → Bool) with ∀ r ∈ rows, weight r ≤ W, whenever the free-variable count n' after removing S = heavyVars univ univ (fun j => equationScope (φ.parityRowSystem rows j)) b₀ satisfies n₀ ≤ n', b₀ + 1 ≤ (Nat.clog 2 n') ^ β, and max (k * (W * 2 ^ k)) 1 ≤ (Nat.clog 2 n') ^ β, every branch assignment b : V → Bool simultaneously satisfies Feasible and admits a concrete ReplacementDesign.

theorem Cslib.Logic.PL.CNF.branch_domainExaminationBound_parityRowSystem_le {V : Type u_1} {n' : ℕ} [Fintype V] {F_idx : Type u_2} [Fintype F_idx] {scope : F_idx → Finset (Fin n')} {φ : CNF V} {β b_occ w_width M' k : ℕ} (rows : List (Fin (List.length φ) → Bool)) (hF : Complexity.SubexponentialSAT.ReplacementParams.Feasible β n' b_occ w_width M') (D : LinearAlgebra.ReplacementDesign scope (Complexity.SubexponentialSAT.ReplacementParams.numNodes n') (Complexity.SubexponentialSAT.ReplacementParams.numGroups n') (Complexity.SubexponentialSAT.ReplacementParams.intervalStart β n') (Complexity.SubexponentialSAT.ReplacementParams.rowBound β n') (Complexity.SubexponentialSAT.ReplacementParams.tauRat n')) (s : Finset F_idx) (hlen : rows.length ≤ 6 * Fintype.card V) (hn : Fintype.card V ≤ 2 * n') :

Section 6.3 single-branch domain-examination bound for CNF.parityRowSystem ($c = 6$): For any parity-row list rows : List (Fin φ.length → Bool) with rows.length ≤ 6 * Fintype.card V and Fintype.card V ≤ 2 * n', and any branch b with hF : Feasible β n' b_occ w_width M' and concrete schedule design D, at the Section 5.3 / 6.3 degree budget d = k * (rows.length + 2 * (branchPrecision (Fintype.card V) - 1)) and canonical truncation order q = (d * rowBound β n') / numNodes n', the induced Section 3 counting design C := hF.toCountingDesign D s satisfies (∑ t : Fin (numNodes n'), (#{p : Finset (Fin n') × Finset (Fin n') | #p.1 ≤ q ∧ p.2 ⊆ p.1} : ℝ) * (2 * (#(C.measurementBox t) : ℝ) * ∑ g : Fin (numGroups n'), (Fintype.card (C.LocalCube t g) : ℝ))) ≤ 2 * numNodes n' * numGroups n' * exp (((16 * k + 4 : ℕ) : ℝ) * n' * rowCost β n').

theorem Cslib.Logic.PL.CNF.sum_branch_domainExaminationBound_parityRowSystem_le {V : Type u_1} {n' : ℕ} [Fintype V] [DecidableEq V] {φ : CNF V} {β k W b₀ s_div : ℕ} (hk : ∀ c ∈ φ, List.length c ≤ k) {rows : List (Fin (List.length φ) → Bool)} (hW : ∀ r ∈ rows, BitString.weight r ≤ W) (hlen : rows.length ≤ 6 * Fintype.card V) (hs_div : 2 ≤ s_div) (h_thresh : 6 * (k * (W * 2 ^ k)) * s_div ≤ b₀) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) ≃ Fin n') (examSum : (V → Bool) → ℝ) (hexam : ∀ b ∈ BitString.branchAssignments (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀), examSum b ≤ 2 * ↑(Complexity.SubexponentialSAT.ReplacementParams.numNodes n') * ↑(Complexity.SubexponentialSAT.ReplacementParams.numGroups n') * Real.exp (↑(16 * k + 4) * ↑n' * Complexity.SubexponentialSAT.ReplacementParams.rowCost β n')) :

Section 6.3 multi-branch domain-examination bound across branchAssignments for CNF.parityRowSystem: When ∀ c ∈ φ, c.length ≤ k, ∀ r ∈ rows, weight r ≤ W, rows.length ≤ 6 * Fintype.card V, 2 ≤ s_div, (6 * (k * (W * 2 ^ k))) * s_div ≤ b₀, and e : ↥(univ \ S) ≃ Fin n', the free-variable dimension satisfies Fintype.card V ≤ 2 * n', and if each branch b ∈ branchAssignments S has its real examination sum bounded via CNF.branch_domainExaminationBound_parityRowSystem_le, then the sum of those examination bounds across all b ∈ branchAssignments S is at most (2 : ℝ) ^ (Fintype.card V / s_div) * (2 * numNodes n' * numGroups n' * exp (((16 * k + 4 : ℕ) : ℝ) * n' * rowCost β n')).

3. End-to-end Lemma 6.1 + Lemma 6.2 + Section 6.3 greedy parity-test schedule theorem #

theorem Cslib.Logic.PL.CNF.exists_greedy_parityRowSystem_branch_schedule {β : ℕ} (hβ : 1 ≤ β) :
∃ (n₀ : ℕ), 20 ≤ n₀ ∧ ∀ {V : Type u_2} [inst : Fintype V] [inst_1 : DecidableEq V] (φ : CNF V) {k B : ℕ}, (∀ c ∈ φ, List.length c ≤ k) → 1 ≤ Fintype.card V → 1 ≤ B → List.length φ ≤ B * Fintype.card V → have D₀ := BitString.initialRowWeightBound B (List.length φ); let P := BitString.greedyRowListLength B (List.length φ); ∃ (A₀ : List (Fin (List.length φ) → Bool)), A₀.length ≤ 3 * Fintype.card V ∧ (∀ r ∈ A₀, BitString.weight r ≤ D₀) ∧ ∀ (A : ℕ → List (Fin (List.length φ) → Bool)) (γ : ℕ → Fin P → Fin (List.length φ) × Bool), A 0 = A₀ → (∀ (i : ℕ), A (i + 1) = A i ++ [BitString.testRow (γ i)]) → (∀ (i : ℕ) (γ' : Fin P → Fin (List.length φ) × Bool), BitString.commonZeroCount Finset.univ (φ.parityRowSystem (A i ++ [BitString.testRow (γ i)])) ≤ BitString.commonZeroCount Finset.univ (φ.parityRowSystem (A i ++ [BitString.testRow γ']))) → BitString.commonZeroCount Finset.univ (φ.parityRowSystem (A (3 * Fintype.card V))) = φ.modelCountOn Finset.univ ∧ ∀ i ≤ 3 * Fintype.card V, (A i).length ≤ 6 * Fintype.card V ∧ ∀ ⦃n' b₀ : ℕ⦄ (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀) ≃ Fin n'), n₀ ≤ n' → b₀ + 1 ≤ Nat.clog 2 n' ^ β → max (k * (max D₀ P * 2 ^ k)) 1 ≤ Nat.clog 2 n' ^ β → ∀ (b : V → Bool), Complexity.SubexponentialSAT.ReplacementParams.Feasible β n' (b₀ + 1) (max (k * (max D₀ P * 2 ^ k)) 1) (∑ f : ↥Finset.univ ⊕ Fin n', (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀) e Finset.univ (φ.parityRowSystem (A i)) b f).card) ∧ Nonempty (LinearAlgebra.ReplacementDesign (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀) e Finset.univ (φ.parityRowSystem (A i)) b) (Complexity.SubexponentialSAT.ReplacementParams.numNodes n') (Complexity.SubexponentialSAT.ReplacementParams.numGroups n') (Complexity.SubexponentialSAT.ReplacementParams.intervalStart β n') (Complexity.SubexponentialSAT.ReplacementParams.rowBound β n') (Complexity.SubexponentialSAT.ReplacementParams.tauRat n'))

Lemmas 6.1–6.2 & Section 6.3 (greedy parity-row selection with uniform per-branch Feasible and ReplacementDesign guarantees at every stage i ≤ 3 * n): For any 1 ≤ β, there exists n₀ ≥ 20 such that for any width-≤ k CNF φ : CNF V on n = Fintype.card V ≥ 1 variables with φ.length ≤ B * n (1 ≤ B), there exist initial parity rows A₀ (A₀.length ≤ 3 * n, each of weight at most D₀ = initialRowWeightBound B φ.length) such that for any 3 * n-step greedy sequence A (i + 1) = A i ++ [testRow (γ i)] with A 0 = A₀ minimizing commonZeroCount over candidate rows of list length P = greedyRowListLength B φ.length:

  1. After 3 * n rounds, commonZeroCount univ (φ.parityRowSystem (A (3 * n))) = φ.modelCountOn Finset.univ.
  2. At every stage i ≤ 3 * n, (A i).length ≤ 6 * n, and whenever the free-variable count n' after removing S_i = heavyVars univ univ (fun j => equationScope (φ.parityRowSystem (A i) j)) b₀ satisfies n₀ ≤ n', b₀ + 1 ≤ (Nat.clog 2 n') ^ β, and max (k * (max D₀ P * 2 ^ k)) 1 ≤ (Nat.clog 2 n') ^ β, every branch b : V → Bool of φ.parityRowSystem (A i) satisfies Feasible β n' (b₀ + 1) (max (k * (max D₀ P * 2 ^ k)) 1) M'_b and admits a concrete ReplacementDesign.

4. Unconditional polylogarithmic schedule discharge for B ≤ C_B * (Nat.clog 2 n) ^ β_B #

Coefficient for the polynomial bound on initialRowWeightBound B m when B ≤ C_B * (Nat.clog 2 n) ^ β_B and m ≤ B * n.

theorem Cslib.Logic.PL.CNF.initialRowWeightBound_le_mul_pow_clog {n m B C_B β_B : ℕ} (hn : 2 ≤ n) (hm : m ≤ B * n) (hB : B ≤ C_B * Nat.clog 2 n ^ β_B) :

Section 6.1 & 6.3 ($D_0 \le C \cdot (\lceil \log_2 n \rceil)^{2\beta_B + 3}$): when 2 ≤ n, m ≤ B * n, and B ≤ C_B * (Nat.clog 2 n) ^ β_B, the initial parity-row weight bound initialRowWeightBound B m is at most CNF.initialRowWeightCoeff C_B β_B * (Nat.clog 2 n) ^ (2 * β_B + 3).

Canonical Section 5.5 & 6.3 heavy-variable branching threshold b₀ = (6 * (k * (W * 2 ^ k))) * (Nat.clog 2 n).sqrt + 1 for a width-≤ k CNF with row-weight bound W on n variables.

Schedule coefficient bounding CNF.parityBranchThreshold k W n + 1 and max (k * (W * 2 ^ k)) 1 against (Nat.clog 2 n') ^ (2 * β_B + 4) when n ≤ 2 * n'.

theorem Cslib.Logic.PL.CNF.exists_branch_schedule_parityRowSystem_of_le_clog_pow (k C_B β_B : ℕ) :
∃ (N₀ : ℕ), 20 ≤ N₀ ∧ ∀ {V : Type u_2} [inst : Fintype V] [inst_1 : DecidableEq V] {φ : CNF V} ⦃n' B W : ℕ⦄, (∀ c ∈ φ, List.length c ≤ k) → N₀ ≤ Fintype.card V → List.length φ ≤ B * Fintype.card V → B ≤ C_B * Nat.clog 2 (Fintype.card V) ^ β_B → W ≤ BitString.initialRowWeightBound B (List.length φ) → ∀ {rows : List (Fin (List.length φ) → Bool)}, (∀ r ∈ rows, BitString.weight r ≤ W) → rows.length ≤ 6 * Fintype.card V → let b₀ := parityBranchThreshold k W (Fintype.card V); ∀ (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) ≃ Fin n'), 2 ≤ (Nat.clog 2 (Fintype.card V)).sqrt ∧ (Fintype.card V ≤ 2 * n' ∧ Fintype.card V / 2 ≤ n') ∧ (BitString.branchAssignments (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀)).card ≤ 2 ^ (Fintype.card V / (Nat.clog 2 (Fintype.card V)).sqrt) ∧ ∀ (b : V → Bool), Complexity.SubexponentialSAT.ReplacementParams.Feasible (2 * β_B + 5) n' (b₀ + 1) (max (k * (W * 2 ^ k)) 1) (∑ f : ↥Finset.univ ⊕ Fin n', (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) e Finset.univ (φ.parityRowSystem rows) b f).card) ∧ Nonempty (LinearAlgebra.ReplacementDesign (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin rows.length) => BitString.equationScope (φ.parityRowSystem rows j)) b₀) e Finset.univ (φ.parityRowSystem rows) b) (Complexity.SubexponentialSAT.ReplacementParams.numNodes n') (Complexity.SubexponentialSAT.ReplacementParams.numGroups n') (Complexity.SubexponentialSAT.ReplacementParams.intervalStart (2 * β_B + 5) n') (Complexity.SubexponentialSAT.ReplacementParams.rowBound (2 * β_B + 5) n') (Complexity.SubexponentialSAT.ReplacementParams.tauRat n'))

Unconditional Section 6.3 branch-schedule feasibility and ReplacementDesign existence for CNF.parityRowSystem with B ≤ C_B * (Nat.clog 2 n) ^ β_B: For any k C_B β_B : ℕ, there exists an explicit threshold N₀ ≥ 20 such that for any width-≤ k CNF φ : CNF V with N₀ ≤ Fintype.card V, φ.length ≤ B * Fintype.card V, and B ≤ C_B * (Nat.clog 2 (Fintype.card V)) ^ β_B, and any parity-row list rows : List (Fin φ.length → Bool) with rows.length ≤ 6 * Fintype.card V, ∀ r ∈ rows, weight r ≤ W, and W ≤ initialRowWeightBound B φ.length, at the canonical threshold b₀ = CNF.parityBranchThreshold k W (Fintype.card V) and exponent β = 2 * β_B + 5:

  1. 2 ≤ (Nat.clog 2 (Fintype.card V)).sqrt,
  2. Fintype.card V ≤ 2 * n' and Fintype.card V / 2 ≤ n',
  3. #(branchAssignments S) ≤ 2 ^ (Fintype.card V / (Nat.clog 2 (Fintype.card V)).sqrt), and
  4. every branch b : V → Bool unconditionally satisfies Feasible (2 * β_B + 5) n' (b₀ + 1) (max (k * (W * 2 ^ k)) 1) M'_b and admits a concrete ReplacementDesign.
theorem Cslib.Logic.PL.CNF.exists_greedy_parityRowSystem_branch_schedule_of_le_clog_pow (k C_B β_B : ℕ) :
∃ (N₀ : ℕ), 20 ≤ N₀ ∧ ∀ {V : Type u_2} [inst : Fintype V] [inst_1 : DecidableEq V] (φ : CNF V) {B : ℕ}, (∀ c ∈ φ, List.length c ≤ k) → N₀ ≤ Fintype.card V → 1 ≤ B → B ≤ C_B * Nat.clog 2 (Fintype.card V) ^ β_B → List.length φ ≤ B * Fintype.card V → let D₀ := BitString.initialRowWeightBound B (List.length φ); let P := BitString.greedyRowListLength B (List.length φ); let b₀ := parityBranchThreshold k D₀ (Fintype.card V); ∃ (A₀ : List (Fin (List.length φ) → Bool)), A₀.length ≤ 3 * Fintype.card V ∧ (∀ r ∈ A₀, BitString.weight r ≤ D₀) ∧ ∀ (A : ℕ → List (Fin (List.length φ) → Bool)) (γ : ℕ → Fin P → Fin (List.length φ) × Bool), A 0 = A₀ → (∀ (i : ℕ), A (i + 1) = A i ++ [BitString.testRow (γ i)]) → (∀ (i : ℕ) (γ' : Fin P → Fin (List.length φ) × Bool), BitString.commonZeroCount Finset.univ (φ.parityRowSystem (A i ++ [BitString.testRow (γ i)])) ≤ BitString.commonZeroCount Finset.univ (φ.parityRowSystem (A i ++ [BitString.testRow γ']))) → BitString.commonZeroCount Finset.univ (φ.parityRowSystem (A (3 * Fintype.card V))) = φ.modelCountOn Finset.univ ∧ ∀ i ≤ 3 * Fintype.card V, (A i).length ≤ 6 * Fintype.card V ∧ ∀ ⦃n' : ℕ⦄ (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀) ≃ Fin n'), (Fintype.card V ≤ 2 * n' ∧ Fintype.card V / 2 ≤ n') ∧ (BitString.branchAssignments (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀)).card ≤ 2 ^ (Fintype.card V / (Nat.clog 2 (Fintype.card V)).sqrt) ∧ ∀ (b : V → Bool), Complexity.SubexponentialSAT.ReplacementParams.Feasible (2 * β_B + 5) n' (b₀ + 1) (max (k * (D₀ * 2 ^ k)) 1) (∑ f : ↥Finset.univ ⊕ Fin n', (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀) e Finset.univ (φ.parityRowSystem (A i)) b f).card) ∧ Nonempty (LinearAlgebra.ReplacementDesign (Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope (BitString.heavyVars Finset.univ Finset.univ (fun (j : Fin (A i).length) => BitString.equationScope (φ.parityRowSystem (A i) j)) b₀) e Finset.univ (φ.parityRowSystem (A i)) b) (Complexity.SubexponentialSAT.ReplacementParams.numNodes n') (Complexity.SubexponentialSAT.ReplacementParams.numGroups n') (Complexity.SubexponentialSAT.ReplacementParams.intervalStart (2 * β_B + 5) n') (Complexity.SubexponentialSAT.ReplacementParams.rowBound (2 * β_B + 5) n') (Complexity.SubexponentialSAT.ReplacementParams.tauRat n'))

Unconditional Section 6.3 greedy parity-test schedule theorem for B ≤ C_B * (Nat.clog 2 n) ^ β_B: For any k C_B β_B : ℕ, there exists N₀ ≥ 20 such that for any width-≤ k CNF φ : CNF V with N₀ ≤ Fintype.card V, 1 ≤ B ≤ C_B * (Nat.clog 2 (Fintype.card V)) ^ β_B, and φ.length ≤ B * Fintype.card V, there exist initial parity rows A₀ (A₀.length ≤ 3 * n, each of weight at most D₀ = initialRowWeightBound B φ.length) such that for any 3 * n-step greedy sequence A (i + 1) = A i ++ [testRow (γ i)] with A 0 = A₀ minimizing commonZeroCount:

  1. commonZeroCount univ (φ.parityRowSystem (A (3 * Fintype.card V))) = φ.modelCountOn Finset.univ.
  2. At every stage i ≤ 3 * Fintype.card V, (A i).length ≤ 6 * Fintype.card V, and at the canonical threshold b₀ = CNF.parityBranchThreshold k D₀ (Fintype.card V):
    • Fintype.card V ≤ 2 * n' and Fintype.card V / 2 ≤ n',
    • #(branchAssignments S_i) ≤ 2 ^ (Fintype.card V / (Nat.clog 2 (Fintype.card V)).sqrt), and
    • every branch b : V → Bool unconditionally satisfies Feasible (2 * β_B + 5) n' (b₀ + 1) (max (k * (D₀ * 2 ^ k)) 1) M'_b and admits a concrete ReplacementDesign.