Skip to content

Commit

Permalink
Small fix in lifting code for expressions with local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
simondfoster committed Feb 24, 2024
1 parent 9dc6ace commit 556985f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Local_State.thy
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ lift_expr_lvar _ trm = trm
fun lift_lvar n (Const (@{const_name SEXP}, t') $ e)
= (Const (@{const_name SEXP}, t') $ lift_expr_lvar n e) |
lift_lvar n (t1 $ t2) = lift_lvar n t1 $ lift_lvar n t2 |
lift_lvar n (Abs (x, t', trm)) =
if x = n then Abs (x, t', trm) else Abs (x, t', lift_lvar n trm) |
lift_lvar _ trm = trm
end
Expand Down

0 comments on commit 556985f

Please sign in to comment.