Documentation

HexRCF.Reify

theorem Hex.RCF.Cmp.scale_sub_iff (cmp : Cmp) {lhs rhs scale : } (hscale : 0 < scale) :
cmp.toProp (scale * (lhs - rhs)) 0 cmp.toProp lhs rhs

Transport any supported comparison across subtraction and multiplication by a positive scalar.

theorem Hex.RCF.Atom.toProp_iff_scale {p : ZPoly} {cmp : Cmp} {x lhs rhs scale : } (hscale : 0 < scale) (heval : (Polynomial.aeval x) (HexPolyZMathlib.toPolynomial p) = scale * (lhs - rhs)) :
{ p := p, cmp := cmp }.toProp x cmp.toProp lhs rhs

A kernel-checked scaled evaluation identity validates one reified atom.

theorem Hex.RCF.Atom.toProp_iff_natScale {p : ZPoly} {cmp : Cmp} {x lhs rhs : } {scale : } (hscale : 0 < scale) (heval : (Polynomial.aeval x) (HexPolyZMathlib.toPolynomial p) = scale * (lhs - rhs)) :
{ p := p, cmp := cmp }.toProp x cmp.toProp lhs rhs

Natural denominator clearing is a convenient literal specialization for the meta reifier.

theorem Hex.RCF.Sentence.forallReal_iff {formula : Formula} {predicate : Prop} (h : ∀ (x : ), formula.toProp x predicate x) :
(forallReal formula).toProp ∀ (x : ), predicate x

Transport a reflected universal sentence along its formula equivalence.

theorem Hex.RCF.Sentence.existsReal_iff {formula : Formula} {predicate : Prop} (h : ∀ (x : ), formula.toProp x predicate x) :
(existsReal formula).toProp ∃ (x : ), predicate x

Transport a reflected existential sentence along its formula equivalence.

theorem Hex.RCF.Sentence.forallIoc_iff {a b : Dyadic} {a' b' : } {formula : Formula} {predicate : Prop} (ha : HexRealRootsMathlib.Dyadic.toReal a = a') (hb : HexRealRootsMathlib.Dyadic.toReal b = b') (h : ∀ (x : ), formula.toProp x predicate x) :
(forallIoc a b formula).toProp xSet.Ioc a' b', predicate x

Transport a reflected bounded universal sentence and its dyadic endpoints.

theorem Hex.RCF.Sentence.existsIoc_iff {a b : Dyadic} {a' b' : } {formula : Formula} {predicate : Prop} (ha : HexRealRootsMathlib.Dyadic.toReal a = a') (hb : HexRealRootsMathlib.Dyadic.toReal b = b') (h : ∀ (x : ), formula.toProp x predicate x) :
(existsIoc a b formula).toProp xSet.Ioc a' b', predicate x

Transport a reflected bounded existential sentence and its dyadic endpoints.

Close evaluation identities for literal ZPoly coefficients and accepted ring syntax. The parser remains untrusted: unsupported or misparsed syntax merely makes this proof fail during elaboration.

Equations
Instances For

    Literal reflected sentence.

    Equations
    Instances For

      Literal top-level replay certificate.

      Equations
      Instances For

        Runtime and literal forms of a reflected sentence, together with its checked equivalence to the source goal.

        • sentence : Sentence

          The reflected sentence used by compiled certificate construction.

        • expr : Lean.Expr

          The literal expression representing sentence in the generated proof.

        • proof : Lean.Expr

          A proof that sentence is equivalent to the source goal.

        Instances For

          Reify one supported, singly quantified real sentence.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For