MathFin
Map / Valuation · The smile / MathFin.Models.ModelFree.SVI.SignFormula

Sign formulas and sign programs

MathFin.Models.ModelFree.SVI.SignFormulaMSC 91G20JEL G13 source

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.

Main definitions

  • 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.

Main results

  • 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.

Tags

sign formula, decision tree, sign program, semialgebraic condition, SVI, MSC 91G20, JEL G13

Import neighbourhood

Above: what it imports. Below: what imports it.

Declarations 12

inductiveMathFin.SVI.SignFormulasource
Type

A literal finite Boolean combination of parameter-polynomial sign atoms.

defMathFin.SVI.SignFormula.evalsource
Params → SignFormula → Bool

The truth value of a sign formula at the parameters p.

inductiveMathFin.SVI.SignProgramsource
Type u_1 → Type u_1

A finite decision tree asking only signs of explicit parameter polynomials.

defMathFin.SVI.SignProgram.bindsource
{α : Type u_1} → {β : Type u_2} → SignProgram α → (α → SignProgram β) → SignProgram β

Sequencing of sign programs.

defMathFin.SVI.SignProgram.evalsource
{α : Type u_1} → Params → SignProgram α → α

The result of running a sign program at the parameters p.

theoremMathFin.SVI.SignProgram.eval_bind @[simp]source
∀ {α : 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))
defMathFin.SVI.SignProgram.toFormulasource
SignProgram Bool → SignFormula

The sign formula with the same value as a Boolean sign program (SignProgram.eval_toFormula).

theoremMathFin.SVI.SignProgram.eval_toFormula @[simp]source
∀ (p : Params) (s : SignProgram Bool), SignFormula.eval p s.toFormula = SignProgram.eval p s
defMathFin.SVI.signQuerysource
ParameterRing → SignProgram SignType

The program returning the sign of f.

theoremMathFin.SVI.signQuery_eval @[simp]source
∀ (p : Params) (f : ParameterRing), SignProgram.eval p (signQuery f) = SignType.sign ((parameterEval p) f)
defMathFin.SVI.signListProgramsource
List ParameterRing → SignProgram (List SignType)

The program returning the signs of a list of parameter polynomials.

theoremMathFin.SVI.signListProgram_eval @[simp]source
∀ (p : Params) (fs : List ParameterRing), SignProgram.eval p (signListProgram fs) = List.map (fun f => SignType.sign ((parameterEval p) f)) fs