mathlib icon indicating copy to clipboard operation
mathlib copied to clipboard

feat(topology/sheaves/*): Notation for restriction of sections.

Open erdOne opened this issue 3 years ago • 12 comments


Open in Gitpod

erdOne avatar Aug 17 '22 03:08 erdOne

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

jcommelin avatar Aug 31 '22 13:08 jcommelin

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?

adamtopaz avatar Aug 31 '22 13:08 adamtopaz

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.

erdOne avatar Aug 31 '22 13:08 erdOne

:v: 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.

bors[bot] avatar Oct 05 '22 12:10 bors[bot]

bors merge

erdOne avatar Oct 07 '22 04:10 erdOne

Build failed (retrying...):

bors[bot] avatar Oct 07 '22 06:10 bors[bot]

Build failed (retrying...):

bors[bot] avatar Oct 07 '22 11:10 bors[bot]

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›

YaelDillies avatar Oct 07 '22 16:10 YaelDillies

Build failed (retrying...):

bors[bot] avatar Oct 08 '22 00:10 bors[bot]

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

erdOne avatar Oct 08 '22 09:10 erdOne

bors cancel Let me experiment with that a bit.

erdOne avatar Oct 08 '22 09:10 erdOne

Canceled.

bors[bot] avatar Oct 08 '22 09:10 bors[bot]

Pull request successfully merged into master.

Build succeeded:

bors[bot] avatar Oct 27 '22 10:10 bors[bot]