Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.NamedValue

Values of formulas with named constants #

Interpreter.KV θ κ S F x w c says four things:

The rules follow the formulas, as for Interpreter.Does but with named constants.

From VP ≠ VNP over every field [Ant26], module Nc.Acc.CompK.

Main definitions #

Main results #

def Cslib.Circuits.Arithmetic.Separation.Interpreter.KV {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] (θ : List Bool → A) (κ : List Bool → R) (S : Set (List Bool)) (F : Fm) (x : Tree) (w : R) (c : ℕ) :

The value of a formula.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.wt_mul {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] (κ : List Bool → R) {r s u : Run A} (h1 : u.th = r.th * s.th) (h2 : u.bill = r.bill ++ s.bill) :
wt κ u = wt κ r * wt κ s
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.mono {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {w : R} {c d : ℕ} (h : KV θ κ S F x w c) (hc : c ≤ d) :
KV θ κ S F x w d
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.congr {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {w w' : R} {c : ℕ} (h : KV θ κ S F x w c) (hw : w = w') :
KV θ κ S F x w' c
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.hl {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {w : R} {c : ℕ} (h : KV θ κ S F x w c) :
Hl θ F x
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.evl {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {w : R} {c : ℕ} (h : KV θ κ S F x w c) :
(∀ r ∈ Interpreter.evl θ F x, r.cost ≤ c ∧ ∀ p ∈ r.bill, p ∈ S) ∧ val κ (Interpreter.evl θ F x) = w
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.of_does {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {c : ℕ} {Q : List (A × Tree)} (h : Does θ F x Q c) :
KV θ κ S F x ((algebraMap A R) (List.map Prod.fst Q).sum) c
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.of_gives {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {c : ℕ} {o : Tree} (h : Gives θ F x o c) :
KV θ κ S F x 1 c
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.fail {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} (x : Tree) :
KV θ κ S Fm.fail x 0 0
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.mul {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {c : ℕ} {o : Tree} (h : Gives θ F x o c) (ho : o.path ∈ S) :
KV θ κ S F.mul x (κ o.path) (c + 1)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.cons {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F G : Fm} {x : Tree} {w w' : R} {c d : ℕ} (hF : KV θ κ S F x w c) (hG : KV θ κ S G x w' d) :
KV θ κ S (F.cons G) x (w * w') (c + d + 1)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.ite_true {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F G H : Fm} {x : Tree} {w : R} {c d : ℕ} {o : Tree} (hF : Gives θ F x o c) (ho : o ≠ Tree.nil) (hG : KV θ κ S G x w d) :
KV θ κ S (F.ite G H) x w (c + d + 1)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.ite_false {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F G H : Fm} {x : Tree} {w : R} {c d : ℕ} (hF : Gives θ F x Tree.nil c) (hH : KV θ κ S H x w d) :
KV θ κ S (F.ite G H) x w (c + d + 1)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.either {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {G H : Fm} {x : Tree} {w w' : R} {c d : ℕ} (hG : KV θ κ S G x w c) (hH : KV θ κ S H x w' d) :
KV θ κ S (Fm.guess.ite G H) x (w + w') (max c d + 2)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.app {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {c d : ℕ} {p : Tree} {Q : List (A × Tree)} {ω : Tree → R} (hF : Does θ F x Q c) (hG : ∀ q ∈ Q, KV θ κ S (Fm.ofTree p) q.2 (ω q.2) d) :
KV θ κ S (Interpreter.app p F) x (List.map (fun (q : A × Tree) => (algebraMap A R) q.1 * ω q.2) Q).sum (c + d + 2)

A plain computation, then a value.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.lett {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F G : Fm} {x : Tree} {c d : ℕ} {Q : List (A × Tree)} {ω : Tree → R} (hF : Does θ F x Q c) (hG : ∀ q ∈ Q, KV θ κ S G q.2 (ω q.2) d) :
KV θ κ S (Interpreter.lett F G) x (List.map (fun (q : A × Tree) => (algebraMap A R) q.1 * ω q.2) Q).sum (c + d + 2)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.app_gives {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F : Fm} {x : Tree} {w : R} {c d : ℕ} {p o : Tree} (hF : Gives θ F x o c) (hG : KV θ κ S (Fm.ofTree p) o w d) :
KV θ κ S (Interpreter.app p F) x w (c + d + 2)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.KV.run {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {S : Set (List Bool)} {F G : Fm} {x : Tree} {w : R} {c d : ℕ} {p y : Tree} {e : ℕ} (hF : Gives θ F x p c) (hG : Gives θ G x y d) (h : KV θ κ S (Fm.ofTree p) y w e) :
KV θ κ S (F.run G) x w (c + d + e + 1)

Apply a program that is the value of a formula.