Skip to content

Commit

Permalink
Add typeof! to Notations.v (mit-plv#1775)
Browse files Browse the repository at this point in the history
* Add `subst!` and `typeof!` to `Notations.v`

* Use a version of typeof! that can return `Prop`s and not just `Type`s

* Remove subst! pending a discussion on what syntax makes sense

There's a local version already in Rewrite Rules
  • Loading branch information
JasonGross authored Dec 8, 2023
1 parent 7c7c435 commit 652fc80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Util/Notations.v
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,5 @@ 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 "'typeof!' x" := (match x with y => ltac:(let T := type of y in exact T) end) (at level 10, only parsing).

0 comments on commit 652fc80

Please sign in to comment.