Zulip Chat Archive

Stream: general

Topic: local attribute [ext] only works once


Eric Wieser (Feb 09 2022 at 15:56):

What can we do about this?

import tactic.ext

structure foo :=
(x : int)
(y : int)

section
local attribute [ext] foo  -- ok

end

section
local attribute [ext] foo  -- fails, `foo.ext` already exists

end

Can we forbid ext being used locally on structures?

Floris van Doorn (Feb 09 2022 at 15:58):

Yeah, forbidding it as a local attribute makes sense if it generates new declarations. This is also done in other attributes


Last updated: Dec 20 2023 at 11:08 UTC