Skip to content

Use structure instead of inductive where possible #4723

@tothtamas28

Description

@tothtamas28

We can map constructors whose arguments are cells to structure instead of inductive, since in this case the cell names give reasonable and unique names for fields. For example:

<generatedTop>
    <k></k>
    <generatedCounter></generatedCounter>
</generatedTop>

can become

structure SortGeneratedTopCell where
  «<generatedTop>» :: (k : SortK) (generatedCounter : SortGeneratedCounterCell)

or

structure SortGeneratedTopCell where
  mk :: (k : SortK) (generatedCounter : SortGeneratedCounterCell)

or simply

structure SortGeneratedTopCell where
  k : SortK
  generatedCounter : SortGeneratedCounterCell

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions