coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?
Chronological Thread
- From: "jonikelee AT gmail.com" <jonikelee AT gmail.com>
- To: Jason Gross <jasongross9 AT gmail.com>
- Cc: coq-club <coq-club AT inria.fr>, Pierre Courtieu <pierre.courtieu AT gmail.com>
- Subject: Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?
- Date: Sun, 7 Feb 2021 11:29:43 -0500
- 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-qt1-f169.google.com
- Ironport-phdr: 9a23:QJiYzxFBjKlI35G+wtuAtp1GYnF86YWxBRYc798ds5kLTJ7yosuwAkXT6L1XgUPTWs2DsrQY0ruQ7vmrBzFIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfLd/IA+2oAnMucUbgItvIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1kyoMKSI3/3/LhcxxlKJboQyupxpjw47PfYqZMONycr7Bcd8GQGZMWNtaWS5cDYOmd4YBAeoPM/hFoYf+pVQOoxywCgawC+3g0TJImn370Lcm3+k7DQ3KwgotFM8OvnTOq9X1Mb8fXe63zKnPyzXDbvBW1in56IfWbB8suv6MXbdqfsrQzUkjDR/KjlKVqYDrIjiY0eYNs2+d7+phVuKglWonpB9vrTW0yccsj5PGhoMRylze6Sp5x4M1KMS+RUVmbtGqDIFeuDuGN4tqXMwiWWdotT4mxrAJpJK3YTYHxZQkyhPcZPGKbYaG7x3tWuufLzp0mnxodbKiihuv8UatxPDwW9e63ltUrSdLnN3BuHAN2RHQ7MWMV/hz/l+51DqRywze7vtILEM0mKbBNpIsw6I8moAOvUnCGiL6gFv6ga6Kekk5/+Wk9uDqbanjq5KTNoJ4lh3yP6EzlsChBek1NxYCUmeV+eui0bDs5k30QLtEjvAznKnWrp7aKdoeq6O5DQJY0Ygj5hCiBDm8ytsYh2MILFdddRKHkYfpP1bOLej9DfilglSslC5nx+naPrH8G5nNIGXPnbblcLpn5E5czw0zzd9b551KEL0OPPXzWkrpuNzZCB82LRC0zv75BNlh0o4SQ2GCD6+DPK/PsFKE+vgjL/SNaYIRoDr9LuIq5//qjX83g18deqyp0IMVaHC/GPRmIkaZbmTogtgfD2gHpQU+TOnwh12DVT5ffWq9X6U55j0jEoKpEZ/DRpyxgLyGxCq0AppWZnlfBl+QFXfoap6LVuwXaCOSJ89hiiYLWaKgS48nzxGutRX1x6BpLurOqWUkssfB3cNy4aX8jxYp7nQgDc2G1GeCVWZvhTIgSDo/3aQ5qkt4nASty6991rZaEtpS5P5NXwoSOpvVzug8ANf3EEqVfNCPSVWrRtirKT40R9M1hdQJZhAuSJ2Zkhnf0n/yUPcunLuRCclxq/qEhiSjF4NG03/DkZIZoRw+WMIWbD+pg6d+807YAIubyxzIxZbvTrwV2Wv2zEnGyGOPuE9CVwspCPfKWHkeYg3dqtGrvxqfHY/rMqwuN0568eDHKqZObYe331BPRfOmIciHJmzoxTb2ChGPybeBKoHtfjdF0Q==
On Sun, 7 Feb 2021 07:14:51 -0500
Jason Gross <jasongross9 AT gmail.com> wrote:
> I think your check is backwards (admittedly, I gave it to you
> backwards); you want B -> A for "A is a subtype of B".
Wait... What? I think you had it right the first time. If an identity
function can witness A->B (modulo coercions again), that means all As
are Bs, hence A is a subtype of B.
> Also, even
> the corrected tactic gives the wrong answer on checking if Set is a
> subtype of Prop.
You mean "issubtype Prop Set", right? That passes now. I think you
have sub and super swapped.
> Why do you need the element-of check?
That's what prevents additional constraints when the id function is
attempted later. If B:A typechecks, then either there is an existing B
< A constraint or there is no current constraint between A and B, and
B:A adds a B < A constraint. It's the second no-current-constraint case
that I want to filter out (well, both, but the first will cause the id
function to fail typechecking) because it indicates that attempting the
A->B id function would add a A < B constraint.
- [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/05/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/05/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/05/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, Pierre Courtieu, 02/06/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, Jason Gross, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, Jason Gross, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, Jason Gross, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/07/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, Pierre Courtieu, 02/06/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/05/2021
- Re: [Coq-Club] Puzzle: tactic that can check Sort subtyping without adding universe constraints?, jonikelee AT gmail.com, 02/05/2021
Archive powered by MHonArc 2.6.19+.