SkillAgentSearch skills...

Leancert

Verified interval arithmetic for Lean 4 — prove bounds on exp, sin, cos, find roots, all machine-checked

Install / Use

/learn @alerad/Leancert
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LeanCert

License Documentation

Numerical computation produces suggestions. LeanCert produces theorems.

LeanCert is a Lean 4 library for certified numerical reasoning: interval bounds, global optimization, root existence/uniqueness, and integration bounds with proof-producing tactics.

Installation

Add to your lakefile.toml:

[[require]]
name = "leancert"
git = "https://github.com/alerad/leancert"
rev = "main"

Then run:

lake update

Quick Usage

import LeanCert.Tactic.IntervalAuto

example : forall x in Set.Icc (0 : Real) 1, Real.exp x <= 3 := by
  certify_bound

Architecture

LeanCert follows a certificate-driven structure:

  1. Reification to LeanCert.Core.Expr
  2. Computation in interval/taylor engines
  3. Certification through Golden Theorems

Checking Mathlib Compatibility

LeanCert currently targets Mathlib aligned with Lean v4.28.0.

lake exe check-compat

Split Repositories

This repository is Lean-only. The former in-repo Python and bridge packaging/workflows were split into dedicated repositories.

  • Python SDK: https://github.com/alerad/leancert-python
  • Bridge binaries (JSON-RPC executable): https://github.com/alerad/leancert-bridge

License

Apache 2.0. See LICENSE.

View on GitHub
GitHub Stars37
CategoryDevelopment
Updated7d ago
Forks4

Languages

Lean

Security Score

90/100

Audited on Mar 29, 2026

No findings