-
Notifications
You must be signed in to change notification settings - Fork 299
[Merged by Bors] - feat(topology/sheaves/*): Notation for restriction of sections. #16088
Conversation
erdOne
commented
Aug 17, 2022
I think this is helpful. Although I understand @erdOne 's hesitation. @adamtopaz what do you think? |
To be honest, this notation looks quite awkward. And since it's not too similar (unless you really squint) to what we would write on paper, I'm not sure if it's worth adding this notation right now. Maybe Lean4 would let us introduce better notation? If so, perhaps we should just wait until the port to Lean4? |
There are two notations introduced.
Are you referring to both of them? |
Co-authored-by: Junyan Xu <junyanxumath@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors d+
src/topology/sheaves/presheaf.lean
Outdated
infixl ` ∣_ₕ `: 80 := restrict | ||
|
||
notation x ` ∣_ₗ `: 80 U ` ⟪` e `⟫ ` := @restrict _ _ _ _ _ _ x U (@hom_of_le (opens _) _ U _ e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please put this notation in a locale?
✌️ erdOne can now approve this pull request. To approve and merge a pull request, simply reply with |
bors merge |
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Build failed (retrying...): |
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Build failed (retrying...): |
Do you know you can already make the notation infer the proof? Something like
|
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Build failed (retrying...): |
Ah I forgot about that. We will probably need a custom tactic instead but this is definitely worth a try. |
bors cancel |
Canceled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🎉
bors merge
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |