Zulip Chat Archive

Stream: general

Topic: Mutual recursion


Violeta Hernández (Jun 04 2022 at 21:50):

I remember seeing the keyword mutual once, which caught me completely off guard. I understand that it can be used for "mutual induction" but I don't know if that means what I think it means

Violeta Hernández (Jun 04 2022 at 21:50):

How does this work?

Violeta Hernández (Jun 04 2022 at 21:50):

I'm interested in it because it might lead to a simpler definition for docs#pgame.has_le and docs#pgame.lf

Violeta Hernández (Jun 04 2022 at 21:52):

These are currently defined in terms of a single "mutual definition" docs#pgame.le_lf, which while effective, is certainly much more confusing

Ruben Van de Velde (Jun 04 2022 at 21:52):

I believe mutual inductive types are not that well supported in lean 3, so that might be more trouble than it's worth right now


Last updated: Dec 20 2023 at 11:08 UTC