#44236 feat(Geometry/Euclidean): prove Feuerbach's theorem
In plain words
Proves Feuerbach's theorem (Freek list no. 29): the nine-point circle of a triangle is internally tangent to the incircle and externally tangent to each of the three excircles. Following Scheer's vector proof, it computes for the in/excenter , the nine-point center and nine-point radius , using Euler-type distance formula dist_excenter_sq from #44230 together with new formulas for the distance from a vertex to the nine-point center (via a general vertex-to-Euler-line distance formula for -simplices). Registers the result in docs/100.yaml and docs/1000.yaml, adds the reference to references.bib.
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
Conversation on GitHub 3
PR summary 8042bfda50
<details><summary>
Import changes for modified files
</summary>
Dependency changes
| File | Base Count | Head Count | Change | | --- | --- | --- | --- | | Mathlib.Geometry.Euclidean.Angle.Unoriented.Projection | 2333 | 2355 | +22 (+0.94%) | | Mathlib.Geometry.Euclidean.Triangle | 2409 | 2417 | +8 (+0.33%) |
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
|<details><summary>3 files</summary> Mathlib.Geometry.Euclidean.Angle.Oriented.Projection Mathlib.Geometry.Euclidean.Sphere.Power Mathlib.Geometry.Euclidean.Sphere.Ptolemy</details>|3|
| Mathlib.Geometry.Euclidean.Similarity|5|
|<details><summary>3 files</summary> Mathlib.Geometry.Euclidean.Angle.Unoriented.TriangleInequality Mathlib.Geometry.Euclidean.Congruence Mathlib.Geometry.Euclidean.Triangle</details>|8|
| Mathlib.Geometry.Euclidean.Angle.Unoriented.Projection|22|
| Mathlib.Geometry.Euclidean.Volume.Incenter (new file)|2765|
| Mathlib.Geometry.Euclidean.Volume.Triangle (new file)|2805|
| Mathlib.Geometry.Euclidean.Feuerbach (new file)|2806|
</details>
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ ExcenterExists.volume_eq_exradius_mul
+ _root_.Collinear.sin_angle_eq_left
+ _root_.Collinear.sin_angle_eq_right
+ _root_.EuclideanGeometry.mul_sin_eq_sqrt_mul_sub_mul_sub_mul_sub
+ dist_affineCombination_const_sq
+ dist_excenter_circumcenter_sq
+ dist_excenter_ninePointCircle_center_sq
+ dist_excenter_singleton_circumcenter_sq
+ dist_excenter_sq
+ dist_incenter_circumcenter_sq
+ dist_lineMap_circumcenter_centroid_sq
+ dist_orthogonalProjection_eq_sin_mul_dist
+ dist_orthogonalProjection_eq_sin_mul_dist_of_collinear
+ excenterExists_iff_sum_excenterWeightsFace_ne_zero
+ excenterWeightsFace
+ excenterWeightsFace_empty
+ excenterWeightsFace_eq_volume_mul_excenterWeightsUnnorm
+ excenterWeightsFace_map
+ excenterWeightsFace_ne_zero
+ excenterWeightsFace_reindex
+ excenterWeightsFace_restrict
+ excenterWeights_eq_excenterWeightsFace_div
+ four_mul_volume_mul_circumradius
+ height_eq_sin_mul_dist
+ inner_vsub_circumcenter_vsub_circumcenter
+ inradius_le_ninePointCircle_radius
+ isExtTangent_exsphere_ninePointCircle
+ isIntTangent_insphere_ninePointCircle
+ ninePointCircle_center_eq_lineMap_circumcenter_centroid
+ ninePointCircle_center_eq_point
+ ninePointCircle_radius_nonneg
+ sum_excenterWeightsFace_pos
+ sum_excenterWeightsFace_singleton_pos
+ two_mul_inradius_le_circumradius
+ volume_eq_height_mul
+ volume_eq_inradius_mul
+ volume_eq_mul_div_circumradius
+ volume_eq_mul_sin
+ volume_eq_sqrt_mul_sub_mul_sub_mul_sub
+ volume_sq_eq_mul_sub_mul_sub_mul_sub
+ vsub_centroid_eq
++ dist_ninePointCircle_center_sq
- heron
<details>
<summary>You can run this locally as follows</summary>
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
<details><summary>
Declarations diff (Lean)
</summary>
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
8042bfd).
- +43 new declarations
- −0 removed declarations
+Affine.Simplex.ExcenterExists.volume_eq_exradius_mul
+Affine.Simplex.dist_lineMap_circumcenter_centroid_sq
+Affine.Simplex.dist_ninePointCircle_center_sq
+Affine.Simplex.excenterExists_iff_sum_excenterWeightsFace_ne_zero
+Affine.Simplex.excenterWeightsFace
+Affine.Simplex.excenterWeightsFace.congr_simp
+Affine.Simplex.excenterWeightsFace_empty
+Affine.Simplex.excenterWeightsFace_eq_volume_mul_excenterWeightsUnnorm
+Affine.Simplex.excenterWeightsFace_map
+Affine.Simplex.excenterWeightsFace_ne_zero
+Affine.Simplex.excenterWeightsFace_reindex
+Affine.Simplex.excenterWeightsFace_restrict
+Affine.Simplex.excenterWeights_eq_excenterWeightsFace_div
+Affine.Simplex.inner_vsub_circumcenter_vsub_circumcenter
+Affine.Simplex.ninePointCircle_center_eq_lineMap_circumcenter_centroid
+Affine.Simplex.ninePointCircle_center_eq_point
+Affine.Simplex.ninePointCircle_radius_nonneg
+Affine.Simplex.sum_excenterWeightsFace_singleton_pos
+Affine.Simplex.volume_eq_inradius_mul
+Affine.Simplex.vsub_centroid_eq
+Affine.Triangle.dist_excenter_circumcenter_sq
+Affine.Triangle.dist_excenter_singleton_circumcenter_sq
+Affine.Triangle.dist_excenter_sq
+Affine.Triangle.dist_incenter_circumcenter_sq
+Affine.Triangle.dist_ninePointCircle_center_sq
+Affine.Triangle.four_mul_volume_mul_circumradius
+Affine.Triangle.height_eq_sin_mul_dist
+Affine.Triangle.inradius_le_ninePointCircle_radius
+Affine.Triangle.isExtTangent_exsphere_ninePointCircle
+Affine.Triangle.isIntTangent_insphere_ninePointCircle
+Affine.Triangle.sum_excenterWeightsFace_pos
+Affine.Triangle.two_mul_inradius_le_circumradius
+Affine.Triangle.volume_eq_height_mul
+Affine.Triangle.volume_eq_mul_div_circumradius
+Affine.Triangle.volume_eq_mul_sin
+Affine.Triangle.volume_eq_sqrt_mul_sub_mul_sub_mul_sub
+Affine.Triangle.volume_sq_eq_mul_sub_mul_sub_mul_sub
+Collinear.sin_angle_eq_left
+Collinear.sin_angle_eq_right
+EuclideanGeometry.dist_affineCombination_const_sq
+EuclideanGeometry.dist_orthogonalProjection_eq_sin_mul_dist
+EuclideanGeometry.dist_orthogonalProjection_eq_sin_mul_dist_of_collinear
+EuclideanGeometry.mul_sin_eq_sqrt_mul_sub_mul_sub_mul_sub
</details>
No changes to strong technical debt. <details><summary>Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)</summary>
|Current number|Change|Type (weak)| |-:|:-:|:-| |5067|1|exposed public sections| </details>
Current commit 8042bfda50 Reference commit 0f8a641e2e
This script lives in the undefined repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
note: file Archive/Wiedijk100Theorems/HeronsFormula.lean was removed.
Please create a follow-up pull request adding a module deprecation. Thanks!
This PR/issue depends on:
- leanprover-community/mathlib4#44230
- ~~leanprover-community/mathlib4#44218~~
By Dependent Issues (🤖). Happy coding!
This pull request has conflicts, please merge master and resolve them.
Archive.lean +0 −1
public import Archive.Wiedijk100Theorems.BirthdayProblemArchive/Wiedijk100Theorems/HeronsFormula.lean +0 −68
Mathlib.lean +3 −0
public import Mathlib.Geometry.Euclidean.Basicpublic import Mathlib.Geometry.Euclidean.Sphere.TangentMathlib/Geometry/Euclidean/Angle/Unoriented/Affine.lean +15 −0
theorem collinear_of_sin_eq_zero {p₁ p₂ p₃ : P} (h : Real.sin (∠ p₁ pMathlib/Geometry/Euclidean/Angle/Unoriented/Projection.lean +20 −0
moduleopen scoped RealMathlib/Geometry/Euclidean/Basic.lean +30 −0
theorem dist_affineCombination {ι : Type*} {s : Finset ι} {w₁ w₂ : ι →Mathlib/Geometry/Euclidean/Circumcenter.lean +65 −0
theorem reflection_circumcenter_eq_affineCombination_of_pointsWithCircumcenter {Mathlib/Geometry/Euclidean/Feuerbach.lean +130 −0 new file
Mathlib/Geometry/Euclidean/NinePointCircle.lean +39 −0
def ninePointCircle {n : ℕ} (s : Simplex ℝ P n) : Sphere P wheretheorem ninePointCircle_center_mem_affineSpan {n : ℕ} (s : Simplex ℝ P n) :theorem ninePointCircle_eq_circumsphere_medial {n : ℕ} [NeZero n] (s : Simplextheorem altitudeFoot_mem_ninePointCircle (s : Triangle ℝ P) (i : Fin 3) :Mathlib/Geometry/Euclidean/Triangle.lean +24 −0
Authors: Joseph Myers, Manuel Candaleslemma angle_lt_pi_div_three_of_le_of_le_of_ne {p₁ p₂ p₃ : P} (h₂₃₁ :Mathlib/Geometry/Euclidean/Volume/Incenter.lean +116 −0 new file
Mathlib/Geometry/Euclidean/Volume/Triangle.lean +211 −0 new file
Mathlib/LinearAlgebra/AffineSpace/Simplex/Centroid.lean +4 −0
theorem centroid_vsub_eq {n : ℕ} [CharZero k] (s : Simplex k P n) (p : P) :docs/100.yaml +5 −1
docs/1000.yaml +10 −1
Q1422083:docs/references.bib +10 −0
@Book{ schaefer1966