Skip to content

[Merged by Bors] - chore(AlgebraicGeometry/EllipticCurve/*): remove redundant names - #22479

Closed
Multramate wants to merge 6 commits into
masterfrom
EllipticCurve.Redundant
Closed

Multramate wants to merge 6 commits into
masterfrom
EllipticCurve.Redundant

Conversation

@Multramate

Copy link
Copy Markdown
Collaborator

Clean up a few redundant/bad names:

  • nonsingular_zero_of_Δ_ne_zero is a special case of nonsingular_of_Δ_ne_zero, which itself is a (very easy) special case of equation_iff_nonsingular_of_Δ_ne_zero, and similarly with nonsingular and equation_iff_nonsingular
  • equation_neg(_of) and nonsingular_neg(_of) are special cases of equation_neg_iff and nonsingular_neg_iff
  • mapFun and toClassFun are function versions of the group homomorphisms map and toClass
  • mk_XYIdeal'_mul_mk_XYIdeal'_of_Yeq should have been named mk_XYIdeal'_neg_mul according to naming conventions
  • all instance names since they can be named automatically

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 2, 2025
@github-actions

github-actions Bot commented Mar 2, 2025 •

Copy link
Copy Markdown

PR summary 81144c444e

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ equation_iff_nonsingular
+ equation_iff_nonsingular_of_Δ_ne_zero
+ instance : AddZeroClass W.Point
+ mk_XYIdeal'_neg_mul
++ instance : Neg W.Point
++ instance [Nontrivial R] : Zero W'.Point
+++ instance : Add W.Point
- instAddZeroClassPoint
- of
-- instNegPoint
-- instZeroPoint
--- instAddPoint

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.


No changes to technical debt.

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
@riccardobrasca

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
)

Clean up a few redundant/bad names:
- `nonsingular_zero_of_Δ_ne_zero` is a special case of `nonsingular_of_Δ_ne_zero`, which itself is a (very easy) special case of `equation_iff_nonsingular_of_Δ_ne_zero`, and similarly with `nonsingular` and `equation_iff_nonsingular`
- `equation_neg(_of)` and `nonsingular_neg(_of)` are special cases of `equation_neg_iff` and `nonsingular_neg_iff`
- `mapFun` and `toClassFun` are function versions of the group homomorphisms `map` and `toClass`
- `mk_XYIdeal'_mul_mk_XYIdeal'_of_Yeq` should have been named `mk_XYIdeal'_neg_mul` according to naming conventions
- all instance names since they can be named automatically
@mathlib-bors

mathlib-bors Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@Vierkantor

Copy link
Copy Markdown
Contributor

Just in case:

bors d+

@mathlib-bors

mathlib-bors Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

✌️ Multramate can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 4, 2025
@mathlib-bors

mathlib-bors Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

Canceled.

@Multramate

Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Mar 4, 2025
)

Clean up a few redundant/bad names:
- `nonsingular_zero_of_Δ_ne_zero` is a special case of `nonsingular_of_Δ_ne_zero`, which itself is a (very easy) special case of `equation_iff_nonsingular_of_Δ_ne_zero`, and similarly with `nonsingular` and `equation_iff_nonsingular`
- `equation_neg(_of)` and `nonsingular_neg(_of)` are special cases of `equation_neg_iff` and `nonsingular_neg_iff`
- `mapFun` and `toClassFun` are function versions of the group homomorphisms `map` and `toClass`
- `mk_XYIdeal'_mul_mk_XYIdeal'_of_Yeq` should have been named `mk_XYIdeal'_neg_mul` according to naming conventions
- all instance names since they can be named automatically
@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/*): remove redundant names [Merged by Bors] - chore(AlgebraicGeometry/EllipticCurve/*): remove redundant names Mar 4, 2025
@mathlib-bors mathlib-bors Bot closed this Mar 4, 2025
@mathlib-bors
mathlib-bors Bot deleted the EllipticCurve.Redundant branch March 4, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

3 participants