Zulip Chat Archive

Stream: general

Topic: opening twice


Kevin Buzzard (Feb 03 2020 at 09:35):

open set

def set.F :    := id

-- example : F = F := rfl
-- unknown identifier 'F'

open set -- again!

example : F = F := rfl

I hadn't noticed this before. Does open set go through all things called set.X and say "OK so you can just call this X"? If I add a new thing in the set namespace then I seem to have to open again to get access to it?

Gabriel Ebner (Feb 03 2020 at 09:38):

Yes.

Kevin Buzzard (Feb 03 2020 at 09:38):

So open can be quite costly!

Yury G. Kudryashov (Feb 03 2020 at 16:21):

AFAIR, some slides said that this is going to be fixed in Lean 4.


Last updated: Dec 20 2023 at 11:08 UTC