Documentation

Complexity.Computability.Circuit.Rational.MatrixEval

Exact matrix evaluation and consequences of hitting lists #

These deductions use OpenAI's rational-formula semantics. Inverse is partial: every evaluated inverse node must have a genuine two-sided inverse.

A hitting list detects nonzeroness by an invertible value. With two extra syntax nodes in the node-count bound, it also detects admissibility, including for identically zero formulas: at a defined point, either f or f + 1 is nonzero. The executable tests here have correctness proofs; no polynomial bound for their rational arithmetic is asserted.

Main results #

References #

The executable evaluator returns exactly the values admitted by the evaluation relation.

A nonzero evaluation already supplies a point in the formula's domain.

theorem Cslib.Circuits.Rational.Hits.nonzero_iff {n s : ℕ} {H : Output n} (hH : Hits s H) (f : Formula n) (hf : f.nodeCount ≤ s) :
Nonzero f ↔ ∃ X ∈ H.tuples, ∃ (v : Mat H.dimension), Evaluates f X v ∧ IsUnit v

Positive dimension makes an invertible hitting value a nonzero witness.

At any defined point, either the value of f or the value of f + 1 is nonzero.

theorem Cslib.Circuits.Rational.Hits.admissible_iff {n s : ℕ} {H : Output n} (hH : Hits (s + 2) H) (f : Formula n) (hf : f.nodeCount ≤ s) :
Admissible f ↔ ∃ X ∈ H.tuples, ∃ (v : Mat H.dimension), Evaluates f X v

A hitting list with an allowance of two more nodes also detects the domain of every formula.

An invertible hit turns a nonzero formula into one with an admissible inverse.

The executable domain test searches exactly the defined evaluations on the list.

theorem Cslib.Circuits.Rational.Output.nonzeroTest_iff {n : ℕ} (H : Output n) (f : Formula n) :
H.nonzeroTest f = true ↔ ∃ X ∈ H.tuples, ∃ (v : Mat H.dimension), Evaluates f X v ∧ IsUnit v

The executable determinant test searches exactly the invertible evaluations on the list.

A hitting list for s + 2 nodes decides admissibility of formulas with at most s nodes.

A hitting list for s nodes decides nonzeroness of formulas with at most s nodes.