Repository navigation
Conversation
PR summary d76e27215bImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
88a81c7 to
effd2a3
Compare
|
This pull request has conflicts, please merge |
|
This PR/issue depends on: |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the promotion of Heron’s formula into the triangle-area API.
No open issues 🎉
What changed in this PR
Promotes Heron’s formula from the archive into mathlib’s triangle-area API, building on the area formulas introduced in #41220.
Changes:
- Generalizes the point-based identity to include degenerate triangles and aligns side indexing with existing conventions.
- Adds Heron’s formula for triangle volume and its squared form.
- Removes the archived proof and updates the 100 Theorems reference.
| File | Description |
|---|---|
Mathlib/Geometry/Euclidean/Volume/Triangle.lean |
Adds the generalized identity and both triangle-volume formulas. |
docs/100.yaml |
Points Heron’s formula to the main-library theorem. |
Archive/Wiedijk100Theorems/HeronsFormula.lean |
Removes the superseded archived proof. |
Archive.lean |
Removes the deleted archive module’s import. |
Review effort: Balanced
|
This is ready for review |
|
maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by jsm28. |
|
This pull request has conflicts, please merge |
j-loreaux
left a comment
There was a problem hiding this comment.
Thanks. We can make some improvements here.
|
✌️ wwylele can now approve this pull request until 2026-11-24 22:43 UTC (in 2 weeks). To approve and merge, reply with
|
|
bors r+ |
…#44148) Now we have a proper definition of triangle's area, we can make Heron's formula an official theorem in the main library. The original proof was mostly unchanged, with only the following modification **1. Index change** The naming and indexing was changed from ``` let a := dist p₁ p₂ let b := dist p₃ p₂ let c := dist p₁ p₃ ``` to ``` let a := dist p₁ p₂ let b := dist p₁ p₃ let c := dist p₂ p₃ ``` This is to follow the existing indexing convention of "1-2, 1-3, 2-3" for triangles. We have similar order for `h₁₂ h₁₃ h₂₃` **2. Generalized to all degenerate cases**: Removed `(h1 : p₁ ≠ p₂) (h2 : p₃ ≠ p₂)`
|
Pull request successfully merged into master. Build succeeded: |
Now we have a proper definition of triangle's area, we can make Heron's formula an official theorem in the main library. The original proof was mostly unchanged, with only the following modification
1. Index change
The naming and indexing was changed from
to
This is to follow the existing indexing convention of "1-2, 1-3, 2-3" for triangles. We have similar order for
h₁₂ h₁₃ h₂₃2. Generalized to all degenerate cases: Removed
(h1 : p₁ ≠ p₂) (h2 : p₃ ≠ p₂)