annotate lib/top.ur @ 327:3a57f3b3a3f8

Fix bug in subsignature check for con synonyms
author Adam Chlipala <adamc@hcoop.net>
date Thu, 11 Sep 2008 18:36:20 -0400
parents e457d8972ff1
children 58f1260f293f
rev   line source
adamc@325 1 con mapTT (f :: Type -> Type) = fold (fn nm t acc => [nm] ~ acc =>
adamc@325 2 [nm = f t] ++ acc) []
adamc@325 3
adamc@325 4 fun compose (t1 ::: Type) (t2 ::: Type) (t3 ::: Type) (f1 : t2 -> t3) (f2 : t1 -> t2) (x : t1) = f1 (f2 x)
adamc@325 5
adamc@325 6 fun txt (t ::: Type) (ctx ::: {Unit}) (use ::: {Type}) (sh : show t) (v : t) = cdata (show sh v)