Documentation

LeanCert.Engine.Algebra.QPolyIntegral

Exact polynomial integral certificates #

This module recognizes the rational-polynomial fragment of LeanCert.Core.Expr and checks exact definite integrals using executable rational arithmetic. The checker is intentionally small: certificate discovery may happen in tactics or external tooling, while Lean verifies the reflected polynomial and endpoint evaluation.

theorem LeanCert.Engine.QPoly.ofExpr_correct {e : Core.Expr} {p : QPoly} (h : ofExpr e = some p) (x : ℝ) :
Core.Expr.eval (fun (x_1 : ℕ) => x) e = Core.Expr.eval (fun (x_1 : ℕ) => x) p.toExpr

Successful polynomial recognition preserves real semantics.

Boolean checker for an exact rational-polynomial definite integral.

Equations
Instances For
    theorem LeanCert.Engine.QPoly.integral_eq_of_check (e : Core.Expr) (a b value : ℚ) (hcheck : checkExactIntegral e a b value = true) :
    ∫ (x : ℝ) in ↑a..↑b, Core.Expr.eval (fun (x_1 : ℕ) => x) e = ↑value

    Golden theorem for exact rational-polynomial integration certificates.