Skip to content

[Merged by Bors] - feat(Geometry/Euclidean): dist with affineCombination on one side - #44102

Closed
wwylele wants to merge 2 commits into
leanprover-community:masterfrom
wwylele:dist-affinecomb
Closed

wwylele wants to merge 2 commits into
leanprover-community:masterfrom
wwylele:dist-affinecomb

Conversation

@wwylele

@wwylele wwylele commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Supplementing existing theorems about dist affineCombination affineCombination, this one calculates dist affineCombination Q with affineCombination only on one side.

I intentionally did not follow the existing style in the file, and wrote x ^ 2 instead of x * x. The latter results in unnecessary duplication and is not ring-normal form. The x * x style seems to appear a lot in old Euclidean geometry code. We should refactor them but that can be later.


@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

PR summary caf5113a3e

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ dist_affineCombination_const_sq

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

  • +1 new declarations
  • −0 removed declarations
+EuclideanGeometry.dist_affineCombination_const_sq

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

Current commit caf5113a3e
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 23, 2026
@jsm28

jsm28 commented Sep 24, 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 24, 2026
@riccardobrasca

Copy link
Copy Markdown
Member

Thanks!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Oct 17, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Oct 17, 2026
…4102)

Supplementing existing theorems about `dist affineCombination affineCombination`, this one calculates `dist affineCombination Q` with `affineCombination` only on one side.

I intentionally did not follow the existing style in the file, and wrote `x ^ 2` instead of `x * x`. The latter results in unnecessary duplication and is not `ring`-normal form. The `x * x` style seems to appear a lot in old Euclidean geometry code. We should refactor them but that can be later.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Oct 17, 2026
@mathlib-bors

mathlib-bors Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Geometry/Euclidean): dist with affineCombination on one side [Merged by Bors] - feat(Geometry/Euclidean): dist with affineCombination on one side Oct 17, 2026
@mathlib-bors mathlib-bors Bot closed this Oct 17, 2026
@wwylele
wwylele deleted the dist-affinecomb branch October 17, 2026 12:47
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.

3 participants