Skip to content

feat: signed power of a point and dimension-free power-of-a-point converses - #40651

Open
Scarlett-le wants to merge 5 commits into
leanprover-community:masterfrom
Scarlett-le:feat/euclidean-power-of-a-point-converses
Open

Scarlett-le wants to merge 5 commits into
leanprover-community:masterfrom
Scarlett-le:feat/euclidean-power-of-a-point-converses

Conversation

@Scarlett-le

Copy link
Copy Markdown
Contributor

This PR reworks the converse direction of the power of a point in Mathlib/Geometry/Euclidean/Sphere/Power.lean to be dimension-free, and adds the converse of the intersecting secants theorem.

Main additions:

  • Sphere.inner_vsub_vsub_eq_power: the signed power ⟪a -ᵥ p, b -ᵥ p⟫ of a point
    p on a secant line through a, b ∈ s is exactly s.power p; this unifies the
    chord and secant cases without splitting on the sign.
  • Sphere.mem_of_inner_vsub_vsub_eq_power_of_mem_line: a one-secant converse.
  • cospherical_of_inner_vsub_eq_inner_vsub: a dimension-free converse to the power
    of a point, stated with the signed invariant.
  • cospherical_of_mul_dist_eq_mul_dist_of_angle_eq_zero: the converse of the
    intersecting secants theorem (new).

Main change:

  • cospherical_of_mul_dist_eq_mul_dist_of_angle_eq_pi (converse of the intersecting
    chords theorem) is reproved via cospherical_of_inner_vsub_eq_inner_vsub, going
    through the circumsphere of the triangle {p₁, p₂, p₃}. It no longer reduces to
    the 2D case, so the [Fact (finrank ℝ V = 2)] / [Module.Oriented ℝ V (Fin 2)]
    machinery, the private auxiliary lemma, and the AffineIsometry embedding into the
    affine span are all removed. The statement is unchanged.

Imports Mathlib.Geometry.Euclidean.Angle.Sphere and
Mathlib.Geometry.Euclidean.Similarity are dropped; Mathlib.Geometry.Euclidean.Circumcenter
is added.

@github-actions

github-actions Bot commented Jun 16, 2026 •

Copy link
Copy Markdown

PR summary 2c1a94b794

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Geometry.Euclidean.Sphere.Power 2503 2418 -85 (-3.40%)
Import changes for all files
Files Import difference
Mathlib.Geometry.Euclidean.Sphere.Power -85
Mathlib.Geometry.Euclidean.Sphere.Ptolemy -5

Declarations diff (regex)

+ cos_angle_mul_dist_mul_dist
+ cospherical_of_inner_vsub_eq_inner_vsub
+ cospherical_of_mul_dist_eq_mul_dist_of_angle_eq_zero
+ inner_vsub_vsub_eq_power
+ mem_of_inner_vsub_vsub_eq_power_of_mem_line
- cospherical_of_mul_dist_eq_mul_dist_of_angle_eq_pi_aux

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 2c1a94b).

  • +5 new declarations
  • −0 removed declarations
+EuclideanGeometry.Sphere.inner_vsub_vsub_eq_power
+EuclideanGeometry.Sphere.mem_of_inner_vsub_vsub_eq_power_of_mem_line
+EuclideanGeometry.cos_angle_mul_dist_mul_dist
+EuclideanGeometry.cospherical_of_inner_vsub_eq_inner_vsub
+EuclideanGeometry.cospherical_of_mul_dist_eq_mul_dist_of_angle_eq_zero

Decrease in strong tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (strong)
363 -1 adaptation notes
No changes to weak technical debt.

Current commit 2c1a94b794
Reference commit 06d0af0b87

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 Jun 16, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 14, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@Scarlett-le
Scarlett-le force-pushed the feat/euclidean-power-of-a-point-converses branch from f9d5490 to 41eff4c Compare July 28, 2026 08:32
@github-actions github-actions Bot added tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Jul 28, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 12, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

# Conflicts:
#	Mathlib/Geometry/Euclidean/Sphere/Power.lean
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 14, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 17, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 18, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 21, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

Keep the signed-power converse proofs while incorporating upstream namespace and proof-style updates. Sort imports to satisfy the current linter.

Validated with lake build Mathlib.Geometry.Euclidean.Sphere.Ptolemy, including Sphere.Power and Angle.Unoriented.Affine.
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 23, 2026
@jsm28

jsm28 commented Nov 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 Nov 28, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 30, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-euclidean-geometry Affine and axiomatic geometry tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants