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 Bn and Bernoulli polynomials Bn(x) for n≤60, with theorems about Mathlib’s bernoulli and Polynomial.bernoulli.
  • BesselJProved decimal enclosures of Mathlib’s Bessel function Complex.besselJ at an integer order and a rational point.
  • binomialThe binomial coefficient (nk) of natural numbers n and k, with a theorem about Mathlib’s Nat.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 as cas does, with your hypotheses as evidence for the conditions that the routes need.
  • cas?Proves the goal as cas does, 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 as cega does, and suggests the call to keep in the proof.
  • characteristicPolynomialThe characteristic polynomial det(xI−A) of a square matrix with rational entries, with a theorem about Mathlib’s Matrix.charpoly.
  • ChebyshevTThe Chebyshev polynomial Tn in monomials, proved in every commutative ring, and its exact values at rational points.
  • ChebyshevUThe Chebyshev polynomial Un in monomials, proved in every commutative ring, and its exact values at rational points.
  • chineseRemainderAll solutions of a system of congruences x≡ri(modmi), 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’s Polynomial.coeff.
  • coefficientListGives the coefficients of a polynomial in one variable, constant term first, with a theorem about Mathlib’s Polynomial.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 [a0;a1,…,ak] 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’s HasDerivAt.
  • detThe determinant of a square matrix with rational entries, with a theorem about Mathlib’s Matrix.det.
  • divisorsThe divisors of a positive integer below 1012 in increasing order, with a theorem about Mathlib’s Nat.divisors.
  • divisorSigmaThe sum σk(n) of the k-th powers of the divisors of n, with a theorem about Mathlib’s ArithmeticFunction.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’s CAS.erf, defined by the Gaussian integral.
  • eulerPhiEuler’s totient φ(n), the number of residues modulo n coprime to n, with a theorem about Mathlib’s Nat.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’s Polynomial.natDegree.
  • extendedGCDThe gcd of two natural numbers with Bézout coefficients s and t, and a theorem that as+bt=gcd(a,b).

F

  • factorFactors a polynomial with rational coefficients, with a theorem that the product equals the input.
  • factorialThe factorial n! of a natural number, with a theorem about Mathlib’s Nat.factorial.
  • factorInteger#cas [factorInteger] n is not supported.
  • fibonacciThe Fibonacci number Fn, with F0=0 and F1=1, and a theorem about Mathlib’s Nat.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 [a0;a1,…,ak], 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’s Real.Gamma.
  • gradThe gradient of an expression in several variables, with a theorem about Mathlib’s HasGradientAt.
  • groebnerGives the reduced lexicographic Gröbner basis of a polynomial ideal, with theorems about Ideal.span in MvPolynomial.

H

  • HermiteHThe physicists’ Hermite polynomial Hn in monomials, proved at every real x, and its exact values at rational points.
  • HermiteHeThe probabilists’ Hermite polynomial Hen, Mathlib’s Polynomial.hermite n, in monomials, with its exact values at rational points.

I

  • integerDigitsThe digits of a natural number in any base b≥2, with a theorem about Mathlib’s Nat.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 (a/n) of an integer and an odd natural number, with a theorem about Mathlib’s jacobiSym.

L

  • laplaceThe Laplace transform of a sum of polynomial, exponential, trigonometric and hyperbolic terms, with a theorem about the integral.
  • LegendrePThe Legendre polynomial Pn in monomials, proved at every real x, and its exact values at rational points.
  • limitA limit at a rational point, from one side, or at ±∞, with a theorem about Mathlib’s Filter.Tendsto.
  • linearSolveAll solutions of a linear system Ax=b with rational entries, with a theorem that there are no others.

M

  • matrixPowerThe power Ak of a square matrix with rational entries, for k 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’s Matrix.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 m≥2 in ZMod 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

  • OptionsThe settings of cas, cega and #cas: the budget of a call, what a report shows, and the trace classes.
  • oracleAsks SymPy, SageMath, Maxima, PARI/GP, FLINT, Giac, Singular or Gappa for a proposal, and proves it in Lean or refuses.

P

  • polynomialGCDGives the monic gcd of two polynomials in one variable, with a theorem about Mathlib’s gcd in ℚ[X].
  • polynomialLCMGives the monic lcm of two nonzero polynomials in one variable, with a theorem about Mathlib’s lcm in ℚ[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’s Matrix.PosDef either way.
  • powerModThe remainder of ab modulo m 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’s Matrix.trace.
  • transposeThe transpose of a matrix of any shape with rational entries, with a theorem about Mathlib’s Matrix.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’s riemannZeta.