#44252 feat(Geometry/Euclidean): relate Simplex.volume and Orientation.volumeForm
In plain words
Proves the determinant formula for the volume of a simplex: in a Euclidean affine space of dimension , an -simplex has volume , with the volume form of an orientation (Orientation.volumeForm). The route: Hausdorff measure scales by normDet under affine maps (extending the existing linear-map result in NormDet.lean), the corner simplex of #44462 has volume , and every simplex is the image of the corner simplex under its cornerMap.
The transcriptions were written for revision 0f09c32; the PR is now at 584669f. 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.
PR description
This was inspired by the definition of (signed) triangle area in formal-conjectures. To connect the definition there and the new definition in Mathlib, this PR proves the two definitions are equal in absolute values. Orientation.volumeForm can further be used to derive Matrix form formulas.
On the definition cornerSimplex (comments moved from #44462):
This is similar to the object in #40479, but I dislike the name there, ~~and that PR has gone stale due to its deprecated dependencies~~ (this is no longer true). I also intentionally made this less general (instead of the corner simplex from any orthonormal basis, this one is only defined in EuclideanSpace). This makes the formulation of "a face of cornerSimplex is another cornerSimplex" more straightforward, as it simply corresponds to the index change in EuclideanSpace
That being sad, I am open to major changes such as
- If it is desired to generalize corner simplex to any orthonormal basis in any inner product space, I can certainly do that. (Alternatively, we can review #40479 and get it over the line)
- If there is a more elegant way to prove the main theorem without corner simplex, I can also do that.
- Naming
Conversation on GitHub 3
PR summary 584669f4b9
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
|<details><summary>3 files</summary> Mathlib.Geometry.Euclidean.Volume.Basic Mathlib.Geometry.Euclidean.Volume.Incenter Mathlib.Geometry.Euclidean.Volume.Triangle</details>|1|
| Mathlib.Geometry.Euclidean.CornerSimplex (new file)|2977|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ altitudeFoot_cornerSimplex
+ card_cornerSimplexFacePoints
+ cornerMap
+ cornerMap_injective
+ cornerMap_single
+ cornerMap_zero
+ cornerSimplex
+ cornerSimplexFacePoints
+ cornerSimplexFacePoints_succAboveOrderEmb
+ faceOpposite_cornerSimplex
+ face_cornerSimplex
+ height_cornerSimplex
+ map_cornerSimplex_cornerMap
+ normDet_cornerMap_linear
+ orderEmbOfFin_cornerSimplexFacePoints
+ volume_cornerSimplex
+ volume_eq_volumeForm
<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
584669f).
- +19 new declarations
- −0 removed declarations
+Affine.Simplex.altitudeFoot_cornerSimplex
+Affine.Simplex.card_cornerSimplexFacePoints
+Affine.Simplex.cornerMap
+Affine.Simplex.cornerMap_injective
+Affine.Simplex.cornerMap_single
+Affine.Simplex.cornerMap_zero
+Affine.Simplex.cornerSimplex
+Affine.Simplex.cornerSimplexFacePoints
+Affine.Simplex.cornerSimplexFacePoints_succAboveOrderEmb
+Affine.Simplex.cornerSimplex_points
+Affine.Simplex.faceOpposite_cornerSimplex
+Affine.Simplex.face_cornerSimplex
+Affine.Simplex.height_cornerSimplex
+Affine.Simplex.map_cornerSimplex_cornerMap
+Affine.Simplex.normDet_cornerMap_linear
+Affine.Simplex.orderEmbOfFin_cornerSimplexFacePoints
+Affine.Simplex.volume_cornerSimplex
+Affine.Simplex.volume_eq_volumeForm
+PiLp.single.hcongr_7
</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)| |-:|:-:|:-| |5165|1|exposed public sections| </details>
Current commit 584669f4b9 Reference commit 732c803ed5
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 pull request has conflicts, please merge master and resolve them.
Mathlib.lean +1 −0
public import Mathlib.Geometry.Euclidean.BasicMathlib/Geometry/Euclidean/CornerSimplex.lean +138 −0 new file
Mathlib/Geometry/Euclidean/Volume/Basic.lean +18 −1
Authors: Weiyi WangThis file provides lemmas related to the volume of a simplex.meta def evalVolume : PositivityExt where eval {u α} _ pα? e :=