miscelleaneous

Random Lean experiments

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
-- https://lean-lang.org/documentation/examples/phoas/

inductive Ty where
  | nat
  | fn : Ty  Ty  Ty

@[reducible] def Ty.denote : Ty  Type
  | nat    => Nat
  | fn a b => a.denote  b.denote