Skip to content

v0.56.0

Choose a tag to compare

@gmpassos gmpassos released this 02 Dec 02:53
· 9 commits to main since this release
5ec57e7

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 definition or
    mutual theorem may be about Seq(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, mutual by:
      blocks and cases on a nested type use the same motives.
    • Offline, Lean's compilation (brecOn through the nesting) is proved
      equal to the native one, all members at once.
  • Not yet: nesting through ProofLang's List, which has no
    constructors to match on; nested types with parameters.