Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - refactor(AlgebraicGeometry/EllipticCurve/*): rename baseChange to map #9744

Closed
wants to merge 8 commits into from

Conversation

Multramate
Copy link
Collaborator

This is in accordance with other similar definitions e.g. Polynomial.map. It turns out that rewrite lemmas of the form (W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY) are rather annoying to use, so they are replaced with the original baseChange functionality that says (W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY). This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve W rather than its points.


Open in Gitpod

@Multramate Multramate added awaiting-review The author would like community review of the PR awaiting-CI t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-algebraic-geometry Algebraic geometry labels Jan 14, 2024
Copy link
Member

@riccardobrasca riccardobrasca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bors d+


lemma equation_iff_baseChange {φ : R →+* A} (hφ : Function.Injective φ) (x y : R) :
W.equation x y ↔ (W.baseChange φ).toAffine.equation (φ x) (φ y) := by
lemma map_equation {φ : R →+* A} (hφ : Function.Injective φ) (x y : R) :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the name still contain iff? Also below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, I think this is probably fine.

Mathlib/AlgebraicGeometry/EllipticCurve/Group.lean Outdated Show resolved Hide resolved
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 8, 2024

✌️ 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.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Feb 8, 2024
@Multramate
Copy link
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Feb 19, 2024
…#9744)

This is in accordance with other similar definitions e.g. `Polynomial.map`. It turns out that rewrite lemmas of the form `(W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY)` are rather annoying to use, so they are replaced with the original `baseChange` functionality that says `(W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY)`. This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve `W` rather than its points.
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 19, 2024

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request Feb 19, 2024
…#9744)

This is in accordance with other similar definitions e.g. `Polynomial.map`. It turns out that rewrite lemmas of the form `(W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY)` are rather annoying to use, so they are replaced with the original `baseChange` functionality that says `(W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY)`. This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve `W` rather than its points.
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 19, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor(AlgebraicGeometry/EllipticCurve/*): rename baseChange to map [Merged by Bors] - refactor(AlgebraicGeometry/EllipticCurve/*): rename baseChange to map Feb 19, 2024
@mathlib-bors mathlib-bors bot closed this Feb 19, 2024
@mathlib-bors mathlib-bors bot deleted the EllipticCurve.Map branch February 19, 2024 18:39
thorimur pushed a commit that referenced this pull request Feb 24, 2024
…#9744)

This is in accordance with other similar definitions e.g. `Polynomial.map`. It turns out that rewrite lemmas of the form `(W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY)` are rather annoying to use, so they are replaced with the original `baseChange` functionality that says `(W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY)`. This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve `W` rather than its points.
thorimur pushed a commit that referenced this pull request Feb 26, 2024
…#9744)

This is in accordance with other similar definitions e.g. `Polynomial.map`. It turns out that rewrite lemmas of the form `(W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY)` are rather annoying to use, so they are replaced with the original `baseChange` functionality that says `(W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY)`. This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve `W` rather than its points.
riccardobrasca pushed a commit that referenced this pull request Mar 1, 2024
…#9744)

This is in accordance with other similar definitions e.g. `Polynomial.map`. It turns out that rewrite lemmas of the form `(W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY)` are rather annoying to use, so they are replaced with the original `baseChange` functionality that says `(W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY)`. This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve `W` rather than its points.
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
…#9744)

This is in accordance with other similar definitions e.g. `Polynomial.map`. It turns out that rewrite lemmas of the form `(W.map (φ.comp ψ)).negY/addX/addY = ψ ((W.map φ).negY/addX/addY)` are rather annoying to use, so they are replaced with the original `baseChange` functionality that says `(W.baseChange B).negY/addX/addY = ψ ((W.baseChange A).negY/addX/addY)`. This addresses the issue in #9596 pointed out by @riccardobrasca, but for the Weierstrass curve `W` rather than its points.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated t-algebraic-geometry Algebraic geometry t-number-theory Number theory (also use t-algebra or t-analysis to specialize)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants