Skip to content

[Merged by Bors] - feat(Geometry/Euclidean): lemma about excenters and volumes - #44060

Closed
wwylele wants to merge 6 commits into
leanprover-community:masterfrom
wwylele:volume-incenter
Closed

wwylele wants to merge 6 commits into
leanprover-community:masterfrom
wwylele:volume-incenter

Conversation

@wwylele

@wwylele wwylele commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

This proves that volume = inradius * surface / n


Open in Gitpod

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

PR summary 073082d89f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Geometry.Euclidean.Volume.Incenter (new file) 2801

Declarations diff (regex)

+ ExcenterExists.volume_eq_exradius_mul
+ excenterExists_iff_sum_excenterWeightsFace_ne_zero
+ excenterWeightsFace
+ excenterWeightsFace_empty
+ excenterWeightsFace_eq_volume_mul_excenterWeightsUnnorm
+ excenterWeightsFace_map
+ excenterWeightsFace_ne_zero
+ excenterWeightsFace_reindex
+ excenterWeightsFace_restrict
+ excenterWeights_eq_excenterWeightsFace_div
+ volume_eq_inradius_mul

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 073082d).

  • +12 new declarations
  • −0 removed declarations
+Affine.Simplex.ExcenterExists.volume_eq_exradius_mul
+Affine.Simplex.excenterExists_iff_sum_excenterWeightsFace_ne_zero
+Affine.Simplex.excenterWeightsFace
+Affine.Simplex.excenterWeightsFace.congr_simp
+Affine.Simplex.excenterWeightsFace_empty
+Affine.Simplex.excenterWeightsFace_eq_volume_mul_excenterWeightsUnnorm
+Affine.Simplex.excenterWeightsFace_map
+Affine.Simplex.excenterWeightsFace_ne_zero
+Affine.Simplex.excenterWeightsFace_reindex
+Affine.Simplex.excenterWeightsFace_restrict
+Affine.Simplex.excenterWeights_eq_excenterWeightsFace_div
+Affine.Simplex.volume_eq_inradius_mul

No changes to strong technical debt.

Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (weak)
5095 1 exposed public sections

Current commit 073082d89f
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 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).

@github-actions github-actions Bot added the t-euclidean-geometry Affine and axiomatic geometry label Sep 22, 2026

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.

Copilot review overview

🟡 Changes recommended

A newly exposed theorem has a misspelled public declaration name.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Adds simplex volume identities involving excenters, incenters, exradii, and face volumes.

Changes:

  • Defines signed face-volume excenter weights.
  • Proves invariance, normalization, and volume formulas.
  • Exposes the new module through Mathlib.lean.
File Description
Mathlib/​Geometry/​Euclidean/​Volume/​Incenter.lean Adds excenter face weights and volume identities.
Mathlib.lean Imports the new volume module.

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

@jsm28

jsm28 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

maintainer merge

@github-actions

Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Oct 12, 2026
`Mathlib.Geometry.Euclidean.Incenter` is getting close to the 1500-line limit, especially once the changes from #31981 are in. Move to `Mathlib.Geometry.Euclidean.Incenter.Basic` in preparation for splitting up the file and adding further files within the new directory.

---

Notes on interaction with other PRs: #31981 (awaiting further review after the last round of revisions on 11 Sep) adds more to this file, and thus motivates splitting up this file, together with a request in review of #32294 for additional definitions that would naturally go in another file under `Mathlib.Geometry.Euclidean.Incenter`; I believe git can readily handle merging additions to a file and a verbatim renaming of that file, but probably not merging additions with splitting up that file. #44060 (in maintainer-merge state since 28 Sep) adds a new import of this file and would thus need a trivial update for the renaming.

@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-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 17, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2026
This proves that volume = inradius * surface / n
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2026
This proves that volume = inradius * surface / n
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2026
This proves that volume = inradius * surface / n
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Geometry/Euclidean): lemma about excenters and volumes [Merged by Bors] - feat(Geometry/Euclidean): lemma about excenters and volumes Nov 17, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 17, 2026
@wwylele
wwylele deleted the volume-incenter 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