Repository navigation
v0.56.0
Nested types without Lean. A rose tree (a node's children are a sequence
of trees, node(label: ℕ, kids: Seq(Rose))) now has native definitions,
induction and cases, and links strictly offline. The new roses example
(example/lean_to_prooflang/roses) has 10 obligations, all verified by
Lean, natively and strictly offline.
- Mutual groups over a nested occurrence. A
mutual definitionor
mutual theoremmay be aboutSeq(Rose), a nested occurrence of the
block's type: the group has one member per motive of the type's
recursor (the block's types, then its nested occurrences).- The front end takes a group member's type with parameters (
Seq(Rose),
the parameters closed): its cases are the constructors at them
(more(head: Rose, tail: Seq(Rose))), a field of a type of the block
or of a nested occurrence having the theorem about it. - Without Lean, the definitions compile to the recursor at each
member's motive (Rose.rec,Rose.rec_1), and the native build adds
a nested type's auxiliary recursors. Mutual induction, mutualby:
blocks andcaseson a nested type use the same motives. - Offline, Lean's compilation (
brecOnthrough the nesting) is proved
equal to the native one, all members at once.
- The front end takes a group member's type with parameters (
- Not yet: nesting through ProofLang's
List, which has no
constructors to match on; nested types with parameters.