defOutcome {k : ℕ} (F : Formula) (count : ListBool) (z : ℕ→ℕ) (b : Data k) : Prop:=
body · 6
lines
(b.stacks (low k 21) = [] ∧∀ j, 2≤ j → j ≤ k →ExecCNFWidthCorrectness.FreeF z j) ∨
(b.stacks (low k 21) ≠ [] ∧∃d : ExecCNFWidthDriver.Width k,
ExecCNFWidthCorrectness.AcceptedF count z d b ∧InsertionInvariant.MinimumWidth z (ExecCNF.formulaSet F)
(ExecCNFWidthDriver.dimension d))
An actual finite execution either excludes every searched width or
returns a retained accepted witness at a minimum width. There is no supplied
formula count or index-word width premise.
theoremcommand_correct (k : ℕ) (F : Formula) (z : ℕ→ℕ) (a : Data k)
(ha : FreshF a) (hF : ExecCNFWidthCorrectness.NormalizedF k)
(hz : ∀ j, 2≤ j → j ≤ k →0 < z j) (hb : BankValues z a) :
∃ count width, CounterPrograms.value count = F.length ∧CounterPrograms.value width = DyadicWidth.width F.length ∧
count.length ≤F.length ∧ width.length ≤F.length + 1∧∃ (ns nt : ℕ) (b : Data k), ns ≤ setupBound F∧Eval (command k) (ns + nt + 1) a b ∧
b.stacks (low k 16) = CandidatePrepareProgram.formulaCode F∧
b.stacks (low k 19) = count ∧ b.stacks (low k 20) = width ∧Frame k a b ∧OutcomeF count z b :=by
proof · 7
lines
obtain ⟨count, width, hc, hw, hcl, hwl, ns, nt, visited, b,
hns, he, hv, _, _, h16, h19, h20, hf⟩ :=ExecCNFNodeSearch.command_eval k F a ha
refine ⟨count, width, hc, hw, hcl, hwl, ns, nt, b,
hns, he, h16, h19, h20, hf, ?_⟩
exact ExecCNFWidthCorrectness.driver_result hv F count z hz hF
(prepared_ready F a ha count width) (prepared_numericFrame F z a count width hc hw hb)