Skip to content

[Merged by Bors] - feat: add dist_center_midpoint_lt_radius for spheres - #35957

Closed
Scarlett-le wants to merge 4 commits into
leanprover-community:masterfrom
Scarlett-le:feat/sphere-center-midpoint-perp
Closed

Scarlett-le wants to merge 4 commits into
leanprover-community:masterfrom
Scarlett-le:feat/sphere-center-midpoint-perp

Conversation

@Scarlett-le

@Scarlett-le Scarlett-le commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds two results about chords of spheres in Euclidean affine spaces:

  • Sphere.inner_vsub_center_midpoint_vsub: the vector from the center
    of a sphere to the midpoint of a chord is orthogonal to the chord.

  • Sphere.dist_center_midpoint_lt_radius: the distance from the center
    to the midpoint of a chord with distinct endpoints is strictly less
    than the radius. This follows by applying the Pythagorean theorem to
    the right triangle formed by the center, the midpoint, and an endpoint,
    using the orthogonality result above.

@github-actions

github-actions Bot commented Mar 2, 2026 •

Copy link
Copy Markdown

PR summary 02398f3984

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Sphere.dist_center_lt_radius_of_sbtw
+ Sphere.dist_center_midpoint_lt_radius
+ Sphere.inner_vsub_center_midpoint_vsub

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh 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 Mar 2, 2026
@Scarlett-le Scarlett-le changed the title feat: add Sphere.inner_vsub_center_midpoint_vsub feat: add dist_center_midpoint_lt_radius for spheres Mar 3, 2026
@jsm28

jsm28 commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

maintainer merge

@github-actions

github-actions Bot commented Mar 5, 2026

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 Mar 5, 2026

@ocfnash ocfnash left a comment

Copy link
Copy Markdown
Contributor

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 added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 10, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Mar 10, 2026
Adds two results about chords of spheres in Euclidean affine spaces:

- `Sphere.inner_vsub_center_midpoint_vsub`: the vector from the center
  of a sphere to the midpoint of a chord is orthogonal to the chord.

- `Sphere.dist_center_midpoint_lt_radius`: the distance from the center
  to the midpoint of a chord with distinct endpoints is strictly less
  than the radius. This follows by applying the Pythagorean theorem to
  the right triangle formed by the center, the midpoint, and an endpoint,
  using the orthogonality result above.

Co-authored-by: Scarlett-le <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

mathlib-bors Bot pushed a commit that referenced this pull request Mar 10, 2026
Adds two results about chords of spheres in Euclidean affine spaces:

- `Sphere.inner_vsub_center_midpoint_vsub`: the vector from the center
  of a sphere to the midpoint of a chord is orthogonal to the chord.

- `Sphere.dist_center_midpoint_lt_radius`: the distance from the center
  to the midpoint of a chord with distinct endpoints is strictly less
  than the radius. This follows by applying the Pythagorean theorem to
  the right triangle formed by the center, the midpoint, and an endpoint,
  using the orthogonality result above.

Co-authored-by: Scarlett-le <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: add dist_center_midpoint_lt_radius for spheres [Merged by Bors] - feat: add dist_center_midpoint_lt_radius for spheres Mar 10, 2026
@mathlib-bors mathlib-bors Bot closed this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants