Skip to content

[Merged by Bors] - chore(AlgebraicGeometry/EllipticCurve/*): improve some proofs - #22524

Closed
Multramate wants to merge 2 commits into
masterfrom
EllipticCurve.ERW
Closed

Multramate wants to merge 2 commits into
masterfrom
EllipticCurve.ERW

Conversation

@Multramate

Copy link
Copy Markdown
Collaborator

This update cleans up some proofs in the Jacobian and projective coordinate files:

  • remove some erws and linear_combination'
  • replace explicit add rewrites with the existing lemma add_of(_not)_equiv
  • change open Classical with open scoped Classical
  • add mk_ne_zero to simplify the proof of fromAffine_ne_zero
  • extract common variables in the map and baseChange lemmas

Open in Gitpod

@Multramate Multramate added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-algebraic-geometry Algebraic geometry labels Mar 3, 2025
@github-actions

github-actions Bot commented Mar 3, 2025

Copy link
Copy Markdown

PR summary 1978f2e8de

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.AlgebraicGeometry.EllipticCurve.Jacobian 1464 1463 -1 (-0.07%)
Mathlib.AlgebraicGeometry.EllipticCurve.Projective 1464 1463 -1 (-0.07%)
Import changes for all files
Files Import difference
5 files Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Basic Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Degree Mathlib.AlgebraicGeometry.EllipticCurve.Group Mathlib.AlgebraicGeometry.EllipticCurve.Jacobian Mathlib.AlgebraicGeometry.EllipticCurve.Projective
-1

Declarations diff

++ fromAffine_some_ne_zero
++ mk_ne_zero
++-- Equation.map
++-- baseChange_add
++-- equiv_iff_eq_of_Z_eq'
++-- fromAffine_ne_zero
++-- map_add
++-- map_addU
-++- map_dblU
-+-+ neg_smul
--++ baseChange_addX
--++ baseChange_addXYZ
--++ baseChange_addY
--++ baseChange_dblU
--++ baseChange_dblX
--++ baseChange_dblXYZ
--++ baseChange_dblY
--++ baseChange_dblZ
--++ baseChange_equation
--++ baseChange_neg
--++ baseChange_negAddY
--++ baseChange_negDblY
--++ baseChange_negY
--++ baseChange_nonsingular
--++ map_addX
--++ map_addXYZ
--++ map_addY
--++ map_addZ
--++ map_dblX
--++ map_dblXYZ
--++ map_dblY
--++ map_dblZ
--++ map_equation
--++ map_neg
--++ map_negAddY
--++ map_negDblY
--++ map_negY
--++ map_nonsingular

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

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

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


Decrease in tech debt: (relative, absolute) = (10.00, 0.01)
Current number Change Type
1221 -10 erw

Current commit 1978f2e8de
Reference commit c94d2e2de0

You can run this locally as

./scripts/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 removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Mar 3, 2025
@Multramate Multramate changed the title chore(AlgebraicGeometry/EllipticCurve): improve some proofs chore(AlgebraicGeometry/EllipticCurve/*): improve some proofs Mar 4, 2025
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Mar 4, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Mar 4, 2025
This update cleans up some proofs in the Jacobian and projective coordinate files:
- remove some `erw`s and `linear_combination'`
- replace explicit `add` rewrites with the existing lemma `add_of(_not)_equiv`
- change `open Classical` with `open scoped Classical`
- add `mk_ne_zero` to simplify the proof of `fromAffine_ne_zero`
- extract common variables in the `map` and `baseChange` lemmas
@mathlib-bors

mathlib-bors Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(AlgebraicGeometry/EllipticCurve/*): improve some proofs [Merged by Bors] - chore(AlgebraicGeometry/EllipticCurve/*): improve some proofs Mar 4, 2025
@mathlib-bors mathlib-bors Bot closed this Mar 4, 2025
@mathlib-bors
mathlib-bors Bot deleted the EllipticCurve.ERW branch March 4, 2025 14:12
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-algebraic-geometry Algebraic geometry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants