Skip to content

Commit

Permalink
Fix monad_map_branches_k name (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored and yforster committed Oct 16, 2023
1 parent 1fcd7ff commit 3020c10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pcuic/theories/PCUICMonadAst.v
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Section with_monad.
Definition monad_map_branch_k {term term'} (f : nat -> term -> T term') g k b
:= @monad_map_branch term term' (f (#|bcontext b| + k)) g b.

Notation map_branches_k f h k brs :=
(monad_map (monad_map_branch_k f h k) brs).
Definition monad_map_branches_k {term term'} f h k brs :=
(monad_map (@monad_map_branch_k term term' f h k) brs).
End with_monad.
4 changes: 2 additions & 2 deletions template-coq/theories/MonadAst.v
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ Section with_monad.

Definition monad_map_branches {term B} (f : term -> T B) l := monad_map (monad_map_branch f) l.

Notation monad_map_branches_k f k brs :=
(monad_map (fun b => monad_map_branch (f (#|b.(bcontext)| + k)) b) brs).
Definition monad_map_branches_k {term term'} f k brs :=
(monad_map (fun b => @monad_map_branch term term' (f (#|b.(bcontext)| + k)) b) brs).
End with_monad.

0 comments on commit 3020c10

Please sign in to comment.