Theorems 1 to 27

TheoremThe Irrationality of the Square Root of 2#

Irrationality of the Square Root of 2

irrational_sqrt_two : Irrational √2
Mathlibirrational_sqrt_two
Uses 5

InstanceThe Denumerability of the Rational Numbers#

Denumerability of the Rational Numbers

Rat.instDenumerable : Denumerable ℚ
MathlibRat.instDenumerable
Uses 2
Statement usesList · Rational number

TheoremPythagorean Theorem#

Pythagorean theorem, if-and-only-if angle-at-point form.

EuclideanGeometry.dist_sq_eq_dist_sq_add_dist_sq_iff_angle_eq_pi_div_two.{u_1, u_2} {V : Type u_1}
  {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P]
  [NormedAddTorsor V P] (p₁ p₂ p₃ : P) :
  dist p₁ p₃ * dist p₁ p₃ = dist p₁ p₂ * dist p₁ p₂ + dist p₃ p₂ * dist p₃ p₂ ↔
    EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2
MathlibEuclideanGeometry.dist_sq_eq_dist_sq_add_dist_sq_iff_angle_eq_pi_div_two
Uses 2
Statement usesAngle · Euclidean affine space

TheoremThe Area of a Circle#

Area of a Circle: The area of a disc with radius r is π * r ^ 2.

Theorems100.area_disc (r : NNReal) :
  MeasureTheory.volume (Theorems100.disc ↑r) = ↑NNReal.pi * ↑r ^ 2
MathlibTheorems100.area_disc
Uses 9

TheoremEuler’s Generalization of Fermat’s Little Theorem#

The Fermat-Euler totient theorem. ZMod.pow_totient is an alternative statement of the same theorem.

Nat.ModEq.pow_totient {x n : ℕ} (h : x.Coprime n) : x ^ n.totient ≡ 1 [MOD n]
MathlibNat.ModEq.pow_totient
Uses 2

TheoremThe Infinitude of Primes#

Euclid's theorem on the infinitude of primes. Here given in the form: for every n, there exists a prime number p ≥ n.

Nat.exists_infinite_primes (n : ℕ) : ∃ p, n ≤ p ∧ Nat.Prime p
MathlibNat.exists_infinite_primes
Uses 2 · Used by 1

TheoremFundamental Theorem of Integral Calculus#

Mathlib records this with 2 declarations.

intervalIntegral.integral_hasStrictDerivAt_of_tendsto_ae_right: Fundamental theorem of calculus-1, strict differentiability in the right endpoint.

If f : ℝ → E is integrable on a..b and f x has a finite limit c almost surely at b, then u ↦ ∫ x in a..u, f x has derivative c at b in the sense of strict differentiability.

intervalIntegral.integral_hasStrictDerivAt_of_tendsto_ae_right.{u_3} {E : Type u_3}
  [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {f : ℝ → E} {c : E} {a b : ℝ}
  (hf : IntervalIntegrable f MeasureTheory.volume a b)
  (hmeas : StronglyMeasurableAtFilter f (nhds b) MeasureTheory.volume)
  (hb : Filter.Tendsto f (nhds b ⊓ MeasureTheory.ae MeasureTheory.volume) (nhds c)) :
  HasStrictDerivAt (fun u => ∫ (x : ℝ) in a..u, f x) c b

intervalIntegral.integral_eq_sub_of_hasDeriv_right_of_le: Fundamental theorem of calculus-2: If f : ℝ → E is continuous on [a, b] (where a ≤ b) and has a right derivative at f' x for all x in (a, b), and f' is integrable on [a, b], then ∫ y in a..b, f' y equals f b - f a.

intervalIntegral.integral_eq_sub_of_hasDeriv_right_of_le.{u_3} {E : Type u_3} [NormedAddCommGroup E]
  [NormedSpace ℝ E] {a b : ℝ} [CompleteSpace E] {f f' : ℝ → E} (hab : a ≤ b)
  (hcont : ContinuousOn f (Set.Icc a b))
  (hderiv : ∀ x ∈ Set.Ioo a b, HasDerivWithinAt f (f' x) (Set.Ioi x) x)
  (f'int : IntervalIntegrable f' MeasureTheory.volume a b) : ∫ (y : ℝ) in a..b, f' y = f b - f a
MathlibintervalIntegral.integral_hasStrictDerivAt_of_tendsto_ae_right · intervalIntegral.integral_eq_sub_of_hasDeriv_right_of_le
Uses 15 · Used by 2

TheoremDe Moivre’s Formula#

De Moivre's formula

Complex.cos_add_sin_mul_I_pow (n : ℕ) (z : ℂ) :
  (Complex.cos z + Complex.sin z * Complex.I) ^ n =
    Complex.cos (↑n * z) + Complex.sin (↑n * z) * Complex.I
MathlibComplex.cos_add_sin_mul_I_pow
Uses 4

TheoremFormula for Pythagorean Triples#

Formula for Pythagorean Triples

PythagoreanTriple.classification {x y z : ℤ} :
  PythagoreanTriple x y z ↔
    ∃ k m n,
      (x = k * (m ^ 2 - n ^ 2) ∧ y = k * (2 * m * n) ∨
          x = k * (2 * m * n) ∧ y = k * (m ^ 2 - n ^ 2)) ∧
        (z = k * (m ^ 2 + n ^ 2) ∨ z = -k * (m ^ 2 + n ^ 2))
MathlibPythagoreanTriple.classification
Uses 8

TheoremSchroeder-Bernstein Theorem#

The Schröder-Bernstein Theorem: Given injections α → β and β → α, we can get a bijection α → β.

Function.Embedding.schroeder_bernstein.{u, v} {α : Type u} {β : Type v} {f : α → β} {g : β → α}
  (hf : Function.Injective f) (hg : Function.Injective g) : ∃ h, Function.Bijective h
MathlibFunction.Embedding.schroeder_bernstein
Uses 1
Proof usesSet

TheoremLeibniz’s Series for Pi#

Leibniz's series for π. The alternating sum of odd number reciprocals is π / 4, proved by using Abel's limit theorem to extend the Maclaurin series of arctan to 1.

Real.tendsto_sum_pi_div_four :
  Filter.Tendsto (fun k => ∑ i ∈ Finset.range k, (-1) ^ i / (2 * ↑i + 1)) Filter.atTop
    (nhds (Real.pi / 4))
MathlibReal.tendsto_sum_pi_div_four
Uses 5

TheoremSum of the Angles of a Triangle#

The sum of the angles of a triangle (possibly degenerate, where two given vertices are distinct), angle-at-point.

EuclideanGeometry.angle_add_angle_add_angle_eq_pi.{u_1, u_2} {V : Type u_1} {P : Type u_2}
  [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ : P}
  (p₃ : P) (h : p₂ ≠ p₁) :
  EuclideanGeometry.angle p₁ p₂ p₃ + EuclideanGeometry.angle p₂ p₃ p₁ +
      EuclideanGeometry.angle p₃ p₁ p₂ =
    Real.pi
MathlibEuclideanGeometry.angle_add_angle_add_angle_eq_pi
Uses 5 · Used by 1

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.