Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - feat(topology/sheaves/*): Notation for restriction of sections. #16088

Closed
wants to merge 10 commits into from

Conversation

erdOne
Copy link
Member

@erdOne erdOne commented Aug 17, 2022


Open in Gitpod

src/topology/sheaves/presheaf.lean Outdated Show resolved Hide resolved
src/topology/sheaves/presheaf.lean Outdated Show resolved Hide resolved
@erdOne erdOne added the awaiting-review The author would like community review of the PR label Aug 20, 2022
@jcommelin
Copy link
Member

I think this is helpful. Although I understand @erdOne 's hesitation. @adamtopaz what do you think?

@adamtopaz
Copy link
Collaborator

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?

@erdOne
Copy link
Member Author

erdOne commented Aug 31, 2022

There are two notations introduced.

  • x ∣_ₕ e for F.map e.op x
  • x ∣_ₗ V ⟪e⟫ for F.map (hom_of_le e).op x

Are you referring to both of them?
Although I agree that this is quite awkward, I think we would always need to provide the proof that V ≤ U nonetheless, and I'm not sure (due to the lack of knowledge regarding Lean4) if Lean4 could help the situation.

Co-authored-by: Junyan Xu <junyanxumath@gmail.com>
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

bors d+

Comment on lines 57 to 59
infixl ` ∣_ₕ `: 80 := restrict

notation x ` ∣_ₗ `: 80 U ` ⟪` e `⟫ ` := @restrict _ _ _ _ _ _ x U (@hom_of_le (opens _) _ U _ e)
Copy link
Member

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?

@bors
Copy link

bors bot commented Oct 5, 2022

✌️ erdOne 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-bot-assistant leanprover-community-bot-assistant added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Oct 5, 2022
@erdOne
Copy link
Member Author

erdOne commented Oct 7, 2022

bors merge

bors bot pushed a commit that referenced this pull request Oct 7, 2022


Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
@bors
Copy link

bors bot commented Oct 7, 2022

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Oct 7, 2022


Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
@bors
Copy link

bors bot commented Oct 7, 2022

Build failed (retrying...):

@YaelDillies
Copy link
Collaborator

YaelDillies commented Oct 7, 2022

I think we would always need to provide the proof that V ≤ U nonetheless

Do you know you can already make the notation infer the proof? Something like

notation ` fin_mk ` k := fin.mk _ ‹k < n›

bors bot pushed a commit that referenced this pull request Oct 8, 2022


Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
@bors
Copy link

bors bot commented Oct 8, 2022

Build failed (retrying...):

@erdOne
Copy link
Member Author

erdOne commented Oct 8, 2022

Ah I forgot about that. We will probably need a custom tactic instead but this is definitely worth a try.

@erdOne
Copy link
Member Author

erdOne commented Oct 8, 2022

bors cancel
Let me experiment with that a bit.

@bors
Copy link

bors bot commented Oct 8, 2022

Canceled.

@erdOne erdOne added awaiting-review The author would like community review of the PR t-algebraic-geometry Algebraic geometry and removed delegated The PR author may merge after reviewing final suggestions. labels Oct 10, 2022
@erdOne erdOne requested a review from a team as a code owner October 26, 2022 21:39
Copy link
Member

@jcommelin jcommelin 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 merge

@leanprover-community-bot-assistant leanprover-community-bot-assistant added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Oct 27, 2022
bors bot pushed a commit that referenced this pull request Oct 27, 2022


Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
@bors
Copy link

bors bot commented Oct 27, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(topology/sheaves/*): Notation for restriction of sections. [Merged by Bors] - feat(topology/sheaves/*): Notation for restriction of sections. Oct 27, 2022
@bors bors bot closed this Oct 27, 2022
@bors bors bot deleted the restrict_notation branch October 27, 2022 10:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-algebraic-geometry Algebraic geometry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants