The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V22. Affine, Euclidean and convex geometry

Mathlib.LinearAlgebra.AffineSpace.Ceva

4 declarations. Mathlib docs · Source

Ceva's theorem.

This file proves various versions of Ceva's theorem.

References

  • https://en.wikipedia.org/wiki/Ceva%27s_theorem

theorem AffineIndependent.exists_affineCombination_eq_smul_eq E0 #

∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} {ι : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V]
  [inst_2 : Module k V] [inst_3 : AddTorsor V P] {p : ι → P},
  AffineIndependent k p →
    ∀ {s : Set ι},
      s.Nonempty →
        ∀ {fs : ↑s → Finset ι} {w : ↑s → ι → k},
          (∀ (i : ↑s), ∑ j ∈ fs i, w i j = 1) →
            ∀ {p' : P},
              (∀ (i : ↑s), p' ∈ line[k, p ↑i, (Finset.affineCombination k (fs i) p) (w i)]) →
                ∃ w' fs',
                  ∑ j ∈ fs', w' j = 1 ∧
                    (Finset.affineCombination k fs' p) w' = p' ∧
                      ∀ (i : ↑s), ∃ r, ∀ (j : ι), r * (↑(fs i) \ {↑i}).indicator (w i) j = (↑fs' \ {↑i}).indicator w' j

A version of Ceva's theorem for an arbitrary indexed affinely independent family of points: consider some lines, each through one of the points and an affine combination of the points, and suppose they concur at p'; then p' is an affine combination of the points with weights proportional to those in the respective affine combinations.

theorem AffineIndependent.exists_affineCombination_eq_smul_eq_of_fintype E2 #

∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} {ι : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V]
  [inst_2 : Module k V] [inst_3 : AddTorsor V P] [inst_4 : Fintype ι] {p : ι → P},
  AffineIndependent k p →
    ∀ {s : Set ι},
      s.Nonempty →
        ∀ {w : ↑s → ι → k},
          (∀ (i : ↑s), ∑ j, w i j = 1) →
            ∀ {p' : P},
              (∀ (i : ↑s), p' ∈ line[k, p ↑i, (Finset.affineCombination k Finset.univ p) (w i)]) →
                ∃ w',
                  ∑ j, w' j = 1 ∧
                    (Finset.affineCombination k Finset.univ p) w' = p' ∧
                      ∀ (i : ↑s), ∃ r, ∀ (j : ι), r * {↑i}ᶜ.indicator (w i) j = {↑i}ᶜ.indicator w' j

A version of Ceva's theorem for a finite indexed affinely independent family of points: consider some lines, each through one of the points and an affine combination of the points, and suppose they concur at p'; then p' is an affine combination of the points with weights proportional to those in the respective affine combinations.

theorem Affine.Triangle.prod_eq_prod_one_sub_of_mem_line_point_lineMap E2 #

∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : CommRing k] [NoZeroDivisors k] [inst_2 : AddCommGroup V]
  [inst_3 : Module k V] [inst_4 : AddTorsor V P] {t : Affine.Triangle k P} {r : Fin 3 → k} {p' : P},
  (∀ (i : Fin 3), p' ∈ line[k, t.points i, (AffineMap.lineMap (t.points (i + 1)) (t.points (i + 2))) (r i)]) →
    ∏ i, r i = ∏ i, (1 - r i)

Ceva's theorem for a triangle, expressed in terms of multiplying weights.

theorem Affine.Triangle.prod_div_one_sub_eq_one_of_mem_line_point_lineMap E2 #

∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Field k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
  [inst_3 : AddTorsor V P] {t : Affine.Triangle k P} {r : Fin 3 → k},
  (∀ (i : Fin 3), r i ≠ 0) →
    ∀ {p' : P},
      (∀ (i : Fin 3), p' ∈ line[k, t.points i, (AffineMap.lineMap (t.points (i + 1)) (t.points (i + 2))) (r i)]) →
        ∏ i, r i / (1 - r i) = 1

Ceva's theorem for a triangle, expressed using division.