Zulip Chat Archive

Stream: lean4

Topic: recursive structures


Yuri de Wit (Aug 17 2022 at 17:49):

I understand, based on the docs, that structures are not recursive, but I wonder why something like this is not allowed:

structure Value where
  data : Float
  prev : Option (Value × Value)

I get the following error: unknown identifier 'Value'

At least there is a non-recursive path here.


Last updated: Dec 20 2023 at 11:08 UTC