Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Trouble with Notations

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Trouble with Notations


Chronological Thread 
  • From: Anthony Canino <anthony.canino1 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Trouble with Notations
  • Date: Wed, 27 Jul 2016 10:28:20 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=anthony.canino1 AT gmail.com; spf=Pass smtp.mailfrom=anthony.canino1 AT gmail.com; spf=None smtp.helo=postmaster AT mail-ua0-f193.google.com
  • Ironport-phdr: 9a23:AoZUQB1J1PRrxHCesmDT+DRfVm0co7zxezQtwd8ZsegVLfad9pjvdHbS+e9qxAeQG96Ks7Qa1qGI4ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMzfbWtXNCPxJrmn8mJuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM85fxGdvOE7B102kvpT4r9Zf9HFbvOtk/MpdW437eb45RPpWFmcIKWcwseTtqRnESxrHzXIaU2MR2k5BBRTF6xfrGJz4tCr8sbNV1yyTPMmwRrcxD2fxp5x3QQPl3X9UfwUy93va35R9

Hi all,

I'm working through Software Foundations, and the following notation is introduced for the typing relation for the simply typed lambda calculus

Reserved Notation "Gamma '|-' t '\in' T" (at level 40).

This makes sense, but when trying to automate a proof, I think I am running into a conflict using |-.

match goal with
  | [ H : forall T, ?H1 -> forall x, ?H2 -> False |- _ ]  => eapply H; eassumption
end.

Toplevel input, characters 73-74:
Syntax error: '\in' expected after [constr:operconstr level 200] (in [constr:operconstr]).

The error makes perfect sense to me; Coq is looking for the \in from the notation introduction. My question is, since |- is used for matching goals, is there a clean way to also use |- for custom notations?

Thanks,
Anthony
 

--
Anthony


  • [Coq-Club] Trouble with Notations, Anthony Canino, 07/27/2016

Archive powered by MHonArc 2.6.18.

Top of Page