You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tools/mrsbnf_def.ML
+31-20Lines changed: 31 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -860,18 +860,27 @@ fun mk_mrsbnf_axioms mrbnfs bmv lthy =
860
860
val (fs, names_lthy) = names_lthy
861
861
|> mk_Frees "f" (MRBNF_Def.interlace (map2 (curry (op-->)) As As') (map (fn a => a --> a) Bs) (map (fn a => a --> a) Fs) (MRBNF_Def.var_types_of_mrbnf lmrbnf));
862
862
863
+
val subst =
864
+
(MRBNF_Def.frees_of_mrbnf lmrbnf ~~ Fs)
865
+
@ (MRBNF_Def.bounds_of_mrbnf lmrbnf ~~ Bs)
866
+
@ (MRBNF_Def.lives_of_mrbnf lmrbnf ~~ As)
867
+
@ (MRBNF_Def.lives'_of_mrbnf lmrbnf ~~ As')
868
+
@ (ldeads ~~ deads)
869
+
val subst_phi = MRBNF_Util.subst_typ_morphism subst;
870
+
val mrbnfs = map (MRBNF_Def.morph_mrbnf subst_phi) mrbnfs;
871
+
863
872
local
864
-
val subst =
865
-
(MRBNF_Def.frees_of_mrbnf lmrbnf ~~ Fs)
866
-
@ (MRBNF_Def.bounds_of_mrbnf lmrbnf ~~ Bs)
867
-
@ (MRBNF_Def.lives_of_mrbnf lmrbnf ~~ As)
868
-
@ (MRBNF_Def.lives'_of_mrbnf lmrbnf ~~ As')
869
-
@ (ldeads ~~ deads)
870
-
val phi = MRBNF_Util.subst_typ_morphism subst;
873
+
val T = fastype_of (MRBNF_Def.map_of_mrbnf (hd mrbnfs));
874
+
val T' = case BMV_Monad_Def.leader BMV_Monad_Def.Maps_of_bmv_monad bmv of
0 commit comments