cfahlgren1's picture
cfahlgren1 HF Staff
mirror at 11b6c7e3c927df2658f513b6b68ea7f8929c62c5
e639140 verified
Raw History Blame Contribute Delete
9.78 kB

The assignment a satisfies the formula ψ (a literal (v, b) holds if a v = b).

53
def Holds (a : ℕ → Bool) (ψ : Fml) : Prop := ∀ C ∈ ψ, ∃ t ∈ C, a t.1 = t.2

**«no two of which share a satisfying assignment, so that their numbers of satisfying assignments add up»** (to the number of the given formula), for EVERY formula ψ and EVERY list L of formulas, counted on n variables: if no assignment (of all the variables x₀, x₁, …) satisfies two formulas at different places of L, and an assignment satisfies ψ exactly if it satisfies some formula of L, then the number of satisfying assignments of ψ is the sum of those of the formulas of L.

63
def StAddUp : Prop := ∀ (n : ℕ) (ψ : Fml) (L : List Fml), (L.Pairwise fun y z => ∀ a : ℕ → Bool, ¬(Holds a y ∧ Holds a z)) → (∀ a : ℕ → Bool, Holds a ψ ↔ ∃ y ∈ L, Holds a y) →
body · 1 line
  cntN n ψ = (L.map fun y => cntN n y).sum

An assignment satisfies a node of the counting tree exactly if it satisfies some leaf below it, at every depth of the cut.

68
def StCovered : Prop := ∀ (θ : ℕ → ℕ) (k d : ℕ) (x : CNode) (a : ℕ → Bool), Holds a (leafF x) ↔ ∃ y ∈ leaves (stepC θ k) d x, Holds a (leafF y)

The formula at the root (with the empty side list) has the satisfying assignments of the given formula.

72
def StRootSame : Prop := ∀ (u : List Unit) (ψ : Fml) (a : ℕ → Bool), Holds a (leafF (rootPlain (u, ψ)).2) ↔ Holds a ψ

The numbers of the leaves add up to that of the given formula, for all thresholds, every width and every depth of the cut. It is proved in this development from SplitCount.StDisjointLeaves, StCovered, StRootSame and StAddUp.

77
def StTreeAddsUp : Prop := ∀ (θ : ℕ → ℕ) (k d n : ℕ) (ψ : Fml),
body · 1 line
  cntN n ψ = ((leaves (stepPlain (stepC θ k)) d (rootPlain (List.replicate n (), ψ))).map fun x => cntN n (leafF x.2)).sum

The same for one step of the tree: it is the statement CountKSat.StStepCount of proof/consequences/CountKSat/. It is proved in this development from SplitCount.StDisjoint and StAddUp (the list of the two children), and handed to CountKSat.stProgC, which has it as a hypothesis, in the place of proof/consequences/CountKSat/'s own proof.

84
abbrev StStepAdds : Prop := CountKSat.StStepCount

SplitCount.SparsifiesPlain WITHOUT the sum: the bounds on the tree alone. ψ has variables below n and nonempty clauses of at most k literals. The tree of depth Dd·n has at most 2^{εn} leaves. The formula of a leaf has at most Bl·n clauses of at most max k 2 literals, on the same variables. The stack of the walk never holds more than Dd·n + 1 nodes, each with at most (|ψ| + n)·Sk clauses.

91
def BoundsPlain (k : ℕ) (ε : ℝ) (step : CNode → Option (CNode × CNode)) (Dd Bl Sk : ℕ) : Prop :=
body · 7 lines
  ∀ (n : ℕ) (ψ : Fml), (∀ C ∈ ψ, C ≠ [] ∧ C.length ≤ k ∧ ∀ l ∈ C, l.1 < n) →
    ((leaves (stepPlain step) (Dd * n) (rootPlain (List.replicate n (), ψ))).length : ℝ) ≤ (2 : ℝ) ^ (ε * n) ∧
    (∀ x ∈ leaves (stepPlain step) (Dd * n) (rootPlain (List.replicate n (), ψ)), stepPlain step x = none ∧ x.1 = List.replicate n () ∧ (leafF x.2).length ≤ Bl * n ∧
      ∀ C ∈ leafF x.2, C.length ≤ max k 2 ∧ ∀ l ∈ C, l.1 < n) ∧
    ∀ i, ((round (stepPlain step))^[i] ([rootPlain (List.replicate n (), ψ)], [])).1.length ≤ Dd * n + 1 ∧
      ∀ x ∈ ((round (stepPlain step))^[i] ([rootPlain (List.replicate n (), ψ)], [])).1, x.1 = List.replicate n () ∧ (leafF x.2).length ≤ (ψ.length + n) * Sk ∧
        ∀ C ∈ leafF x.2, C.length ≤ max k 2 ∧ ∀ l ∈ C, l.1 < n

The sparsification part of the proof of Corollary 6 without the sum: for every k and ε > 0 some threshold parameter τ gives the bounds. It is proved in this development from CountKSat.stProgC, which is handed StStepAdds.

103
def StBounds : Prop := ∀ (k : ℕ) (ε : ℝ), 0 < ε → ∃ τ Dd Bl Sk : ℕ, BoundsPlain k ε (stepC (WidthK.theta τ) k) Dd Bl Sk

The end theorem of proof/consequences/SplitCount/, along this route: the last steps of proof/consequences/SplitCount/ are repeated with the sparsification part (SplitCount.StStepTwo) as a hypothesis, and the end theorem is SplitCount.endFrom applied to the result.

108
abbrev CountingAgain : Prop := SplitCount.ThreeSatStatement

«Theorem 2 gives s_3 = 0», for machines cut into steps: there is a family of procedures for 3-SAT, one for each exponent δ₃ > 0, each with polynomial-time steps, and each member is the machine of Theorem 2 in its decision form without its reader at some level ℓ and threshold parameter τ. It is proved in this development from SplitSat.stCore3.

116
def StThreeSatFamily : Prop := ∃ Ds : ℝ → StepMachine (List Unit × Fml) Bool, Sat3SubexpBy Ds ∧ ∀ δ₃ : ℝ, 0 < δ₃ → ∃ ℓ τ : ℕ, Ds δ₃ = core3 ℓ τ

k-SAT on Turing machines from ANY family of procedures for 3-SAT, through the implication. For EVERY family Ds with Sat3SubexpBy Ds, every k ≥ 3 and δ > 0 there are τ and δ₃ > 0 such that (1) REDUCE k τ (Ds δ₃) ITSELF has polynomial-time steps and decides k-SAT with the exponent δ; (2) a Turing machine with finite alphabets simulates it with polynomial overhead; (3) that Turing machine decides k-SAT within ⌊c·2^{δn}⌋ steps. It is proved in this development from SplitSat.StImplication.

124
def StHosted : Prop := ∀ Ds : ℝ → StepMachine (List Unit × Fml) Bool, Sat3SubexpBy Ds → ∀ (k : ℕ), 3 ≤ k → ∀ δ : ℝ, 0 < δ →
body · 2 lines
  ∃ (τ : ℕ) (δ₃ : ℝ) (M : Turing.TM2ComputableAux Bool Bool) (c q : ℕ), 0 < δ₃ ∧ (∀ i, Finite (M.tm.Γ i)) ∧
    PolyTimeSteps (REDUCE k τ (Ds δ₃)) ∧ Decides (REDUCE k τ (Ds δ₃)) k δ c ∧ Simulates M (REDUCE k τ (Ds δ₃)) q ∧ SatK.DecidesTM k M fun n => ⌊(c : ℝ) * (2 : ℝ) ^ (δ * n)⌋₊

The end theorem of proof/consequences/SplitSat/, in the order of the print, proved in this development from StThreeSatFamily, StHosted and SplitSat.StTiedThreeTM: s_3 = 0 from StTiedThreeTM; for k > 3, the family of StThreeSatFamily is handed to StHosted.

131
abbrev EthAndSethAgain : Prop := SplitSat.ThreeSatStatement

Theorem C in the wording of PaperSentencesStatement.lean with the paper's exponent α/10, α = 1/2: #3-SAT on n ≥ 2 variables in time 2^{O(n/(log n)^{1/20})}. It is proved in this development as ThmCount.stTheorem applied to the proof of Theorem D(b) (RecursionWithPieces.Forms.thmVariablesB). This is NOT the route of the printed sketch of Appendix C.

140
abbrev CountRateFromBoundInN : Prop := PaperSentences.CountRate (1 / 20)