diff --git a/tools/autocorres/L2Opt.thy b/tools/autocorres/L2Opt.thy index 048a3af9e..1439e2a33 100644 --- a/tools/autocorres/L2Opt.thy +++ b/tools/autocorres/L2Opt.thy @@ -121,7 +121,7 @@ lemma monad_equiv_guard: * variables being expanded inside of guard statements. *) lemma monad_equiv_guard' [L2flow]: "\ \s. simp_expr True (G s) (G' s) \ \ - monad_equiv P (L2_guard G) (L2_guard G') (\r s. P s \ G' s \ r = ()) (\_ _. False)" + monad_equiv P (L2_guard (\s. G s)) (L2_guard (\s. G' s)) (\r s. P s \ G' s \ r = ()) (\_ _. False)" apply (rule monad_equiv_guard) apply (rule simp_expr_weaken) apply assumption