Skip to content

[Merged by Bors] - feat(Geometry/Euclidean): cross section perpendicular to the altitude of the simplex - #43054

Closed
wwylele wants to merge 5 commits into
leanprover-community:masterfrom
wwylele:volume-simplex-orth
Closed

wwylele wants to merge 5 commits into
leanprover-community:masterfrom
wwylele:volume-simplex-orth

Conversation

@wwylele

@wwylele wwylele commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

Extracted from #37910. This sets up affine geometry lemma for calculating the volume. The leaf lemma in this PR is Affine.Simplex.closedInterior_inter_affineSubspaceMk'_lineMap_altitudeFoot, which says that {cross section parallel to the base} and {cross section perpendicular to the altitude} is the same


Open in Gitpod

@github-actions

github-actions Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

PR summary e49c6472e4

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Geometry.Euclidean.Altitude 2179 2180 +1 (+0.05%)
Import changes for all files
Files Import difference
5 files Mathlib.Geometry.Euclidean.Altitude Mathlib.Geometry.Euclidean.Angle.Incenter Mathlib.Geometry.Euclidean.Incenter Mathlib.Geometry.Euclidean.MongePoint Mathlib.Geometry.Euclidean.NinePointCircle
1

Declarations diff (regex)

+ HasOrthogonalProjection.comap
+ affineSubspaceMk'_lineMap_altitudeFoot_eq_shift
+ closedInterior_inter_affineSubspaceMk'_lineMap_altitudeFoot
+ comap_orthogonal
+ comap_orthogonal_of_le
+ lineMap_mem_shift
+ orthogonal_inf_orthogonal_inf_of_le
+ vadd_mem_shift

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 e49c647).

  • +8 new declarations
  • −0 removed declarations
+Affine.Simplex.affineSubspaceMk'_lineMap_altitudeFoot_eq_shift
+Affine.Simplex.closedInterior_inter_affineSubspaceMk'_lineMap_altitudeFoot
+AffineSubspace.lineMap_mem_shift
+AffineSubspace.vadd_mem_shift
+Submodule.HasOrthogonalProjection.comap
+Submodule.comap_orthogonal
+Submodule.comap_orthogonal_of_le
+Submodule.orthogonal_inf_orthogonal_inf_of_le

No changes to strong technical debt.
No changes to weak technical debt.

Current commit e49c6472e4
Reference commit 6dcdb48d50

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 relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@wwylele
wwylele force-pushed the volume-simplex-orth branch 2 times, most recently from c813038 to fa98cb2 Compare August 22, 2026 21:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds affine-geometric support for expressing simplex cross-sections perpendicular to an altitude as shifted opposite faces.

Changes:

  • Adds orthogonal-complement lemmas for linear isometries and relative submodules.
  • Adds membership lemmas for shifted affine subspaces.
  • Proves the simplex altitude cross-section identities.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Mathlib/Analysis/InnerProductSpace/Orthogonal.lean Adds orthogonal-complement map/comap identities.
Mathlib/Analysis/InnerProductSpace/Projection/Basic.lean Transfers orthogonal projections through isometric comaps.
Mathlib/Analysis/InnerProductSpace/Projection/Submodule.lean Proves relative orthogonal complementation is involutive.
Mathlib/LinearAlgebra/AffineSpace/AffineSubspace/Defs.lean Adjusts affine-infimum coercion notation.
Mathlib/LinearAlgebra/AffineSpace/AffineSubspace/Shift.lean Adds shifted-subspace membership lemmas.
Mathlib/Geometry/Euclidean/Altitude.lean Establishes the perpendicular cross-section identities.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@wwylele
wwylele requested a review from CoolRmal August 22, 2026 22:03
@wwylele wwylele added the t-euclidean-geometry Affine and axiomatic geometry label Aug 22, 2026
@wwylele wwylele changed the title feat(Geometry/Euclidean): cross-section perpendicular to the altitude of the simplex feat(Geometry/Euclidean): cross section perpendicular to the altitude of the simplex Aug 23, 2026
@CoolRmal

Copy link
Copy Markdown
Contributor

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by CoolRmal.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 30, 2026

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 31, 2026
@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 31, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 31, 2026
… of the simplex (#43054)

Extracted from #37910. This sets up affine geometry lemma for calculating the volume. The leaf lemma in this PR is `Affine.Simplex.closedInterior_inter_affineSubspaceMk'_lineMap_altitudeFoot`, which says that {cross section parallel to the base} and {cross section perpendicular to the altitude} is the same
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 31, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Geometry/Euclidean): cross section perpendicular to the altitude of the simplex [Merged by Bors] - feat(Geometry/Euclidean): cross section perpendicular to the altitude of the simplex Aug 31, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 31, 2026
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
… of the simplex (leanprover-community#43054)

Extracted from leanprover-community#37910. This sets up affine geometry lemma for calculating the volume. The leaf lemma in this PR is `Affine.Simplex.closedInterior_inter_affineSubspaceMk'_lineMap_altitudeFoot`, which says that {cross section parallel to the base} and {cross section perpendicular to the altitude} is the same
@wwylele
wwylele deleted the volume-simplex-orth branch November 26, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-euclidean-geometry Affine and axiomatic geometry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants