Documentation

LeanPool.Besicovitch.Certificates.RadicalInterval

Exact interval arithmetic for radical expressions #

A square-root node carries rational lower and upper witnesses. The evaluator checks their squares exactly, so every successful enclosure has a kernel-checked real-number semantics.

Rational expressions with explicitly certified square-root bounds.

Instances For
    noncomputable def LeanPool.Besicovitch.RadicalExpression.eval {n : ℕ} :
    RadicalExpression n → (Fin n → ℝ) → ℝ

    Evaluate a radical expression in a real environment.

    Equations
    Instances For

      Evaluate by exact rational intervals, rejecting unsafe inverses or square-root witnesses.

      Equations
      Instances For

        Check an enclosure and widen it to a simpler rational target interval.

        Equations
        Instances For

          Decide whether the computed enclosure lies in a given rational target interval.

          Equations
          Instances For
            theorem LeanPool.Besicovitch.RadicalExpression.enclosure_sound {n : ℕ} {f : RadicalExpression n} {X : Fin n → RationalInterval} {x : Fin n → ℝ} (hx : ∀ (i : Fin n), (X i).Contains (x i)) {I : RationalInterval} (hI : f.enclosure X = some I) :
            I.Contains (f.eval x)

            Every successful radical enclosure contains the real value of the expression.

            theorem LeanPool.Besicovitch.RadicalExpression.enclosureWithin_sound {n : ℕ} {f : RadicalExpression n} {X : Fin n → RationalInterval} {x : Fin n → ℝ} (hx : ∀ (i : Fin n), (X i).Contains (x i)) {target : RationalInterval} (h : f.enclosureWithin X target = some target) :
            target.Contains (f.eval x)

            A successful widened enclosure contains the real value of the expression.

            theorem LeanPool.Besicovitch.RadicalExpression.certifiesWithin_sound {n : ℕ} {f : RadicalExpression n} {X : Fin n → RationalInterval} {x : Fin n → ℝ} (hx : ∀ (i : Fin n), (X i).Contains (x i)) {target : RationalInterval} (h : f.certifiesWithin X target = true) :
            target.Contains (f.eval x)

            A successful Boolean certificate encloses the real value of the expression.