Index A to Z
Every mode and function of #cas, and every tactic and option of cas and cega, by name.
A B C D E F G H I J L M N O P R S T Z
A
apartWrites a rational function of one variable as a polynomial plus partial fractions, with the conditions of the identity.
B
BernoulliBBernoulli numbers and Bernoulli polynomials for , with theorems about Mathlib’sbernoulliandPolynomial.bernoulli.BesselJProved decimal enclosures of Mathlib’s Bessel functionComplex.besselJat an integer order and a rational point.binomialThe binomial coefficient of natural numbers and , with a theorem about Mathlib’sNat.choose.
C
cancelCancels common factors in each summand of a rational expression, with the conditions under which the result equals the input.#casThe calculator: evaluates a call, simplifies an expression or runs a mode, and proves its answer.casProves the goal by computer algebra whose steps Lean’s kernel checks: identities, derivatives, integrals, limits and bounds.cas [integrate primitive := F]Proves a definite integral from a primitive that you supply: the derivative is checked, then the fundamental theorem of calculus applies.cas usingProves the goal ascasdoes, with your hypotheses as evidence for the conditions that the routes need.cas?Proves the goal ascasdoes, and suggests the call to keep in the proof.cas_nfRewrites the real terms of a goal or a hypothesis to a normal form, with a checked proof of each rewrite.cegaProves numerical bounds: inequalities on a box of real variables, closed constants and interval integrals.cega usingProves a goal from a certificate that you built once, by the certificate’s own soundness theorem.cega?Proves the goal ascegadoes, and suggests the call to keep in the proof.characteristicPolynomialThe characteristic polynomial of a square matrix with rational entries, with a theorem about Mathlib’sMatrix.charpoly.ChebyshevTThe Chebyshev polynomial in monomials, proved in every commutative ring, and its exact values at rational points.ChebyshevUThe Chebyshev polynomial in monomials, proved in every commutative ring, and its exact values at rational points.chineseRemainderAll solutions of a system of congruences , as one residue modulo the lcm, or a proof that there are none.coefficientGives the coefficient of a power of one variable in a polynomial, with a theorem about Mathlib’sPolynomial.coeff.coefficientListGives the coefficients of a polynomial in one variable, constant term first, with a theorem about Mathlib’sPolynomial.coeff.collectWrites a polynomial as a sum of powers of one variable, with coefficients in the other variables, and proves that the two are equal.continuedFractionThe continued fraction of a rational number, with a theorem that it equals the number.
D
denominatorGives the factored denominator of a rational expression brought to one fraction, with the conditions of the identity.deriveThe derivative of an expression, with the conditions it needs and a theorem about Mathlib’sHasDerivAt.detThe determinant of a square matrix with rational entries, with a theorem about Mathlib’sMatrix.det.divisorsThe divisors of a positive integer below in increasing order, with a theorem about Mathlib’sNat.divisors.divisorSigmaThe sum of the -th powers of the divisors of , with a theorem about Mathlib’sArithmeticFunction.sigma.dotThe product of two matrices, or of a matrix and a vector, with rational entries and a theorem that it is right.dsolveThe general solution of a linear differential equation, or the solution of an initial-value problem, with a theorem.
E
eigenvalueBoundsDecimal bounds on the smallest and the largest eigenvalue of a symmetric matrix, with a theorem that they hold and are sharp.eigenvaluesThe exact eigenvalues of a square matrix with rational entries, with their multiplicities and a theorem that there are no others.eigenvectorsA basis of each eigenspace of a square matrix with rational entries, with a theorem for every eigenvalue, irrational ones included.encloseAn interval that holds every value of an expression on a box, with upper, absolute and center bounds, all proved.erfProved decimal enclosures of the error function at a rational point, for SymLean’sCAS.erf, defined by the Gaussian integral.eulerPhiEuler’s totient , the number of residues modulo coprime to , with a theorem about Mathlib’sNat.totient.expandMultiplies out a polynomial, with a theorem that the expansion equals the input for all real values.exponentGives the degree of a polynomial in one variable, with a theorem about Mathlib’sPolynomial.natDegree.extendedGCDThe gcd of two natural numbers with Bézout coefficients and , and a theorem that .
F
factorFactors a polynomial with rational coefficients, with a theorem that the product equals the input.factorialThe factorial of a natural number, with a theorem about Mathlib’sNat.factorial.factorInteger#cas [factorInteger] nis not supported.fibonacciThe Fibonacci number , with and , and a theorem about Mathlib’sNat.fib.findRootA certified simple root of a function in an interval, to a chosen number of decimals, with a uniqueness theorem.fourierThe Fourier coefficients of a function on [-π, π] as exact functions of n, with a theorem about the integrals.fourierCosThe coefficients of the cosine series on [0, L] as exact functions of n, with a theorem about the integrals.fourierSinThe coefficients of the sine series on [0, L] as exact functions of n, with a theorem about the integrals.fourierTransformThe Fourier transform of a Gaussian in Mathlib’s convention, with a theorem for every frequency.fromContinuedFractionThe rational value of a finite continued fraction , with a theorem in .fullSimplifyTries many forms of a real expression and gives the simplest one that is proved equal to it, with the conditions the identity needs.
G
gammaThe exact value of the Gamma function at an integer or a half-integer, with a theorem about Mathlib’sReal.Gamma.gradThe gradient of an expression in several variables, with a theorem about Mathlib’sHasGradientAt.groebnerGives the reduced lexicographic Gröbner basis of a polynomial ideal, with theorems aboutIdeal.spaninMvPolynomial.
H
I
integerDigitsThe digits of a natural number in any base , with a theorem about Mathlib’sNat.digits.integrateAn antiderivative or a definite integral, checked by differentiation, with a theorem about Mathlib’s interval integral.interpolatingPolynomialGives the polynomial of least degree through given points, with a theorem about its values and its degree bound inℚ[X].inverseThe inverse of a square matrix with rational entries, or a proof that its determinant is 0.inverseLaplaceA function whose Laplace transform is a given proper rational function, with a theorem about the integral.
J
jacobiSymbolThe Jacobi symbol of an integer and an odd natural number, with a theorem about Mathlib’sjacobiSym.
L
laplaceThe Laplace transform of a sum of polynomial, exponential, trigonometric and hyperbolic terms, with a theorem about the integral.LegendrePThe Legendre polynomial in monomials, proved at every real , and its exact values at rational points.limitA limit at a rational point, from one side, or at ±∞, with a theorem about Mathlib’sFilter.Tendsto.linearSolveAll solutions of a linear system with rational entries, with a theorem that there are no others.
M
matrixPowerThe power of a square matrix with rational entries, for up to 1000, with a theorem that it is right.matrixRankThe rank of a matrix of any shape with rational entries, with a theorem about Mathlib’sMatrix.rank.maximizeThe maximum of a polynomial on the real line or on an interval, exact or enclosed, with a theorem.memberProves that a polynomial lies in the ideal of given polynomials, and gives it as a combination of them.minimizeThe minimum of a polynomial on the real line or on an interval, exact or enclosed, with a theorem.modularInverseThe inverse of an integer modulo inZMod m, or a proof that there is none.moebiusMu#cas (moebiusMu n)is not supported.
N
NThe first digits of a closed real expression, with a theorem that every printed digit is right.ndsolveCertified enclosures of the solution of a polynomial initial-value problem, with a theorem of existence and uniqueness.nintegrateA definite integral to a fixed number of decimal places, with a theorem that bounds the error.nullSpaceA basis of the null space of a matrix with rational entries, with a theorem that it spans every solution.numeratorGives the numerator of a rational expression brought to one fraction, with the conditions of the identity.
O
P
polynomialGCDGives the monic gcd of two polynomials in one variable, with a theorem about Mathlib’sgcdinℚ[X].polynomialLCMGives the monic lcm of two nonzero polynomials in one variable, with a theorem about Mathlib’slcminℚ[X].polynomialQuotientGives the quotient of a division of polynomials in one variable, with a theorem about Mathlib’s/inℚ[X].polynomialQuotientRemainderGives the quotient and the remainder of a division of polynomials in one variable, with a theorem about Mathlib’s/and%inℚ[X].polynomialRemainderGives the remainder of a division of polynomials in one variable, with a theorem about Mathlib’s%inℚ[X].positiveDefiniteWhether a square matrix with rational entries is positive definite, with a theorem about Mathlib’sMatrix.PosDefeither way.powerModThe remainder of modulo by repeated squaring, for exponents with hundreds of digits, with a theorem inℕ.primeQ#cas (primeQ n)is not supported.productA finite product in closed form, telescoped or in factorials, with a theorem for every upper bound.
R
reduceA polynomial equation or inequality reduced to an equivalent union of intervals, with a theorem.rootsEvery real or complex root of a polynomial equation, exact or enclosed, with a theorem that the list is complete.rowReduceThe reduced row echelon form of a matrix with rational entries, with the row operations that prove it.rsolveThe general solution of a linear recurrence with constant coefficients, or the sequence with given initial values, with a theorem.
S
seriesA Taylor or Laurent expansion at a rational point, with exact coefficients and a little-o remainder theorem.simplifySimplifies a real expression by checked rewrites, with the conditions under which the result equals it.solveEvery real solution of a polynomial equation or system, with a theorem that the list is complete.sumA finite sum in closed form or by its exact value, or the sum of a series, with a theorem.
T
togetherWrites a rational expression as one fraction in lowest terms, with the conditions under which they agree.traceThe trace of a square matrix with rational entries, with a theorem about Mathlib’sMatrix.trace.transposeThe transpose of a matrix of any shape with rational entries, with a theorem about Mathlib’sMatrix.transpose.trigExpandExpands sines and cosines of sums, differences and double angles, with a theorem about Mathlib’s sine and cosine.
Z
zetaExact values of the Riemann zeta function at even positive and nonpositive integers, with a theorem about Mathlib’sriemannZeta.
