You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notation "[ 'fun' x => F ]" := (fun x => F)
(at level 0, x ident, only parsing).
(* or `x pattern` *)ImplicitTypes (n : nat).
FailDefinition nat_id := [fun n => n].
(*The command has indeed failed with message: Cannot infer the type of n.*)Definition nat_id := (fun n => n).
(*nat_id is defined*)
Coq Version
8.9.0 and master
The text was updated successfully, but these errors were encountered:
pi8027
changed the title
Implicit Types declaration doesn't work for binders in notations
Implicit Types declaration doesn't work for notations involving binders
Mar 14, 2019
Thanks. After looking at the reference manual, it seems more appropriate to use x name, but the above example also fails with x name. I didn't check whether #19003 fixes it or not.
By the way, the reference manual does not seem to clearly explain the difference between name and ident. It should be improved (perhaps with the documentation of binder and pattern). Meanwhile, I'm taking a look at #11841.
Description of the problem
Coq Version
8.9.0 and master
The text was updated successfully, but these errors were encountered: