Skip to content

Commit

Permalink
Add subst! and typeof! to Notations.v
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Dec 7, 2023
1 parent d839f89 commit faf1967
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Util/Notations.v
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,6 @@ Reserved Notation "##### x" (at level 9, x at level 9, format "##### x").
Reserved Notation "\ x .. y , t" (at level 200, x binder, y binder, right associativity, format "\ x .. y , '//' t").
(** If we use "( x |? y )", it conflicts with things like [destruct x as [?|?]; ...] *)
Reserved Notation "( x | ? y )" (format "( x | ? y )").

Notation "'subst!' y 'for' x 'in' f" := (match y with x => f end) (at level 10, only parsing).
Notation "'typeof!' x" := (match _ as T with T => subst! x : T for _ in T end) (at level 10, only parsing).

0 comments on commit faf1967

Please sign in to comment.