Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] question about universes and equalities

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] question about universes and equalities


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] question about universes and equalities
  • Date: Mon, 9 May 2016 11:14:27 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qk0-f169.google.com
  • Ironport-phdr: 9a23:xmfGpxXVODt3MuZJpYIZxOKDiVLV8LGtZVwlr6E/grcLSJyIuqrYZheOt8tkgFKBZ4jH8fUM07OQ6PCxHzVaqsnR+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8yVOl8D22r1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5g/GLdfFXEtN30/zMztrxjKCwWVtVUGVWBDsB1OChTF5ReyeprwrCb8qqIp2i6cPM77Sb05cTun5qZvDhTvjXFUZHYC7GjLh5ko3+pgqxW7qkknzg==



On 05/09/2016 09:13 AM, Matthieu Sozeau wrote:

Variables S1 S2 : Set.

Goal @eq Type S1 S2 -> @eq Type S1 S2.
intro H.
Fail tauto.
assumption.
Qed.

Why does tauto fail, when assumption succeeds? Is this a bug in tauto?

That's a regression in tauto indeed, which now requires exact equality
of the universes, through a non linear goal pattern matching:
match goal with ?X1 |- ?X1 forces both instances of X1 to be convertible,
with no additional universe constraints currently, but the two types are
initially different. This can be fixed easily to allow the same flexibility
as in 8.4 (or assumption) to unify the universes as well.

Just submitted as #4721


Definition T1 : Type := S1.
Definition T2 : Type := S2.

Goal T1 = T1.
congruence.
Undo.
tauto.
Undo.
unfold T1.
Fail congruence.
tauto.
Qed.


This one is a bit more surprising: congruence does not work up to
cumulativity Set <= Type(i) (already in 8.4). It builds a proof of [@eq Set
S1 S1] by inferring the type of S1, but this proof can no longer apply to
the [@eq Type S1 S1] goal, because Type cannot be unified with Set in
general. It can also be fixed by allowing larger types in the proofs
produced by congruence.

This is #4718, submitted before I started to think that maybe I was just using universes incorrectly.

Best,
-- Matthieu


Thanks, Matthieu.

-- Jonathan






Archive powered by MHonArc 2.6.18.

Top of Page