Values of formulas with named constants #
Interpreter.KV θ κ S F x w c says four things:
- all runs of the formula
Fatxstop; - the accepting runs have cost at most
c; - they use only names of constants in
S; - with the constants
κ, the sum of their weights isw.
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 #
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) :
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) :
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) :
Apply a program that is the value of a formula.