Lemma 13, problem side: box bound, strict separation oracle for the projected region and lifting machines
ProvedIntConeFPT.lemma13_khat_oracleFor valid instances there are a constant , machines Pre, Psep, Plift and a number (with and ) such that for every , candidate tuple and budget , with and the integer variables of laid out as an explicit vector in : (i) every point of lies in the box , ; (ii) Pre maps the Lemma 13 input word to a framed context word carrying in time ; (iii) there is a strict separation oracle at integer points: it either certifies or returns a rational with for all , with all cut entries of height at most , ; Psep computes it on framed query words in time ; (iv) Plift outputs the encoding of "none", and for every integer point it outputs a lift with the same , in time . Together with a generic integer-feasibility oracle machine this yields Lemma 13.
import Mathlib import Definitions.Def_OnlineCRS_Combine_Sym import Definitions.Def_OnlineCRS_Combine_bit import Definitions.Def_OnlineCRS_Combine_encNat import Definitions.Def_OnlineCRS_Combine_encRat import Definitions.Def_IntConeFPT_Machine import Definitions.Def_IntConeFPT_Instance import Definitions.Def_IntConeFPT_Problem import Definitions.Def_IntConeFPT_Residue import Definitions.Def_IntConeFPT_Formulation import Definitions.Def_BuhaiPapers_Background_Encoding import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Encodings_List import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Encodings_IntBinary import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Encodings_Option import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Encodings_Pair import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Encodings_Unary import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_Encodings_Nat_Bits open OnlineCRS.Combine Turing.MultiTapeTM
namespace IntConeFPT
theorem lemma13_khat_oracle :
∃ (C : ℕ) (Pre Psep Plift : Machine), ∀ I : Instance, I.Valid →
∃ Mb : ℕ, 1 ≤ Mb ∧ (OnlineCRS.Combine.encNat Mb).length ≤ (encInstance I).length ^ C ∧
∀ (Nmax : ℕ) (R : Cand I), IsCandidate I R → ∀ γ : ℚ,
let inp := encInstance I ++ OnlineCRS.Combine.encNat Nmax ++ [3] ++ encCand R ++
OnlineCRS.Combine.encRat γ ++ [3]
let frm : List Sym → List Sym → List Sym := fun x y => x.flatMap (fun s => [0, s]) ++ 1 :: y
let sw : List Bool → List Sym := fun u => u.map bit
let ctx := frm inp (OnlineCRS.Combine.encNat Mb)
let ρ : ℕ := max 1 (Nmax * Mb)
let nb : ℕ := ∑ t, (R t).length
let n : ℕ := nb * (I.d + 1)
-- engine layout: block `⟨t, i⟩`, slot `j : Fin (d+1)` (slots `< d`: `z_j`, slot `d`: `n`)
let e : (Σ t : Fin I.τ, Fin (R t).length) × Fin (I.d + 1) ≃ Fin n :=
(Equiv.prodCongr finSigmaFinEquiv (Equiv.refl _)).trans finProdFinEquiv
let blk : (Fin n → ℝ) → (t : Fin I.τ) → Fin (R t).length → (Fin I.d → ℝ) × ℝ :=
fun x t i => (fun j => x (e (⟨t, i⟩, Fin.castSucc j)), x (e (⟨t, i⟩, Fin.last I.d)))
let S : ℕ := (inp.length + n * (Nat.size ρ + 2) + 2) ^ C
let T : List Sym → ℝ := fun w => (2 : ℝ) ^ (C * I.d ^ 3) * ((w.length : ℝ) + 2) ^ C
-- box
(∀ zn ∈ Khat I R Nmax γ, ∀ t i, 0 ≤ (zn t i).2 ∧ (zn t i).2 ≤ (ρ : ℝ) ∧
∀ j, |(zn t i).1 j| ≤ (ρ : ℝ)) ∧
-- pre-processing
RunsWithin Pre inp (frm ctx (sw (encPair encUnary encNat (n, ρ))))
(((inp.length : ℝ) + 2) ^ C) ∧
∃ sep : (Fin n → ℤ) → Option (Fin n → ℚ),
-- strict separation at integer points
(∀ y : Fin n → ℤ, sep y = none → blk (fun l => (y l : ℝ)) ∈ Khat I R Nmax γ) ∧
(∀ (y : Fin n → ℤ) (c : Fin n → ℚ), sep y = some c → ∀ x : Fin n → ℝ,
blk x ∈ Khat I R Nmax γ → ∑ l, (c l : ℝ) * x l < ∑ l, (c l : ℝ) * (y l : ℝ)) ∧
-- cut heights
(∀ (y : Fin n → ℤ) (c : Fin n → ℚ), sep y = some c → ∀ l,
|(c l).num| ≤ ((2 ^ S : ℕ) : ℤ) ∧ (c l).den ≤ 2 ^ S) ∧
-- the separation machine (query word = engine query framed by the context)
(∀ y : List ℤ,
RunsWithin Psep (frm ctx (sw (encList encIntBin y)))
(0 :: sw (encOption (encList Encoding.encRat)
((sep (fun l => y.getD l 0)).map List.ofFn)))
(T (frm ctx (sw (encList encIntBin y))))) ∧
-- the lift machine
RunsWithin Plift (frm ctx [0]) (encLift (R := R) none) (T (frm ctx [0])) ∧
∀ y : Fin n → ℤ, blk (fun l => (y l : ℝ)) ∈ Khat I R Nmax γ →
∃ s : (t : Fin I.τ) → Fin (R t).length → (Fin I.d → ℤ) × (Fin I.k → ℚ) × ℕ,
(∀ t i, (∀ j, (s t i).1 j = y (e (⟨t, i⟩, Fin.castSucc j))) ∧
((s t i).2.2 : ℤ) = y (e (⟨t, i⟩, Fin.last I.d))) ∧
(fun t i => ((fun j => ((s t i).1 j : ℝ)), (fun j => ((s t i).2.1 j : ℝ)),
((s t i).2.2 : ℝ))) ∈ K I R Nmax γ ∧
RunsWithin Plift (frm ctx (1 :: sw (encList encIntBin (List.ofFn y))))
(encLift (R := R) (some s)) (T (frm ctx (1 :: sw (encList encIntBin (List.ofFn y))))) := by sorry
end IntConeFPT