Documentation

Complexitylib.RationalHitting.Evaluation

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 size bound, it also detects admissibility, including for identically zero formulas. The executable tests here have correctness proofs; no polynomial bound for their rational arithmetic is asserted.

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 Complexity.RationalHitting.Hits.nonzero_iff {n s : ℕ} {H : Output n} (hH : Hits s H) (f : Formula n) (hf : f.size ≤ 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 Complexity.RationalHitting.Hits.admissible_iff {n s : ℕ} {H : Output n} (hH : Hits (s + 2) H) (f : Formula n) (hf : f.size ≤ s) :
Admissible f ↔ ∃ X ∈ H.tuples, ∃ (v : Mat H.dimension), Evaluates f X v

A hitting list with a size allowance of two 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 Complexity.RationalHitting.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 size s + 2 decides admissibility of formulas of size at most s.

theorem Complexity.RationalHitting.Hits.nonzeroTest_eq_true_iff {n s : ℕ} {H : Output n} (hH : Hits s H) (f : Formula n) (hf : f.size ≤ s) :

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