Documentation
Every mode and function of #cas, every tactic and option of cas and cega, with examples checked by Lean. Oracle examples come from the oracle tests.
The guides go one area at a time, and each one lists its modes with a line on what every mode does. Each mode then has a page of its own: what you write, what it means, and examples from the simplest case up to the ones that fail, with the messages Lean really prints. I wanted the failures in there, because they show what a mode promises as clearly as the successes do.
If this is your first time, start with Getting started. If you want to know how far you can trust an answer before you build on it, read What you trust.
Why SymLean
What can go wrong in the output of a computer algebra system, mistakes on record from Mathematica to SymPy, Sage, Maxima, FLINT and PARI/GP, and how proving the answer catches them.
Algebra
Simplifying, expanding, factoring and combining fractions, each with a theorem about real numbers and its conditions.
simplifyfullSimplifyexpandfactorcollecttrigExpandtogethercanceland 3 morePolynomials
Coefficients, degrees, division, gcds, interpolation and Gröbner bases, with theorems about Mathlib’s
PolynomialandMvPolynomial.coefficientcoefficientListexponentpolynomialGCDpolynomialLCMpolynomialQuotientpolynomialRemainderpolynomialQuotientRemainderand 3 moreCalculus
Derivatives, gradients, antiderivatives, definite integrals and extrema, each with a theorem about Mathlib’s definitions.
derivegradintegratenintegratecas [integrate primitive := F]maximizeminimizeSeries and limits
Taylor and Laurent expansions with a little-o remainder, and limits at a point, from one side or at ±∞.
Equations
Polynomial equations, systems and inequalities solved completely, and certified roots of other equations in an interval.
Sums and recurrences
Finite sums and products in closed form, sums of series, and linear recurrences, each with a theorem.
Special functions
Gamma and zeta values, Bernoulli numbers, the error function, Bessel functions and the classical orthogonal polynomials, each with its theorem.
gammazetaBernoulliBerfBesselJLegendrePChebyshevTChebyshevUand 2 moreNumber theory
Divisors, congruences, digits and continued fractions, each with a theorem about Mathlib’s definitions.
divisorsdivisorSigmaeulerPhipowerModmodularInversechineseRemainderextendedGCDjacobiSymboland 6 moreLinear algebra
Determinants, inverses, ranks, linear systems and eigenvalues of matrices with rational entries, each with a theorem about Mathlib’s
Matrix.dotmatrixPowertransposetracedetinversematrixRankrowReduceand 7 moreDifferential equations
Linear differential equations solved exactly, certified initial-value problems, Laplace and Fourier transforms, and Fourier series.
dsolvendsolvelaplaceinverseLaplacefourierTransformfourierfourierCosfourierSinNumerics
Digits, ranges, integrals, roots and eigenvalue bounds, each a proved enclosure, and the tactic
cegathat proves numerical bounds.NenclosemaximizeminimizenintegratefindRootndsolveeigenvalueBoundsand 4 moreCertificates
The statements behind the numerics: enclosures, bounds and approximations on a box, the carriers that hold them, the tactics that prove and reuse them, and certificates on tables of any size.
Tactics
The tactics:
casfor identities, calculus and limits,cegafor numerical bounds,cas_nffor normal forms, and the options that tune them.Oracles
SymPy, SageMath, Maxima, PARI/GP, FLINT, Giac, Singular and Gappa as untrusted search, with every proposal proved in Lean or refused.
The library
The public imports, how the modules are organized, the registries that extend the tactics, and how to check a change.
Tutorials#
- Getting started with SymLeanFrom an empty Lean file to derivatives, integrals, roots and a proof, one command at a time.
- Proving with
casHow to state a goal so thatcasandcegaclose it, and what to do when they refuse. - What you trustWhat the kernel checks, which axioms a proof uses, and what the opt-in fast profile adds.
Every page#
If you already know the name you’re after, the index lists every mode, function, tactic and option from A to Z on one page.
