Zulip Chat Archive
Stream: new members
Topic: Use notation for type in type definition itself
kana (Nov 13 2025 at 03:04):
set_option quotPrecheck false
infix:50 " ⟶ " => eval
inductive eval : Nat → Nat → Prop where
| zero_zero : 0 ⟶ 0
Unexpected resulting type for constructor `eval.zero_zero`: Expected an application of
eval
but found
0 ⟶ 0
The only workaround I know is to generate type definition via macro
Kenny Lau (Nov 13 2025 at 13:54):
@kana
set_option hygiene false
infix:50 " ⟶ " => eval
inductive eval : Nat → Nat → Prop where
| zero_zero : 0 ⟶ 0
#print eval
suhr (Nov 13 2025 at 14:27):
(off-topic) Hello, Kana.
Last updated: Dec 20 2025 at 21:32 UTC