Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 449 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 449 Bytes

typical

Basic Syntax

  1. data(inductive type)

    (data Nat
        [zero : Nat]
        [suc : (Nat . -> . Nat)])
  2. define introduces user-defined variables

    ; define `a` is `zero`
    (define a : Nat
      zero)
  3. check type of term

    ; read as "check `zero` is a `Nat`?"
    (check zero : Nat)

TODO

  • strictly positive of data type
  • dependent function