diff lib/ur/top.ur @ 628:12b73f3c108e

Switch to TDisjoint from CDisjoint; still need to implement obligation generation at EDisjoint uses
author Adam Chlipala <adamc@hcoop.net>
date Tue, 24 Feb 2009 12:01:24 -0500
parents f4f2b09a533a
children e68de2a5506b
line wrap: on
line diff
--- a/lib/ur/top.ur	Sun Feb 22 17:39:55 2009 -0500
+++ b/lib/ur/top.ur	Tue Feb 24 12:01:24 2009 -0500
@@ -17,6 +17,18 @@
              (f : nm :: Name -> v :: K -> r :: {K} -> tf r
                   -> fn [[nm] ~ r] => tf ([nm = v] ++ r))
              (i : tf []) = f [nm] [v] [r] (fold [tf] f i)
+
+    fun concat K (r1 ::: {K}) (r2 ::: {K}) [r1 ~ r2]
+        (f1 : folder r1) (f2 : folder r2)
+        (tf :: {K} -> Type)
+        (f : nm :: Name -> v :: K -> r :: {K} -> tf r
+             -> fn [[nm] ~ r] => tf ([nm = v] ++ r))
+        (i : tf []) =
+        f1 [fn r1' [r1' ~ r2] => tf (r1' ++ r2)] 0
+           (*(fn (nm :: Name) (v :: K) (r1' :: {K}) (acc : fn [r1' ~ r2] => tf (r1' ++ r2))
+                            [[nm] ~ r1'] [[nm = v] ++ r1' ~ r2] =>
+               f [nm] [v] [r1' ++ r2] acc)
+           (f2 [tf] f i)*)
 end