Zulip Chat Archive
Stream: general
Topic: using infix in definition
Minchao Wu (Mar 21 2018 at 10:27):
I remember that in Lean 2 we could use infix
inside a definition, referring to the thing being defined.
Is this implemented in the latest master branch?
Mario Carneiro (Mar 21 2018 at 10:30):
I don't think there is anything like that
Sebastian Ullrich (Mar 21 2018 at 10:32):
inductive sub : env → type → type → Prop notation e ` ⊢ `:40 a ` <: `:40 b:40 := sub e a b | ...
Sebastian Ullrich (Mar 21 2018 at 10:32):
The only change is the removal of :=
after the type
Minchao Wu (Mar 21 2018 at 10:36):
Worked for me! Thanks Sebastian and Mario.
Mario Carneiro (Mar 21 2018 at 10:36):
Wait, does that work for def
as well? I thought it only worked in inductive
and structure
Minchao Wu (Mar 21 2018 at 10:38):
My bad, I should have said inductive
definitions
Last updated: Dec 20 2023 at 11:08 UTC