coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Guillaume Melquiond <guillaume.melquiond AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Problems with ignored notations
- Date: Thu, 9 Feb 2017 17:17:24 +0100
On 09/02/2017 15:09, Gaetan Gilbert wrote:
> The reason this happens is that Coq keeps track of casts internally, ie
> "a : b" and just "a" are not the same terms internally.
>
> So when you write "〈ℕ0, ℕ0〉" it doesn't match ℤ0's definition of "〈ℕ0,
> ℕ0〉 : ℤ", and when you simpl the casts go away.
>
> Beyond that I don't know much about notations so I don't know if
> notations could ignore casts.
No. As you say, the solution is to remove the casts from the notations:
Notation ℤ0 := 〈ℕ0, ℕ0〉.
Notation ℤ1 := 〈ℕ1, ℕ0〉.
Notation "ℤ-1" := 〈ℕ0, ℕ1〉.
Best regards,
Guillaume
- [Coq-Club] Problems with ignored notations, Sebastian Böhne, 02/09/2017
- Re: [Coq-Club] Problems with ignored notations, Gaetan Gilbert, 02/09/2017
- Re: [Coq-Club] Problems with ignored notations, Guillaume Melquiond, 02/09/2017
- Re: [Coq-Club] Problems with ignored notations, Sebastian Böhne, 02/10/2017
- Re: [Coq-Club] Problems with ignored notations, Guillaume Melquiond, 02/09/2017
- Re: [Coq-Club] Problems with ignored notations, Abhishek Anand, 02/09/2017
- Re: [Coq-Club] Problems with ignored notations, Abhishek Anand, 02/09/2017
- Re: [Coq-Club] Problems with ignored notations, Gaetan Gilbert, 02/09/2017
Archive powered by MHonArc 2.6.18.