Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Re: Rewriting with "identity type in Type"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Re: Rewriting with "identity type in Type"


chronological Thread 
  • From: Andrej Bauer <andrej.bauer AT andrej.com>
  • To: Vladimir Voevodsky <vladimir AT ias.edu>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Re: Rewriting with "identity type in Type"
  • Date: Wed, 4 Apr 2012 10:00:33 +0200

> actually in 8.3pl2 rewrite works with "identity" - a version of paths which 
> is defined in Coq.Init. It does not work with "paths" defined separately, 
> but if you define "paths" (as I do in the latest version of my library) as 
> a notation for "idenity" then rewrite works with it.

Yes, I noticed that. It actually works with any type that is defined
just like identity, i.e., you could define your own paths as

   Inductive paths {A : Type} (x : A) : A -> Type := idpath : paths x x.

and it would still work exactly the same. It's really nice to have
rewriting for homotopy type theory.

With kind regards,

Andrej




Archive powered by MhonArc 2.6.16.

Top of Page