data_domain,Codata_domain: removed replicate; now return one
authorlcp
Thu, 24 Nov 1994 10:57:24 +0100
changeset 742 faa3efc1d130
parent 741 5b0dedadb5c2
child 743 9dcce140bdfc
data_domain,Codata_domain: removed replicate; now return one single domain
src/ZF/ind_syntax.ML
--- a/src/ZF/ind_syntax.ML	Thu Nov 24 10:53:46 1994 +0100
+++ b/src/ZF/ind_syntax.ML	Thu Nov 24 10:57:24 1994 +0100
@@ -117,11 +117,10 @@
        | iargs => fold_bal (app Un) iargs
   end;
 
-fun data_domain rec_tms =
-  replicate (length rec_tms) (univ $ union_params (hd rec_tms));
-
-fun Codata_domain rec_tms =
-  replicate (length rec_tms) (quniv $ union_params (hd rec_tms));
+(*Previously these both did    replicate (length rec_tms);  however now
+  [q]univ itself constitutes the sum domain for mutual recursion!*)
+fun data_domain rec_tms = univ $ union_params (hd rec_tms);
+fun Codata_domain rec_tms = quniv $ union_params (hd rec_tms);
 
 (*Could go to FOL, but it's hardly general*)
 val def_swap_iff = prove_goal IFOL.thy "a==b ==> a=c <-> c=b"