coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Thorsten Altenkirch <Thorsten.Altenkirch AT nottingham.ac.uk>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] HoTT ideas already present in CIC?
- Date: Sun, 27 May 2018 20:30:50 +0000
- Accept-language: en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=Thorsten.Altenkirch AT nottingham.ac.uk; spf=Pass smtp.mailfrom=Thorsten.Altenkirch AT nottingham.ac.uk; spf=None smtp.helo=postmaster AT uidappmx06.nottingham.ac.uk
- Ironport-phdr: 9a23:m+dPIBH9wktjg8E1D6mU9Z1GYnF86YWxBRYc798ds5kLTJ7ypsiwAkXT6L1XgUPTWs2DsrQY07GQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDSwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOT4n/m/Klsx+gqFVoByjqBNxwo7bfI6aOeFkca/BZ94XX3ZNU9xTWiFHH4iyb5EPD+0EPetAsYf9p1wOrQGlBQmwGuzvzCJDi2Py3a0mzeshFwLG3A06H90SsHTfsdL4OrkSUeCy1qnI1inDYO1Q2Tvn9IXIdgwhru+KXbJzcMrR01UgFwPeg1WWrozlIy+V1uULs2iU7+pvT+evh3Q9pA5tuDSv28Qsh5DPi4kIyV7E7T10zJsrKdC7UkJ3f9GpHZVKuyyVOYZ6WN4uT39stSoiybALuIS3cDYJxZg92RLTdf2Kf5KV7h/gSuqdOTl4i2xmdb6jghu/9EagxvDyVsS01VtFtDdKn93Qun0I1hHe6tWIR/9480qv3TuDyhzc5+dZKk4uj6XbMYQuwrsom5oTr0vDGij2lV3rjK+Xa0or4PCo6/ziYrTpupORNpV4igf5MqQyhsy/AOI4MgcOX2eB/OSwzqfs8lHjTLVXjf06iqjZsJbEKsQHvqO1HhFZ34U55xqhADqr3s4UkHYJIV5fZR6LkYzkN0nLIP/iDPe/h1qskC1sx/DDJrDvHJXNLn/ZkLf6YbZy9UhcxBAvwNBb+5JbFLcBIPHyWk/rqNPYDgQ0Mwqzw+b7FNV914UeWW2PAqCDNaPeq0WH6f41L+mRZ48ZoCz9JOQ95/7ykX85nkcQcrWu3ZsOcXy3AvBmI1iCbnf3mdcAEWIKvhIkQ+DwiV2CVyRTZ3eoUK4m6DE7EtHuMYCWDIuqmfmK2DqxNpxQfGFPTF6WWz+8fIKdHvwIdSi6I8l7kzVCW6L3GKE70hT7iA/90aF7I+yc0ykEuJTg1cJ+56WHqRE17ydoAsLb+mWRQmd3n3kDRxcw27xjoEpyyl6Gl6FzxeFbQ48Ar8hVWxs3YMaPh9dxDMr/D1qYL4W5DW2+S9DjOgkfC9c4wtsAeUF4QoXwiBffwyusDL8ckvqCD9op8fCFhiSjF4NG03/DkZIZoRw+WMIWZT+ggbJj9g7cB4fM1UyS0bupJ/xFgXz9sVybxG/Lh3l2FQ59VaKfDCICZ0fftcz89hucCbmpFagmNARBwMvEI6AMd9671Vg=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Hi Siddarth,
indeed in type theory the tower of equalities gives rise to an omega-groupoid (this was proven by Peter Lumsdaine in his PhD).
However, equality in intensional type theory reflects definitional equality, that is in the empty context definitional equality and propositional equality (or better the equality type) coincide. So in particular functional extensionality and all forms
of univalence (even propositional extensionality: tow propositions are equal iff they are logically equivalent) fail. Intensional type theory seems rather cruel in so far that it imposes a lot of discipline (extensionally equivalent objects cannot be distinguished)
but it never pays back (extensionally equivalent objects are not equal).
The view in HoTT is that every type comes with its equality, I.e. every type is considered as an omega groupoid. This view allows us to adopt an extensional view of equality. Your analogy with setoids is correct, basically omega groupoids are setoids on
steroids. The equality type is not really an inductive definition but an interface to access this tower of equality.
I think the attempt to overcome the weaknesses of intensional type theory with setoids is doomed, it leads to a setoid hell glowing up even simple constructions. Also setoids do not introduce a real abstraction barrier, we can still access the underlying
representation. It seems preferable to rather work in a type theory of setoids, which is what we have tried to do (1st in my LICS paper in '99 and then with the development of OTT).
HoTT goes further and I haven't seen anybody suggestion that we could use higher groupoids explicitly in intensional type theory. I guess setoid hell is nothing compared to this.
The problem is basically solved due to the work of Thierry Coquand et al on cubical type theory. The way to go for systems like Coq, Agda, Idris,… is to follow the lead and implement a version of cubical type theory. In cubical type theory equality are
paths, I.e. functions from a generic interval (pre-)type into a type. The fundamental concepts of the intensional equality type (reflexivity, the eliminator aka J aka path induction) are no longer primitive but derivable, in the case of reflexivity by the
constant function and the eliminator is derivable from the Kan-fillers (compose terms). They are no longer primitive and the computational rule for the equality type doesn't hold in cubical type theory (this can be fixed but I have some doubts wether this
is a good idea).
Thorsten
From: <coq-club-request AT inria.fr> on behalf of Siddharth Bhat <siddu.druid AT gmail.com>
Reply-To: "coq-club AT inria.fr" <coq-club AT inria.fr>
Date: Saturday, 26 May 2018 at 20:00
To: Coq-Club Club <coq-club AT inria.fr>
Subject: [Coq-Club] HoTT ideas already present in CIC?
Reply-To: "coq-club AT inria.fr" <coq-club AT inria.fr>
Date: Saturday, 26 May 2018 at 20:00
To: Coq-Club Club <coq-club AT inria.fr>
Subject: [Coq-Club] HoTT ideas already present in CIC?
Hello all,
-- I've been trying to understand the philosophy of HoTT, and the distinctions it presents with
CIC.
So, from what I can tell, the major difference between the two seems to be:
1. The infinity-groupoid structure.
2. The univalence axiom.
Regarding #1, Why not construct this "tower of equalities" within
CIC? I understand that the regular eq type has the signature:
eq
: ?A -> ?A -> Prop
where
?A : [ |- Type]
But what stops us from setting
?A : [ |- Prop]
and recovering the "infinity groupoid? As long as we do not have
proof irrelevance, the tower should not collapse, right?
2. Univalence:
Let me first sketch out what I understand of Univalence, to make sure I have not missed something with the definition itself. Univalence talks about two things:
a. Equality, which is a type with one constructor refl, which models Leibniz equality.
b. Equivalence, which is a constructive bijection between two objects.
Univalence states that "equality is equivalent to equivalence". The forward direction (equality -> equivalence) is clear (if
a = b, use id as the bijection between a and b). The backward (equivalence -> equality) is taken to be the axiom which we cannot prove within
HoTT. Roughly, the philosophy seems to say that "equivalent objects are equal".
In Coq/CIC, do we not already sort of take this persective when using
Setoids? essentially, we are saying that "we do not care about true equality", but we are happy working with stuff "upto equivalence". Is this not
exactly what Univalence is trying to do? I understand that CIC does not let you
convert from equivalence to equality, but does that really matter?
What am I missing here, in my understanding of HoTT? I do not understand why there has been an explosion of interest in HoTT, when it seems to me that CIC can do whatever
HoTT can?
Thanks,
~Siddharth
Sending this from my phone, please excuse any typos!
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please contact the sender and delete the email and attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. Email communications with the University of Nottingham may be monitored where permitted by law.
- [Coq-Club] HoTT ideas already present in CIC?, Siddharth Bhat, 05/26/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Jason -Zhong Sheng- Hu, 05/26/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Siddharth Bhat, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Éric Tanter, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Éric Tanter, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, José Manuel Rodriguez Caballero, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Siddharth Bhat, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, José Manuel Rodriguez Caballero, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Siddharth Bhat, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, José Manuel Rodriguez Caballero, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Éric Tanter, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Éric Tanter, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Siddharth Bhat, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Thorsten Altenkirch, 05/27/2018
- Re: [Coq-Club] HoTT ideas already present in CIC?, Jason -Zhong Sheng- Hu, 05/26/2018
Archive powered by MHonArc 2.6.18.