# HG changeset patch # User Cezary Kaliszyk # Date 1266914081 -3600 # Node ID 2bbfbc9a81fcf86268c8911c9abb65b62cec2070 # Parent 74e2b9b95adde9002c94dbf376ab6708df18dc24 Reordering in LF. diff -r 74e2b9b95add -r 2bbfbc9a81fc Quot/Nominal/LFex.thy --- a/Quot/Nominal/LFex.thy Tue Feb 23 09:31:59 2010 +0100 +++ b/Quot/Nominal/LFex.thy Tue Feb 23 09:34:41 2010 +0100 @@ -18,21 +18,6 @@ | App "trm" "trm" | Lam "ty" "name" "trm" -primrec - rfv_kind :: "kind \ atom set" -and rfv_ty :: "ty \ atom set" -and rfv_trm :: "trm \ atom set" -where - "rfv_kind (Type) = {}" -| "rfv_kind (KPi A x K) = (rfv_ty A) \ ((rfv_kind K) - {atom x})" -| "rfv_ty (TConst i) = {atom i}" -| "rfv_ty (TApp A M) = (rfv_ty A) \ (rfv_trm M)" -| "rfv_ty (TPi A x B) = (rfv_ty A) \ ((rfv_ty B) - {atom x})" -| "rfv_trm (Const i) = {atom i}" -| "rfv_trm (Var x) = {atom x}" -| "rfv_trm (App M N) = (rfv_trm M) \ (rfv_trm N)" -| "rfv_trm (Lam A x M) = (rfv_ty A) \ ((rfv_trm M) - {atom x})" - instantiation kind and ty and trm :: pt begin @@ -74,6 +59,21 @@ end +primrec + rfv_kind :: "kind \ atom set" +and rfv_ty :: "ty \ atom set" +and rfv_trm :: "trm \ atom set" +where + "rfv_kind (Type) = {}" +| "rfv_kind (KPi A x K) = (rfv_ty A) \ ((rfv_kind K) - {atom x})" +| "rfv_ty (TConst i) = {atom i}" +| "rfv_ty (TApp A M) = (rfv_ty A) \ (rfv_trm M)" +| "rfv_ty (TPi A x B) = (rfv_ty A) \ ((rfv_ty B) - {atom x})" +| "rfv_trm (Const i) = {atom i}" +| "rfv_trm (Var x) = {atom x}" +| "rfv_trm (App M N) = (rfv_trm M) \ (rfv_trm N)" +| "rfv_trm (Lam A x M) = (rfv_ty A) \ ((rfv_trm M) - {atom x})" + inductive akind :: "kind \ kind \ bool" ("_ \ki _" [100, 100] 100) and aty :: "ty \ ty \ bool" ("_ \ty _" [100, 100] 100)