Documentation

CslibFrontier.Computability.Complexity.FineGrained.SparseBranchSchedule

Section 5.5 per-branch schedule feasibility and multi-branch domain-examination bounds #

This module connects the heavy-variable branch reduction and neutral singleton scope augmentation of CslibFrontier.Foundations.BooleanAnalysis.SparseBranching (Section 5.5, Proof of Theorem 2.2, printed pp. 38–39 of OpenAI, The Exponential Time Hypothesis is False) with the Lemma 4.7 / Lemma 4.8 schedule replacement design bridge of CslibFrontier.Computability.Complexity.FineGrained.ReplacementScheduleDesign (Sections 3.5 and 4.6–4.7, printed pp. 25–26, 33–35):

  1. Per-branch neutral-augmented scope family on {i : κ // i ∈ I} ⊕ Fin n': Given an active equation set I : Finset κ, a sparse polynomial system P : κ → Finset (Finset ι) on ι, a heavy-variable subset S : Finset ι, and an equivalence e : ↥(univ \ S) ≃ Fin n' identifying the free variables with Fin n', branchEquationScope S e P b maps each equation i to the variable scope of relabelRestrictedMonomials S e b (P i), and branchAugmentedScope S e I P b : {i : κ // i ∈ I} ⊕ Fin n' → Finset (Fin n') applies Cslib.BitString.withNeutralScope on the subtype {i : κ // i ∈ I} of active equations. Because (univ : Finset ({i : κ // i ∈ I} ⊕ Fin n')) coincides with withNeutralFactors (univ : Finset {i : κ // i ∈ I}), this directly inherits the incidence identities of SparseBranching.lean:
  2. Per-branch and uniform Lemma 4.7 + Lemma 4.8 ReplacementDesign existence:
    • Feasible.exists_branch_replacementDesign: whenever the schedule parameters at free-variable dimension n' satisfy Feasible β n' (b₀ + 1) (max w 1) M'_b, there exists a concrete Section 4 ReplacementDesign (and via Feasible.toCountingDesign, a Section 3 Cslib.ReplacementCounting.Design) for branchAugmentedScope S e I P b.
    • exists_branch_schedule_replacementDesign: uniformly for any 1 ≤ β, there exists n₀ ≥ 20 (from exists_schedule_replacementDesign) such that whenever n' ≥ n₀, b₀ + 1 ≤ (Nat.clog 2 n') ^ β, and max w 1 ≤ (Nat.clog 2 n') ^ β, every branch assignment b : ι → Bool simultaneously satisfies Feasible and admits a concrete ReplacementDesign, with all four per-branch incidence hypotheses (n' ≤ M'_b, M'_b ≤ (b₀ + 1) * n', per-variable occurrence ≤ b₀ + 1, and per-factor width ≤ max w 1) discharged automatically.
  3. Per-branch and branch-summed domain-examination bounds:
    • branchDegreeBudget_le: when #I ≤ c * Fintype.card ι and Fintype.card ι ≤ 2 * n', the Section 5.3 / 5.5 degree budget k * (#I + 2 * (branchPrecision (Fintype.card ι) - 1)) is at most (k * (2 * c + 4)) * n'.
    • Feasible.branch_domainExaminationBound_le: bounds the single-branch real domain-examination sum at canonical truncation order q = (k * (#I + 2 * (branchPrecision (Fintype.card ι) - 1)) * rowBound β n') / numNodes n' by 2 * numNodes n' * numGroups n' * exp (((k * (2 * c + 4) + 4) : ℝ) * n' * rowCost β n').
    • sum_branch_domainExaminationBound_le: when S = heavyVars univ F (fun i => equationScope (P i)) b₀ with 2 ≤ s_div and totalIncidence F (fun i => equationScope (P i)) * s_div ≤ b₀ * Fintype.card ι (which holds in particular for paperHeavyThreshold and heavyThreshold), Fintype.card ι ≤ 2 * n' holds automatically, and for any examSum : (ι → Bool) → ℝ that is at most 2 * numNodes n' * numGroups n' * exp (((k * (2 * c + 4) + 4) : ℝ) * n' * rowCost β n') on every b ∈ branchAssignments S, the sum of examSum b over b ∈ branchAssignments S is at most 2 ^ (Fintype.card ι / s_div) times that bound.

Main definitions #

Main results #

References #

1. Per-branch neutral-augmented scope family on {i : κ // i ∈ I} ⊕ Fin n' #

def Cslib.Complexity.SubexponentialSAT.ReplacementParams.branchEquationScope {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (P : κ → Finset (Finset ι)) (b : ι → Bool) (i : κ) :
Finset (Fin n')

The variable scope on Fin n' of equation i : κ after specializing S to b and relabeling the free variables univ \ S along e : ↥(univ \ S) ≃ Fin n'.

def Cslib.Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) :
↥I ⊕ Fin n' → Finset (Fin n')

The Section 5.5 neutral-augmented scope family on {i : κ // i ∈ I} ⊕ Fin n', defined by applying Cslib.BitString.withNeutralScope to branchEquationScope on the subtype {i : κ // i ∈ I} of active equations.

@[simp]
theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope_inl {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) (i : ↥I) :
@[simp]
theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.branchAugmentedScope_inr {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) (v : Fin n') :
theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.sum_card_branchAugmentedScope {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) :
∑ f : ↥I ⊕ Fin n', (branchAugmentedScope S e I P b f).card = BitString.totalIncidence I (branchEquationScope S e P b) + n'

Section 5.5 ($M' = \sum_{i \in I} |I'_i| + n'$): the total factor-variable incidence of branchAugmentedScope equals totalIncidence I (branchEquationScope S e P b) + n'.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.le_sum_card_branchAugmentedScope {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) :
n' ≤ ∑ f : ↥I ⊕ Fin n', (branchAugmentedScope S e I P b f).card

Section 5.5 ($M' \ge n'$): adjoining the neutral singleton scopes ensures that total branch incidence is at least n'.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.varIncidence_branchAugmentedScope {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) (v : Fin n') :
{f : ↥I ⊕ Fin n' | v ∈ branchAugmentedScope S e I P b f}.card = BitString.varIncidence I (branchEquationScope S e P b) v + 1

The number of factors in branchAugmentedScope S e I P b containing v : Fin n' equals varIncidence I (branchEquationScope S e P b) v + 1.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.varIncidence_branchAugmentedScope_le {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (F I : Finset κ) (P : κ → Finset (Finset ι)) (b₀ : ℕ) (hIF : I ⊆ F) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) ≃ Fin n') (b : ι → Bool) (v : Fin n') :
{f : ↥I ⊕ Fin n' | v ∈ branchAugmentedScope (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) e I P b f}.card ≤ b₀ + 1

Section 5.5 (free-variable occurrence $\le b_0 + 1$ after branching on heavyVars): for S = heavyVars univ F (fun i => equationScope (P i)) b₀ and I ⊆ F, every free variable v : Fin n' belongs to at most b₀ + 1 scopes of branchAugmentedScope S e I P b.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.sum_card_branchAugmentedScope_le {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (F I : Finset κ) (P : κ → Finset (Finset ι)) (b₀ : ℕ) (hIF : I ⊆ F) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) ≃ Fin n') (b : ι → Bool) :
∑ f : ↥I ⊕ Fin n', (branchAugmentedScope (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) e I P b f).card ≤ (b₀ + 1) * n'

Section 5.5 ($M' \le (b_0 + 1) n'$ after branching on heavyVars): for S = heavyVars univ F (fun i => equationScope (P i)) b₀ and I ⊆ F, the total incidence of branchAugmentedScope S e I P b is at most (b₀ + 1) * n'.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.card_branchEquationScope_le {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (P : κ → Finset (Finset ι)) (b : ι → Bool) (i : κ) :

Specializing S and relabeling along e never increases the scope cardinality of an equation: #(branchEquationScope S e P b i) ≤ #(equationScope (P i)).

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.card_branchAugmentedScope_le {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (S : Finset ι) (e : ↥(Finset.univ \ S) ≃ Fin n') (I : Finset κ) (P : κ → Finset (Finset ι)) (b : ι → Bool) {w : ℕ} (hw : ∀ i ∈ I, (BitString.equationScope (P i)).card ≤ w) (f : ↥I ⊕ Fin n') :
(branchAugmentedScope S e I P b f).card ≤ max w 1

Section 5.5 (per-factor scope width $\le \max(w, 1)$): if every active equation i ∈ I has #(equationScope (P i)) ≤ w, then every factor f of branchAugmentedScope S e I P b has scope cardinality at most max w 1.

2. Per-branch and uniform Lemma 4.7 + Lemma 4.8 ReplacementDesign existence #

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.Feasible.exists_branch_replacementDesign {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] {β b₀ w : ℕ} (F I : Finset κ) (P : κ → Finset (Finset ι)) (hIF : I ⊆ F) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) ≃ Fin n') (b : ι → Bool) (hw : ∀ i ∈ I, (BitString.equationScope (P i)).card ≤ w) (hF : Feasible β n' (b₀ + 1) (max w 1) (∑ f : ↥I ⊕ Fin n', (branchAugmentedScope (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) e I P b f).card)) :

Section 5.5 per-branch ReplacementDesign existence: Given S = heavyVars univ F (fun i => equationScope (P i)) b₀, I ⊆ F, e : ↥(univ \ S) ≃ Fin n', ∀ i ∈ I, #(equationScope (P i)) ≤ w, and hF : Feasible β n' (b₀ + 1) (max w 1) (∑ f, #(branchAugmentedScope S e I P b f)), there exists a concrete Section 4 ReplacementDesign for branchAugmentedScope S e I P b at the Lemma 4.8 parameter schedule (numNodes n', numGroups n', intervalStart β n', rowBound β n', tauRat n').

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.exists_branch_schedule_replacementDesign {β : ℕ} (hβ : 1 ≤ β) :
∃ (n₀ : ℕ), 20 ≤ n₀ ∧ ∀ {ι : Type u_3} {κ : Type u_4} [inst : Fintype ι] [inst_1 : DecidableEq ι] ⦃n' b₀ w : ℕ⦄ (F I : Finset κ) (P : κ → Finset (Finset ι)), I ⊆ F → ∀ (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) ≃ Fin n'), n₀ ≤ n' → b₀ + 1 ≤ Nat.clog 2 n' ^ β → max w 1 ≤ Nat.clog 2 n' ^ β → (∀ i ∈ I, (BitString.equationScope (P i)).card ≤ w) → ∀ (b : ι → Bool), Feasible β n' (b₀ + 1) (max w 1) (∑ f : ↥I ⊕ Fin n', (branchAugmentedScope (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) e I P b f).card) ∧ Nonempty (LinearAlgebra.ReplacementDesign (branchAugmentedScope (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) e I P b) (numNodes n') (numGroups n') (intervalStart β n') (rowBound β n') (tauRat n'))

Uniform Section 5.5 Theorem 2.2 per-branch schedule feasibility and design existence: For every integer 1 ≤ β, there exists n₀ ≥ 20 such that whenever the free-variable count n' after removing S = heavyVars univ F (fun i => equationScope (P i)) b₀ satisfies n₀ ≤ n', b₀ + 1 ≤ (Nat.clog 2 n') ^ β, max w 1 ≤ (Nat.clog 2 n') ^ β, I ⊆ F, and ∀ i ∈ I, #(equationScope (P i)) ≤ w, every branch assignment b : ι → Bool simultaneously satisfies Feasible and admits a concrete ReplacementDesign for branchAugmentedScope S e I P b (with all per-branch incidence bounds n' ≤ M'_b ≤ (b₀ + 1) * n' discharged automatically).

3. Section 5.5 per-branch and multi-branch domain-examination bounds #

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.branchDegreeBudget_le {n' k m c n : ℕ} (hm : m ≤ c * n) (hn : n ≤ 2 * n') :
k * (m + 2 * (BitString.branchPrecision n - 1)) ≤ k * (2 * c + 4) * n'

Section 5.3 & 5.5 ($d = k(m_{\mathrm{test}} + 2(\ell - 1)) \le k(2c + 4)n'$): when m ≤ c * n and n ≤ 2 * n', the equation-product degree budget k * (m + 2 * (branchPrecision n - 1)) at original precision branchPrecision n = n + 1 is at most (k * (2 * c + 4)) * n'.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.card_le_two_mul_freeVar_of_heavyVars {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (F : Finset κ) (scope : κ → Finset ι) {b₀ s_div : ℕ} (hs : 2 ≤ s_div) (hM : BitString.totalIncidence F scope * s_div ≤ b₀ * Fintype.card ι) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ F scope b₀) ≃ Fin n') :

Section 5.5 ($n \le 2n'$ from heavy-variable branching with $s \ge 2$): whenever 2 ≤ s_div, totalIncidence F scope * s_div ≤ b₀ * Fintype.card ι, and e : ↥(univ \ heavyVars univ F scope b₀) ≃ Fin n', the original variable count satisfies Fintype.card ι ≤ 2 * n' and Fintype.card ι / 2 ≤ n'.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.Feasible.branch_domainExaminationBound_le {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] {F_idx : Type u_3} [Fintype F_idx] {scope : F_idx → Finset (Fin n')} {β b_occ w_width M' k c : ℕ} (I : Finset κ) (hF : Feasible β n' b_occ w_width M') (D : LinearAlgebra.ReplacementDesign scope (numNodes n') (numGroups n') (intervalStart β n') (rowBound β n') (tauRat n')) (s : Finset F_idx) (hm : I.card ≤ c * Fintype.card ι) (hn : Fintype.card ι ≤ 2 * n') :
have d := k * (I.card + 2 * (BitString.branchPrecision (Fintype.card ι) - 1)); have q := d * rowBound β n' / numNodes n'; have C := hF.toCountingDesign D s; ∑ t : Fin (numNodes n'), ↑{p : Finset (Fin n') × Finset (Fin n') | p.1.card ≤ q ∧ p.2 ⊆ p.1}.card * (2 * ↑(C.measurementBox t).card * ∑ g : Fin (numGroups n'), ↑(Fintype.card (C.LocalCube t g))) ≤ 2 * ↑(numNodes n') * ↑(numGroups n') * Real.exp (↑(k * (2 * c + 4) + 4) * ↑n' * rowCost β n') ∧ 2 * ↑(numNodes n') * ↑(numGroups n') * Real.exp (↑(k * (2 * c + 4) + 4) * ↑n' * rowCost β n') ≤ 2 * ↑(numNodes n') * ↑(numGroups n') * Real.exp (↑(k * (2 * c + 4) + 4) * ↑n' * (1028 * (↑β + 3) * ↑(Nat.clog 2 (Nat.clog 2 n')) ^ 2 / √↑(Nat.clog 2 n')))

Section 5.5 single-branch domain-examination bound: For any branch b with hF : Feasible β n' b_occ w_width M' and concrete schedule design D, if #I ≤ c * Fintype.card ι and Fintype.card ι ≤ 2 * n', then at the Section 5.3 / 5.5 degree budget d = k * (#I + 2 * (branchPrecision (Fintype.card ι) - 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 (((k * (2 * c + 4) + 4 : ℕ) : ℝ) * n' * rowCost β n').

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.sum_branch_domainExaminationBound_le {ι : Type u_1} {κ : Type u_2} {n' : ℕ} [Fintype ι] [DecidableEq ι] (F : Finset κ) (P : κ → Finset (Finset ι)) {β b₀ s_div k c : ℕ} (hs_div : 2 ≤ s_div) (hM : (BitString.totalIncidence F fun (i : κ) => BitString.equationScope (P i)) * s_div ≤ b₀ * Fintype.card ι) (e : ↥(Finset.univ \ BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀) ≃ Fin n') (examSum : (ι → Bool) → ℝ) (hexam : ∀ b ∈ BitString.branchAssignments (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀), examSum b ≤ 2 * ↑(numNodes n') * ↑(numGroups n') * Real.exp (↑(k * (2 * c + 4) + 4) * ↑n' * rowCost β n')) :
Fintype.card ι ≤ 2 * n' ∧ ∑ b ∈ BitString.branchAssignments (BitString.heavyVars Finset.univ F (fun (i : κ) => BitString.equationScope (P i)) b₀), examSum b ≤ 2 ^ (Fintype.card ι / s_div) * (2 * ↑(numNodes n') * ↑(numGroups n') * Real.exp (↑(k * (2 * c + 4) + 4) * ↑n' * rowCost β n'))

Section 5.5 Theorem 2.2 multi-branch domain-examination bound across branchAssignments S: When S = heavyVars univ F (fun i => equationScope (P i)) b₀ with 2 ≤ s_div, totalIncidence F (fun i => equationScope (P i)) * s_div ≤ b₀ * Fintype.card ι, and e : ↥(univ \ S) ≃ Fin n', the free-variable dimension satisfies Fintype.card ι ≤ 2 * n', and for any function examSum : (ι → Bool) → ℝ whose value at every b ∈ branchAssignments S is at most the single-branch bound of Feasible.branch_domainExaminationBound_le, 2 * numNodes n' * numGroups n' * exp (((k * (2 * c + 4) + 4 : ℕ) : ℝ) * n' * rowCost β n'), the sum of examSum b over all b ∈ branchAssignments S is at most (2 : ℝ) ^ (Fintype.card ι / s_div) * (2 * numNodes n' * numGroups n' * exp (((k * (2 * c + 4) + 4 : ℕ) : ℝ) * n' * rowCost β n')). The factor 2 ^ (Fintype.card ι / s_div) bounds the number of branches by card_branchAssignments_heavyVars_le_two_pow_div.