HOL
HOL copied to clipboard
Allow record types under constructors in Datatype
E.g.,
Datatype`foo = C <| fld1 : num ; fld2 : foo |> | D num string | E foo num`
The machinery would have to define an auxiliary type, turning the above into
Datatype`foo = C somercd | D num string | E foo num ; somercd = <| fld1 : num ; fld2 : foo |>`
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.