eliminated obsolete var morphism;
authorwenzelm
Wed, 21 Jan 2009 22:26:49 +0100
changeset 29604 0e1723e91ef8
parent 29603 b660ee46f2f6
child 29605 f2924219125e
eliminated obsolete var morphism; tuned;
src/Pure/Isar/expression.ML
--- a/src/Pure/Isar/expression.ML	Wed Jan 21 22:26:48 2009 +0100
+++ b/src/Pure/Isar/expression.ML	Wed Jan 21 22:26:49 2009 +0100
@@ -198,11 +198,14 @@
 
 (** Parsing **)
 
-fun parse_elem prep_typ prep_term ctxt elem =
-  Element.map_ctxt' {binding = I, var = I, typ = prep_typ ctxt,
-  term = prep_term (ProofContext.set_mode ProofContext.mode_schematic ctxt), (* FIXME ?? *)
-  pat = prep_term (ProofContext.set_mode ProofContext.mode_pattern ctxt),
-  fact = I, attrib = I} elem;
+fun parse_elem prep_typ prep_term ctxt =
+  Element.map_ctxt
+   {binding = I,
+    typ = prep_typ ctxt,
+    term = prep_term (ProofContext.set_mode ProofContext.mode_schematic ctxt),
+    pattern = prep_term (ProofContext.set_mode ProofContext.mode_pattern ctxt),
+    fact = I,
+    attrib = I};
 
 fun parse_concl prep_term ctxt concl =
   (map o map) (fn (t, ps) =>
@@ -490,8 +493,7 @@
     val exp_fact = Drule.zero_var_indexes_list o map Thm.strip_shyps o Morphism.fact export;
     val exp_term = TermSubst.zero_var_indexes o Morphism.term export;
     val exp_typ = Logic.type_map exp_term;
-    val export' =
-      Morphism.morphism {binding = I, var = I, typ = exp_typ, term = exp_term, fact = exp_fact};
+    val export' = Morphism.morphism {binding = I, typ = exp_typ, term = exp_term, fact = exp_fact};
   in ((propss, deps, export'), goal_ctxt) end;
     
 in