Type
A literal finite Boolean combination of parameter-polynomial sign atoms.
Part of the SVI polynomial-sign certificate (#174).
SignFormula is a finite negation-free combination (and, or, constants) of atoms "the polynomial f in the parameters has sign s". SignProgram α is a finite decision tree branching three ways on such signs, with leaves in α; a Boolean program expands to a formula with the same value.
SignFormula: a finite combination (and, or, constants) of atoms "the parameter polynomial f has sign s".SignFormula.eval: the truth value of a sign formula at the parameters p.SignProgram α: a finite decision tree that branches on signs of parameter polynomials, with leaves in α.SignProgram.bind, SignProgram.eval: sequencing, and the result of running a program at p.SignProgram.toFormula: the sign formula with the same value as a Boolean sign program.signQuery, signListProgram: the programs returning the sign of one parameter polynomial and the signs of a list of them.SignProgram.eval_bind: (s.bind k).eval p = (k (s.eval p)).eval p.SignProgram.eval_toFormula: s.toFormula.eval p = s.eval p for a Boolean program s.signQuery_eval, signListProgram_eval: the programs evaluate to the signs of parameterEval p f.sign formula, decision tree, sign program, semialgebraic condition, SVI, MSC 91G20, JEL G13
Above: what it imports. Below: what imports it.
Type
A literal finite Boolean combination of parameter-polynomial sign atoms.
Params → SignFormula → Bool
The truth value of a sign formula at the parameters p.
Type u_1 → Type u_1
A finite decision tree asking only signs of explicit parameter polynomials.
{α : Type u_1} → {β : Type u_2} → SignProgram α → (α → SignProgram β) → SignProgram βSequencing of sign programs.
{α : Type u_1} → Params → SignProgram α → αThe result of running a sign program at the parameters p.
∀ {α : Type u_1} {β : Type u_2} (p : Params) (s : SignProgram α) (k : α → SignProgram β), SignProgram.eval p (s.bind k) = SignProgram.eval p (k (SignProgram.eval p s))SignProgram Bool → SignFormula
The sign formula with the same value as a Boolean sign program (SignProgram.eval_toFormula).
∀ (p : Params) (s : SignProgram Bool), SignFormula.eval p s.toFormula = SignProgram.eval p s
ParameterRing → SignProgram SignType
The program returning the sign of f.
∀ (p : Params) (f : ParameterRing), SignProgram.eval p (signQuery f) = SignType.sign ((parameterEval p) f)
List ParameterRing → SignProgram (List SignType)
The program returning the signs of a list of parameter polynomials.
∀ (p : Params) (fs : List ParameterRing), SignProgram.eval p (signListProgram fs) = List.map (fun f => SignType.sign ((parameterEval p) f)) fs