Zulip Chat Archive

Stream: mathlib4

Topic: protecting structure projections


Jireh Loreaux (Nov 17 2022 at 19:38):

How do I protect structure projections in Lean 4? I mean, I know that

structure Foo where
  protected bar : 

works, but if I have a class Foo that extends Bar and Baz, how do I protect Foo.toBar and Foo.someBazField? It seems that attribute [protected] Foo.toBar doesn't work after the fact.

Yaël Dillies (Nov 17 2022 at 19:39):

Is protect_projs still a thing?

Jireh Loreaux (Nov 17 2022 at 19:41):

Doesn't seem to be.


Last updated: Dec 20 2023 at 11:08 UTC