Repository navigation
Conversation
PR summary e9c0e4a341
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Geometry.Euclidean.Angle.Unoriented.Projection | 2370 | 2392 | +22 (+0.93%) |
| Mathlib.Geometry.Euclidean.Triangle | 2444 | 2453 | +9 (+0.37%) |
Import changes for all files
| Files | Import difference |
|---|---|
3 filesMathlib.Geometry.Euclidean.Angle.Oriented.Projection Mathlib.Geometry.Euclidean.Sphere.Power Mathlib.Geometry.Euclidean.Sphere.Ptolemy |
3 |
Mathlib.Geometry.Euclidean.Similarity |
6 |
3 filesMathlib.Geometry.Euclidean.Angle.Unoriented.TriangleInequality Mathlib.Geometry.Euclidean.Congruence Mathlib.Geometry.Euclidean.Triangle |
9 |
Mathlib.Geometry.Euclidean.Angle.Unoriented.Projection |
22 |
Mathlib.Geometry.Euclidean.Volume.Triangle (new file) |
2819 |
Declarations diff (regex)
+ _root_.Collinear.sin_angle_eq_left
+ _root_.Collinear.sin_angle_eq_right
+ dist_orthogonalProjection_eq_sin_mul_dist
+ dist_orthogonalProjection_eq_sin_mul_dist_of_collinear
+ height_eq_sin_mul_dist
+ volume_eq_height_mul
+ volume_eq_mul_sin
You can run this locally as follows
## 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>The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
e9c0e4a).
- +7 new declarations
- −0 removed declarations
+Affine.Triangle.height_eq_sin_mul_dist
+Affine.Triangle.volume_eq_height_mul
+Affine.Triangle.volume_eq_mul_sin
+Collinear.sin_angle_eq_left
+Collinear.sin_angle_eq_right
+EuclideanGeometry.dist_orthogonalProjection_eq_sin_mul_dist
+EuclideanGeometry.dist_orthogonalProjection_eq_sin_mul_dist_of_collinearNo changes to strong technical debt.
No changes to weak technical debt.
Current commit e9c0e4a341
Reference commit 0740637818
This script lives in the mathlib-ci 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).
fea7611 to
c1ff4ef
Compare
|
This pull request is now in draft mode. No active bors state needed cleanup. While this PR remains draft, bors will ignore commands on this PR. Mark it ready for review before using commands like |
6b2f7fa to
1a7cfdf
Compare
|
This pull request has conflicts, please merge |
1a7cfdf to
7c7dcb2
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Proof-only dependencies should not be publicly re-exported, and one documentation typo remains.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 3
Open (3)
What changed in this PR
Adds triangle area formulas based on height and sine.
Changes:
- Adds projection-distance and triangle-height lemmas.
- Proves base-height and side-angle area formulas.
- Exposes the new volume module through
Mathlib.lean.
| File | Description |
|---|---|
Projection.lean |
Adds projection-distance sine identities. |
Triangle.lean |
Relates triangle height to side length and angle. |
Volume/Triangle.lean |
Adds two triangle area formulas. |
Mathlib.lean |
Imports the new module. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
7c7dcb2 to
0262b15
Compare
0262b15 to
5dbd492
Compare
Co-authored-by: Snir Broshi <[email protected]>
|
Thanks! |
Co-authored-by: Snir Broshi <[email protected]>
|
maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by jsm28. |
|
Merged from master to resolve the conflict on the import list |
|
This pull request has conflicts, please merge |
|
|
||
| theorem dist_orthogonalProjection_eq_sin_mul_dist (p : P) {q : P} {s : AffineSubspace ℝ P} | ||
| [s.direction.HasOrthogonalProjection] (h : q ∈ s) : | ||
| haveI : Nonempty s := ⟨q, h⟩ |
There was a problem hiding this comment.
I have to say, this pattern is quite unpleasant, but I'm not seeing an obvious way around it.
This PR proves two basic formulas for triangle area: `s = 1/2 * h * b = 1/2 * a * b * sin C` Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
|
Pull request successfully merged into master. Build succeeded: |

This PR proves two basic formulas for triangle area:
s = 1/2 * h * b = 1/2 * a * b * sin C