tuned, following Envir.norm_term;
authorwenzelm
Tue, 19 Dec 2023 12:35:24 +0100
changeset 79299 74a90157ee89
parent 79298 77e4e69fd0e1
child 79300 236fa4b32afb
tuned, following Envir.norm_term;
src/Pure/zterm.ML
--- a/src/Pure/zterm.ML	Tue Dec 19 12:30:46 2023 +0100
+++ b/src/Pure/zterm.ML	Tue Dec 19 12:35:24 2023 +0100
@@ -581,13 +581,13 @@
 
 val beta_norm_term_same =
   let
-    fun norm (ZApp (ZAbs (_, _, body), t)) = Same.commit norm (subst_term_bound t body)
+    fun norm (ZAbs (a, T, t)) = ZAbs (a, T, Same.commit norm t)
+      | norm (ZApp (ZAbs (_, _, body), t)) = Same.commit norm (subst_term_bound t body)
       | norm (ZApp (f, t)) =
           ((case norm f of
              ZAbs (_, _, body) => Same.commit norm (subst_term_bound t body)
            | nf => ZApp (nf, Same.commit norm t))
           handle Same.SAME => ZApp (f, norm t))
-      | norm (ZAbs (a, T, t)) = ZAbs (a, T, Same.commit norm t)
       | norm _ = raise Same.SAME;
   in norm end;