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] - feat: port Algebra.Ring.Ulift #1240

Closed
wants to merge 9 commits into from

Conversation

riccardobrasca
Copy link
Member

@riccardobrasca riccardobrasca commented Dec 27, 2022

Most of the porting consists of doing by hand what pi_instance_derive_field did.

@riccardobrasca riccardobrasca added mathlib-port This is a port of a theory file from mathlib. WIP Work in progress labels Dec 27, 2022
Mathlib/Algebra/Ring/Ulift.lean Outdated Show resolved Hide resolved
Mathlib/Algebra/Ring/Ulift.lean Outdated Show resolved Hide resolved
Mathlib/Algebra/Ring/Ulift.lean Outdated Show resolved Hide resolved
@riccardobrasca riccardobrasca added awaiting-review and removed WIP Work in progress labels Dec 27, 2022
intCast_negSucc := AddGroupWithOne.intCast_negSucc }
#align ulift.non_assoc_ring ULift.nonAssocRing

-- Porting note: this doesn't work without `refine'`
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand why this one is different. It also looks pretty slow.

Copy link
Member

Choose a reason for hiding this comment

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

It's to do with the definitions of Int.cast. The Int.cast field for this instance is filled in automatically as the recursive definition, but it should be inherited from the Int.cast instance on R. This should be changed and same with Nat.cast for this and the other instances.

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding natCast and intCast indeed fixed it, thanks!

@ChrisHughes24 ChrisHughes24 added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review labels Dec 28, 2022
@riccardobrasca riccardobrasca added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes labels Dec 28, 2022
@ChrisHughes24
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Dec 28, 2022
@rwbarton rwbarton changed the title Port/Algebra.Ring.Ulift feat: port Algebra.Ring.Ulift Dec 28, 2022
bors bot pushed a commit that referenced this pull request Dec 28, 2022
Most of the porting consists of doing by hand what `pi_instance_derive_field` did.

Co-authored-by: ChrisHughes24 <chrishughes24@gmail.com>
@bors
Copy link

bors bot commented Dec 28, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port Algebra.Ring.Ulift [Merged by Bors] - feat: port Algebra.Ring.Ulift Dec 28, 2022
@bors bors bot closed this Dec 28, 2022
@bors bors bot deleted the port/Algebra.Ring.Ulift branch December 28, 2022 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants