Nominal/Ex/ExLF.thy
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Tue, 27 Apr 2010 14:29:59 +0200
changeset 1958 e2e19188576e
parent 1773 c0eac04ae3b4
child 2059 c615095827e9
permissions -rw-r--r--
Function in Core Haskell

theory ExLF
imports "../Parser"
begin

atom_decl name
atom_decl ident

nominal_datatype kind =
    Type
  | KPi "ty" n::"name" k::"kind" bind n in k
and ty =
    TConst "ident"
  | TApp "ty" "trm"
  | TPi "ty" n::"name" t::"ty" bind n in t
and trm =
    Const "ident"
  | Var "name"
  | App "trm" "trm"
  | Lam "ty" n::"name" t::"trm" bind n in t

thm kind_ty_trm.supp

end