Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.Util

Words of trees, tests and prefixes of lists #

The brackets of a tree in preorder (Interpreter.wordT, computed by Interpreter.wordF, and as bits Interpreter.tbits), the test whether a binary number is nonzero (Interpreter.nzB), and the program Interpreter.takeB that splits off a prefix of a list whose length is a binary number.

From VP ≠ VNP over every field [Ant26], module NS1.Util.

Main definitions #

Main results #

The brackets of a tree, in preorder; t0: empty, t1: a node.

The brackets of a tree, in preorder: 0 = empty, 1 = a node.

The brackets of a tree with the letters t false and t true are the letters of its bits.

Write the brackets of a tree in front of a list. The argument is (this program, (tree, list)).

The brackets of a tree.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.wordB_gives {A : Type} [CommRing A] {θ : List Bool → A} (t0 t1 z : Tree) (acc : List Tree) :
Gives θ (wordB t0 t1) ((wordB t0 t1).code.cons (z.cons (listT acc))) (listT (wordT t0 t1 z ++ acc)) (60 * z.size)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.wordF_gives {A : Type} [CommRing A] {θ : List Bool → A} {t0 t1 : Tree} {zf : Fm} {x z : Tree} {cz : ℕ} (hz : Gives θ zf x z cz) :
Gives θ (wordF t0 t1 zf) x (listT (wordT t0 t1 z)) (cz + 60 * z.size + 10)

Is a number not 0? The argument is (this program, number).

Take elements from a list, as many as a binary number says. The argument is (this program, (number, (elements taken, in reversed order, list))); the value is (elements taken, rest).