Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Inserting identity function coercions without ill effects

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Inserting identity function coercions without ill effects


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Inserting identity function coercions without ill effects
  • Date: Wed, 18 Jun 2014 20:21:14 +0100

Hi,
Is it possible to register a coercion with Coq without having it actually insert any function?  For example, if the types [A] and [B true] are judgmentally equal, is there any way to tell Coq that when it has an [A] and wants a [B ?n] for ?n an evar, it should instantiate ?n with true?  I have tried [Coercion silly (x : A) : B true := x], but this will block rewriting (because it gets in the way of pattern matching).

Thanks,
Jason


  • [Coq-Club] Inserting identity function coercions without ill effects, Jason Gross, 06/18/2014

Archive powered by MHonArc 2.6.18.

Top of Page