Skip to content

refactor(AlgebraicGeometry/EllipticCurve/*): replace Fin 3 with products - #25988

Draft
Multramate wants to merge 112 commits into
leanprover-community:masterfrom
Multramate:EllipticCurve.Fin3
Draft

Multramate wants to merge 112 commits into
leanprover-community:masterfrom
Multramate:EllipticCurve.Fin3

Conversation

@Multramate

Copy link
Copy Markdown
Collaborator

This PR continues the work from #24593.

Original PR: #24593

@Multramate

Copy link
Copy Markdown
Collaborator Author

Comments from Original PR #24593

This section contains 3 comment(s) from the original PR, excluding bot comments.


@github-actions (2025-05-04 13:17 UTC):

PR summary 536e736519

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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) = (20.00, 0.02)
Current number Change Type
833 -20 erw

Current commit 536e736519
Reference commit 57ed0a13e7

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

@leanprover-community-bot-assistant (2025-05-07 07:13 UTC):
This pull request has conflicts, please merge master and resolve them.


@leanprover-community-bot-assistant (2025-06-03 10:31 UTC):
This pull request has conflicts, please merge master and resolve them.

@github-actions

Copy link
Copy Markdown

PR summary 57ed0a13e7

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

++ map_eq
++ map_equiv_map
++ map_fin3
++ mk_smul
++-- X_eq_iff
++-- Y_eq_iff
++-- Y_eq_iff'
++-- addMap_of_Y_eq
++-- addMap_of_Z_eq_zero_left
++-- addMap_of_Z_eq_zero_right
++-- addMap_of_Z_ne_zero
++-- addU
++-- addU_ne_zero_of_Y_ne
++-- addU_of_Z_eq_zero_left
++-- addU_of_Z_eq_zero_right
++-- addU_smul
++-- addXYZ_X
++-- addXYZ_Y
++-- addXYZ_Z
++-- addXYZ_of_X_eq
++-- addXYZ_of_Z_ne_zero
++-- addX_eq
++-- addX_of_Z_ne_zero
++-- addY_of_X_eq
++-- addY_of_Z_ne_zero
++-- add_of_X_ne
++-- add_of_Y_eq
++-- add_of_Y_ne
++-- add_of_Y_ne'
++-- add_of_Z_eq_zero
++-- comp_equiv_comp
++-- comp_fin3
++-- comp_smul
++-- dblU_ne_zero_of_Y_eq
++-- dblXYZ_X
++-- dblXYZ_Y
++-- dblXYZ_Z
++-- dblXYZ_of_Y_eq
++-- dblXYZ_of_Z_ne_zero
++-- dblX_of_Z_ne_zero
++-- dblY_of_Z_ne_zero
++-- equation_of_Z_ne_zero
++-- equiv_of_X_eq_of_Y_eq
++-- equiv_of_Z_eq_zero
++-- equiv_some_of_Z_ne_zero
++-- equiv_zero_of_Z_eq_zero
++-- eval_polynomialX_of_Z_ne_zero
++-- eval_polynomialY_of_Z_ne_zero
++-- eval_polynomial_of_Z_ne_zero
++-- fin3_def
++-- fin3_def_ext
++-- isUnit_Y_of_Z_eq_zero
++-- isUnit_addU_of_Y_ne
++-- isUnit_addZ_of_X_ne
++-- isUnit_dblU_of_Y_eq
++-- isUnit_dblZ_of_Y_ne
++-- isUnit_dblZ_of_Y_ne'
++-- map_add
++-- map_addU
++-- negAddY_eq
++-- negAddY_of_X_eq
++-- negAddY_of_Z_ne_zero
++-- negDblY_of_Z_ne_zero
++-- negMap_of_Z_eq_zero
++-- negMap_of_Z_ne_zero
++-- negY_eq
++-- negY_of_Z_ne_zero
++-- neg_X
++-- neg_Y
++-- neg_Z
++-- neg_of_Z_ne_zero
++-- nonsingular_add
++-- nonsingular_iff_of_Y_eq_negY
++-- nonsingular_iff_of_Z_ne_zero
++-- nonsingular_neg
++-- nonsingular_of_Z_ne_zero
++-- smul_fin3
++-- smul_fin3_ext
++-- toAffine
++-- toAffineLift_eq
++-- toAffineLift_of_Z_eq_zero
++-- toAffineLift_of_Z_ne_zero
++-- toAffine_add
++-- toAffine_neg
++-- toAffine_of_Z_eq_zero
++-- toAffine_of_Z_ne_zero
++-- toAffine_of_equiv
++-- toAffine_of_singular
++-- toAffine_smul
+--+ dblU
+--+ dblU_eq
+--+ dblU_of_Z_eq_zero
-++ map_smul
-++- addX_of_X_eq
-++- dblU_smul
-++- dblY_of_Y_eq
-++- map_polynomialX
-++- map_polynomialY
-++- map_polynomialZ
-++- negDblY_of_Y_eq
-++- neg_of_Z_eq_zero
-+-+ Equation.map
-+-+ addXYZ_of_Z_eq_zero_left
-+-+ addXYZ_of_Z_eq_zero_right
-+-+ addXYZ_self
-+-+ addX_neg
-+-+ addX_of_Z_eq_zero_left
-+-+ addX_of_Z_eq_zero_right
-+-+ addX_self
-+-+ addY_of_X_eq'
-+-+ addY_of_Z_eq_zero_left
-+-+ addY_of_Z_eq_zero_right
-+-+ addY_self
-+-+ addZ_ne_zero_of_X_ne
-+-+ addZ_of_X_eq
-+-+ addZ_of_Z_eq_zero_left
-+-+ addZ_of_Z_eq_zero_right
-+-+ add_of_Z_eq_zero_left
-+-+ add_of_Z_eq_zero_right
-+-+ dblXYZ_of_Z_eq_zero
-+-+ dblX_of_Z_eq_zero
-+-+ dblY_of_Z_eq_zero
-+-+ map_polynomial
-+-+ negAddY_eq'
-+-+ negAddY_of_Z_eq_zero_left
-+-+ negAddY_of_Z_eq_zero_right
-+-+ negDblY_of_Z_eq_zero
-+-+ negY_of_Z_eq_zero
--++ Equation
--++ Nonsingular
--++ X_eq_of_equiv
--++ Y_eq_negY_of_Y_eq
--++ Y_eq_of_Y_ne
--++ Y_eq_of_Y_ne'
--++ Y_eq_of_equiv
--++ Y_ne_negY_of_Y_ne
--++ Y_ne_negY_of_Y_ne'
--++ Y_ne_zero_of_Z_eq_zero
--++ Y_sub_Y_add_Y_sub_negY
--++ Y_sub_Y_mul_Y_sub_negY
--++ Z_eq_zero_of_equiv
--++ add
--++ addMap_eq
--++ addX
--++ addXYZ
--++ addXYZ_neg
--++ addXYZ_smul
--++ addX_eq'
--++ addX_smul
--++ addY
--++ addY_neg
--++ addY_smul
--++ addZ
--++ addZ_neg
--++ addZ_self
--++ addZ_smul
--++ add_equiv
--++ add_of_eq
--++ add_of_equiv
--++ add_of_not_equiv
--++ add_self
--++ add_smul_equiv
--++ add_smul_of_equiv
--++ add_smul_of_not_equiv
--++ dblX
--++ dblXYZ
--++ dblXYZ_smul
--++ dblX_of_Y_eq
--++ dblX_smul
--++ dblY
--++ dblY_smul
--++ dblZ
--++ dblZ_ne_zero_of_Y_ne
--++ dblZ_ne_zero_of_Y_ne'
--++ dblZ_of_Y_eq
--++ dblZ_of_Z_eq_zero
--++ dblZ_smul
--++ equation_iff
--++ equation_of_Z_eq_zero
--++ equation_of_equiv
--++ equation_smul
--++ equation_some
--++ equation_zero
--++ equiv_iff_eq_of_Z_eq
--++ equiv_iff_eq_of_Z_eq'
--++ eval_polynomial
--++ eval_polynomialX
--++ eval_polynomialY
--++ eval_polynomialZ
--++ map_neg
--++ mk_ne_zero
--++ neg
--++ negAddY
--++ negAddY_neg
--++ negAddY_of_X_eq'
--++ negAddY_self
--++ negAddY_smul
--++ negDblY
--++ negDblY_smul
--++ negMap_eq
--++ negY
--++ negY_smul
--++ neg_equiv
--++ neg_smul
--++ neg_smul_equiv
--++ nonsingularLift_iff
--++ nonsingularLift_zero
--++ nonsingular_iff
--++ nonsingular_of_Z_eq_zero
--++ nonsingular_of_equiv
--++ nonsingular_smul
--++ nonsingular_some
--++ nonsingular_zero
--++ not_equiv_of_X_ne
--++ not_equiv_of_Y_ne
--++ not_equiv_of_Z_eq_zero_left
--++ not_equiv_of_Z_eq_zero_right
--++ polynomial_relation
--++ smul_eq
--++ smul_equiv
--++ smul_equiv_smul
--++ toAffineLift_some
--++ toAffine_some
--++ toAffine_zero
--++ zero_point

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) = (20.00, 0.02)
Current number Change Type
833 -20 erw

Current commit 536e736519
Reference commit 57ed0a13e7

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

@leanprover-community-bot-assistant

Copy link
Copy Markdown
Contributor

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

@leanprover-community-bot-assistant leanprover-community-bot-assistant 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 5, 2025
@Multramate
Multramate marked this pull request as draft November 27, 2026 11:43

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

merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-algebraic-geometry Algebraic geometry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants