#44230 feat(Geometry/Euclidean): prove Euler's theorem in geometry
In plain words
Proves Euler's theorem in geometry for a triangle: for incenter , circumcenter , circumradius and inradius , and its excenter version ; hence Euler's inequality , and the nine-point radius . It also adds the area formula and a general squared-distance formula from an affine combination to a point. The route: write the in/excenter as an affine combination with weights proportional to the signed side lengths (excenterWeightsFace from #44060), expand the squared distance, and use and . Registered in docs/1000.yaml.
The transcriptions were written for revision af1075d; the PR is now at 528545f. Check them against the code.
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 11
✅ PR Title Formatted Correctly
The title of this PR has been updated to match our commit style conventions. Thank you!
PR summary 528545f253
<details><summary>
Import changes for modified files
</summary>
Dependency changes
| File | Base Count | Head Count | Change | | --- | --- | --- | --- | | Mathlib.Geometry.Euclidean.Volume.Triangle | 2851 | 2872 | +21 (+0.74%) |
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
| Mathlib.Geometry.Euclidean.Volume.Triangle|21|
</details>
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ dist_excenter_circumcenter_sq
+ dist_excenter_singleton_circumcenter_sq
+ dist_excenter_sq
+ dist_incenter_circumcenter_sq
+ four_mul_volume_mul_circumradius
+ inradius_le_ninePointCircle_radius
+ sum_excenterWeightsFace_pos_of_card_le_one
+ sum_excenterWeightsFace_singleton_pos
+ sum_excenterWeightsUnnorm_pos_of_card_le_one
+ two_mul_inradius_le_circumradius
+ volume_eq_mul_div_circumradius
<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
528545f).
- +11 new declarations
- −0 removed declarations
+Affine.Simplex.sum_excenterWeightsFace_pos_of_card_le_one
+Affine.Simplex.sum_excenterWeightsFace_singleton_pos
+Affine.Simplex.sum_excenterWeightsUnnorm_pos_of_card_le_one
+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.four_mul_volume_mul_circumradius
+Affine.Triangle.inradius_le_ninePointCircle_radius
+Affine.Triangle.two_mul_inradius_le_circumradius
+Affine.Triangle.volume_eq_mul_div_circumradius
</details>
No changes to strong technical debt. No changes to weak technical debt.
Current commit 528545f253 Reference commit da6f8cef9e
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).
This pull request has conflicts, please merge master and resolve them.
This PR/issue depends on:
- ~~leanprover-community/mathlib4#44060~~
- ~~leanprover-community/mathlib4#44102~~
- ~~leanprover-community/mathlib4#44148~~
By Dependent Issues (🤖). Happy coding!
This pull request has conflicts, please merge master and resolve them.
/-- **Euler's theorem in geometry** for excenters. -//-- **Euler's theorem in geometry** for incenters. -/I think it's best to reserve the "not larger than" phrasing to partial orders.
/-- **Euler inequality**: the inradius of a triangle is less or equal to half of the circumradius. -//-- **Euler inequality**: the inradius of a triangle is less or equal to half of the
circumradius. -/maintainer merge
🚀 Pull request has been placed on the maintainer queue by jsm28.
Mathlib/Geometry/Euclidean/Incenter/Basic.lean +8 −0
lemma sum_excenterWeightsUnnorm_singleton_pos [Nat.AtLeastTwo n] (i : Fin (n + 1Mathlib/Geometry/Euclidean/Volume/Incenter.lean +11 −0
theorem excenterWeights_eq_excenterWeightsFace_div :Mathlib/Geometry/Euclidean/Volume/Triangle.lean +87 −0
Authors: Weiyi Wang, Matt KempsterThis file collects formulas for the area of a triangle and other related resultstheorem volume_sq_eq_mul_sub_mul_sub_mul_sub :