Download proof/consequences/PrintedOrder/Defs.lean from cfahlgren1/lean-anthropic-eth: direct link, hf CLI and curl.
- Browser
- Download file 9.78 kB
-
https://huggingface.co/datasets/cfahlgren1/lean-anthropic-eth/resolve/main/proof/consequences/PrintedOrder/Defs.lean
- Command line
-
hf download hf://datasets/cfahlgren1/lean-anthropic-eth/proof/consequences/PrintedOrder/Defs.lean
-
curl -L -o Defs.lean https://huggingface.co/datasets/cfahlgren1/lean-anthropic-eth/resolve/main/proof/consequences/PrintedOrder/Defs.lean
53The assignment a satisfies the formula ψ (a literal (v, b) holds if a v = b).
def Holds (a : ℕ → Bool) (ψ : Fml) : Prop := ∀ C ∈ ψ, ∃ t ∈ C, a t.1 = t.2 63**«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.
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).sum68An assignment satisfies a node of the counting tree exactly if it satisfies some leaf below it, at every depth of the cut.
def StCovered : Prop := ∀ (θ : ℕ → ℕ) (k d : ℕ) (x : CNode) (a : ℕ → Bool), Holds a (leafF x) ↔ ∃ y ∈ leaves (stepC θ k) d x, Holds a (leafF y) 72The formula at the root (with the empty side list) has the satisfying assignments of the given formula.
def StRootSame : Prop := ∀ (u : List Unit) (ψ : Fml) (a : ℕ → Bool), Holds a (leafF (rootPlain (u, ψ)).2) ↔ Holds a ψ 77The 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,StRootSameandStAddUp.
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)).sum84The same for one step of the tree: it is the statement
CountKSat.StStepCountof proof/consequences/CountKSat/. It is proved in this development fromSplitCount.StDisjointandStAddUp(the list of the two children), and handed toCountKSat.stProgC, which has it as a hypothesis, in the place of proof/consequences/CountKSat/'s own proof.
abbrev StStepAdds : Prop := CountKSat.StStepCount 91
SplitCount.SparsifiesPlainWITHOUT 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.
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 < n103The 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 handedStStepAdds.
def StBounds : Prop := ∀ (k : ℕ) (ε : ℝ), 0 < ε → ∃ τ Dd Bl Sk : ℕ, BoundsPlain k ε (stepC (WidthK.theta τ) k) Dd Bl Sk 108The 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 isSplitCount.endFromapplied to the result.
abbrev CountingAgain : Prop := SplitCount.ThreeSatStatement 116«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.
def StThreeSatFamily : Prop := ∃ Ds : ℝ → StepMachine (List Unit × Fml) Bool, Sat3SubexpBy Ds ∧ ∀ δ₃ : ℝ, 0 < δ₃ → ∃ ℓ τ : ℕ, Ds δ₃ = core3 ℓ τ 124k-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 fromSplitSat.StImplication.
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)⌋₊131The end theorem of proof/consequences/SplitSat/, in the order of the print, proved in this development from
StThreeSatFamily,StHostedandSplitSat.StTiedThreeTM: s_3 = 0 fromStTiedThreeTM; for k > 3, the family ofStThreeSatFamilyis handed toStHosted.
abbrev EthAndSethAgain : Prop := SplitSat.ThreeSatStatement 140Theorem 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.stTheoremapplied to the proof of Theorem D(b) (RecursionWithPieces.Forms.thmVariablesB). This is NOT the route of the printed sketch of Appendix C.
abbrev CountRateFromBoundInN : Prop := PaperSentences.CountRate (1 / 20) Outline