Zulip Chat Archive

Stream: mathlib4

Topic: open classical


Yury G. Kudryashov (Jan 29 2023 at 08:21):

Is it possible to add instances but not definitions from Classical to the scope?

Yury G. Kudryashov (Jan 29 2023 at 08:22):

If I open Classical, then I have to use _root_. or Classical. here and there.

Yaël Dillies (Jan 29 2023 at 08:23):

I guess it's just a matter of protecting them?

Yury G. Kudryashov (Jan 29 2023 at 09:02):

Or dropping some of our lemmas in the root NS and replacing them with export Classical (not_not) etc.

Eric Rodriguez (Jan 29 2023 at 22:34):

having to have this workaround seems annoying. i wonder if there's a need for a separate sort of open

Mario Carneiro (Jan 29 2023 at 22:36):

Yury G. Kudryashov said:

Is it possible to add instances but not definitions from Classical to the scope?

yes, open scoped Classical opens scoped instances/notation but not names, roughly equivalent to open Classical hiding (*)

Gabriel Ebner (Jan 30 2023 at 22:35):

Is there anything besides not_not that is causing issues? Because we definitely shouldn't have duplicate not_not and unprotected Classical.not_not lemmas. We avoid that everywhere else and so we should here.

Yury G. Kudryashov (Jan 30 2023 at 22:38):

I'll make another PR if I see anything else. Maybe, we have by_contra or by_cases in both root and Classical.


Last updated: Dec 20 2023 at 11:08 UTC