Integer feasibility of a bounded set with a strict separation oracle in time (C(n+1))^{C(n+1)}·poly, with lattice subroutines as oracle calls
ProvedIntConeFPT.int_feasibility_lattice_oraclecomputational-complexityconvex-geometryinteger-conesinteger-programminglattices
There are a constant and an oracle machine OM such that for every context word, every and every set contained in the box , given a separation routine sep at integer points (sepnone implies ; sep implies for all ; cut entries have height at most ), and any oracle that answers (a) framed separation queries with sep's answers and (b) lattice queries — an HKZ- and size-reduced unimodular basis for a positive definite rational Gram form, resp. the exact list of integer tails of an HKZ basis within radius — OM decides integer feasibility of : it outputs an integer point of , or reports that , within steps, all queries having length at most . Lattice queries and answers use the formats of IntConeFPT.kannan_lattice_machine.
Preamble
import Mathlib import Definitions.Def_OnlineCRS_Combine_Sym import Definitions.Def_OnlineCRS_Combine_bit import Definitions.Def_IntConeFPT_Machine import Definitions.Def_IntConeFPT_OracleMachine 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
Formal statement
namespace IntConeFPT
theorem int_feasibility_lattice_oracle :
∃ (C : ℕ) (OM : OracleMachine), ∀ (ctx : List Sym) (n ρ σ : ℕ) (K : Set (Fin n → ℝ))
(sep : (Fin n → ℤ) → Option (Fin n → ℚ)),
let sw : List Bool → List Sym := fun u => u.map bit
let frm : List Sym → List Sym → List Sym := fun x y => x.flatMap (fun s => [0, s]) ++ 1 :: y
let qW : List ℤ → List Sym := fun y => sw (encList encIntBin y)
let aW : Option (List ℚ) → List Sym := fun a => 0 :: sw (encOption (encList Encoding.encRat) a)
let B : ℕ := (C * (n + 1)) ^ (C * (n + 1)) * (Nat.log 2 (ρ + 2) + σ + 2) ^ C
-- lattice query/answer words (as in child D2)
let encL := encPair encUnary (encPair (encPair (encList (encList Encoding.encRat))
(encList (encList encIntBin))) (encPair (encList Encoding.encRat) (encPair encUnary Encoding.encRat)))
let rowsQ : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → List (List ℚ) := fun k G =>
List.ofFn fun a => List.ofFn (G a)
let rowsZ : (k : ℕ) → (Fin k → Fin k → ℤ) → List (List ℤ) := fun k b =>
List.ofFn fun a => List.ofFn (b a)
let hkzW : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → (Fin k → Fin k → ℤ) → List Sym := fun k G bZ =>
sw (encL (0, ((rowsQ k G, rowsZ k bZ), ([], (0, 0)))))
let enumW : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → (Fin k → Fin k → ℤ) → (Fin k → ℚ) → ℕ → ℚ →
List Sym := fun k G bZ p i R2 =>
sw (encL (1, ((rowsQ k G, rowsZ k bZ), (List.ofFn p, (i, R2)))))
let ans : List (List ℤ) → List Sym := fun L => sw (encList (encList encIntBin) L)
-- quadratic form, projected squared lengths `‖π_i v‖²` w.r.t. a basis, HKZ, size reduction
let Qi : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → (Fin k → Fin k → ℤ) → ℕ → (Fin k → ℝ) → ℝ :=
fun k G b i v => ⨅ t : {t : Fin k → ℝ // ∀ j : Fin k, i ≤ j.val → t j = 0},
(fun u : Fin k → ℝ => ∑ a, ∑ c, u a * (G a c : ℝ) * u c)
(v - ∑ j, t.1 j • fun s => (b j s : ℝ))
let vec : (k : ℕ) → (Fin k → Fin k → ℤ) → (Fin k → ℤ) → (Fin k → ℝ) := fun k b c s =>
∑ j, (c j : ℝ) * (b j s : ℝ)
let row : (k : ℕ) → (Fin k → Fin k → ℤ) → Fin k → (Fin k → ℝ) := fun k b j s => (b j s : ℝ)
let IsHKZ : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → (Fin k → Fin k → ℤ) → Prop := fun k G b =>
∀ (i : Fin k) (c : Fin k → ℤ), Qi k G b i (vec k b c) ≠ 0 →
Qi k G b i (row k b i) ≤ Qi k G b i (vec k b c)
let IsSizeRed : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → (Fin k → Fin k → ℤ) → Prop := fun k G b =>
∀ (i j : Fin k), j < i → ∀ m : ℤ,
Qi k G b j (row k b i) ≤ Qi k G b j (row k b i + (m : ℝ) • row k b j)
let EnumPre : (k : ℕ) → Matrix (Fin k) (Fin k) ℚ → (Fin k → Fin k → ℤ) → ℕ → ℚ → Prop :=
fun k G bZ i R2 => IsHKZ k G bZ ∧ i ≤ k ∧
∃ t : Fin k, t.val ≤ i ∧ (R2 : ℝ) ≤ 4 * (k : ℝ) ^ 4 * Qi k G bZ t (row k bZ t)
-- hypotheses on `K` and `sep`
(∀ (y : Fin n → ℤ) (c : Fin n → ℚ), sep y = some c → ∀ i,
|(c i).num| ≤ ((2 ^ σ : ℕ) : ℤ) ∧ (c i).den ≤ 2 ^ σ) →
(∀ y : Fin n → ℤ, (sep y = none → (fun i => (y i : ℝ)) ∈ K) ∧
∀ c, sep y = some c → ∀ x ∈ K, ∑ i, (c i : ℝ) * x i < ∑ i, (c i : ℝ) * (y i : ℝ)) →
(∀ v ∈ K, ∀ i, |v i| ≤ ρ) →
∀ O : List Sym → List Sym,
(∀ y : List ℤ, O (frm ctx (qW y)) = aW ((sep (fun i => y.getD i 0)).map List.ofFn)) →
(∀ (k : ℕ) (G : Matrix (Fin k) (Fin k) ℚ) (bZ : Fin k → Fin k → ℤ),
G.PosDef → IsUnit (Matrix.of bZ).det →
(∃ b' : Fin k → Fin k → ℤ,
(∃ U : Matrix (Fin k) (Fin k) ℤ, IsUnit U.det ∧ Matrix.of b' = U * Matrix.of bZ) ∧
IsHKZ k G b' ∧ IsSizeRed k G b' ∧ O (3 :: hkzW k G bZ) = ans (rowsZ k b')) ∧
∀ (p : Fin k → ℚ) (i : ℕ) (R2 : ℚ), EnumPre k G bZ i R2 →
∃ L : List (Fin k → ℤ), L.Nodup ∧
(∀ c : Fin k → ℤ, c ∈ L ↔ ((∀ j : Fin k, j.val < i → c j = 0) ∧
Qi k G bZ i (vec k bZ c - fun s => (p s : ℝ)) ≤ (R2 : ℝ))) ∧
O (3 :: enumW k G bZ p i R2) = ans (L.map List.ofFn)) →
∃ out : List Sym,
ORunsWithin OM O
(fun q => (∃ y : List ℤ, q = frm ctx (qW y) ∧ (qW y).length ≤ B) ∨
(∃ w : List Sym, q = 3 :: w ∧ w.length ≤ B ∧
∃ (k : ℕ) (G : Matrix (Fin k) (Fin k) ℚ) (bZ : Fin k → Fin k → ℤ),
k ≤ n ∧ G.PosDef ∧ IsUnit (Matrix.of bZ).det ∧
(w = hkzW k G bZ ∨ ∃ (p : Fin k → ℚ) (i : ℕ) (R2 : ℚ),
EnumPre k G bZ i R2 ∧ w = enumW k G bZ p i R2)))
(frm ctx (sw (encPair encUnary encNat (n, ρ)))) (frm ctx out)
((ctx.length + 1) ^ C * B) ∧
((∃ y : Fin n → ℤ, out = 1 :: qW (List.ofFn y) ∧ (fun i => (y i : ℝ)) ∈ K) ∨
(out = [0] ∧ ∀ x : Fin n → ℤ, (fun i => (x i : ℝ)) ∉ K)) := by sorry
end IntConeFPTSource
H. W. Lenstra Jr., Integer programming with a fixed number of variables, Math. Oper. Res. 8 (1983); R. Kannan, Minkowski's convex body theorem and integer programming, Math. Oper. Res. 12 (1987); used in Jansen–Ohnesorge–Schumacher, arXiv:2609.31328, Lemma 13 (cf. Dadush 2012)