Skip to content

[Merged by Bors] - feat: port of Data.FunLike#541

Closed
kim-em wants to merge 7 commits intomasterfrom
fun_like
Closed

[Merged by Bors] - feat: port of Data.FunLike#541
kim-em wants to merge 7 commits intomasterfrom
fun_like

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Nov 6, 2022

This is a very naive port of data.fun_like. I've never really engaged with this classes in mathlib3, and I haven't attempted to think about how they might work in Lean 4...

This PR is really just provocation, hoping that @Vierkantor may come and have a look. :-)

@Vierkantor
Copy link
Copy Markdown
Contributor

Going through a few reviews at the moment, and then I'll take a look at this and #550 :)

Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

With my current knowledge of Lean 4 I think this port in good shape, and it seems to work well for equiv, but I'm sure we'll run into some annoying detail once we get into more complicated stuff like semilinear_map_class.

@gebner
Copy link
Copy Markdown
Member

gebner commented Nov 10, 2022

I've added a commit which registers FunLike.coe as a coercion function so that norm_cast works.

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Nov 10, 2022

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

@kim-em
Copy link
Copy Markdown
Contributor Author

kim-em commented Nov 10, 2022

bors merge

bors bot pushed a commit that referenced this pull request Nov 10, 2022
This is a very naive port of `data.fun_like`. I've never really engaged with this classes in mathlib3, and I haven't attempted to think about how they might work in Lean 4...

This PR is really just provocation, hoping that @Vierkantor may come and have a look. :-)

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Vierkantor <vierkantor@vierkantor.com>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
@bors
Copy link
Copy Markdown

bors bot commented Nov 10, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port of Data.FunLike [Merged by Bors] - feat: port of Data.FunLike Nov 10, 2022
@bors bors bot closed this Nov 10, 2022
@bors bors bot deleted the fun_like branch November 10, 2022 22:52
bors bot pushed a commit that referenced this pull request Nov 18, 2022
mathlib3 sha: 7951ed37deb3b2923a6f47d9bdcb4d69a8703550

~~Waiting on the release of [nightly-2022-11-17](https://github.com/leanprover/lean4-nightly/releases/tag/nightly-2022-11-17).~~

- [x] depends on: #541
- [x] depends on: #559

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Vierkantor <vierkantor@vierkantor.com>
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
Co-authored-by: David Wärn <codwarn@gmail.com>
Co-authored-by: Yakov Pechersky <ypechersky@treeline.bio>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants