Discussion of Homotopy Type Theory and Univalent Foundations
 help / color / mirror / Atom feed
From: "Martín Hötzel Escardó" <escardo.martin@gmail.com>
To: Homotopy Type Theory <HomotopyTypeTheory@googlegroups.com>
Subject: Re: [HoTT] Re: HITs in Agda
Date: Thu, 10 Jan 2019 13:37:22 -0800 (PST)	[thread overview]
Message-ID: <8ede5289-382e-4ef9-a234-a7d830dfaac4@googlegroups.com> (raw)
In-Reply-To: <CAFcn59aanT6X-ZYYbAVFX1FLqzYe5xYGau_MgZ6kUcWC-v_mbQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 4036 bytes --]



On Thursday, 10 January 2019 21:05:09 UTC, E Cavallo wrote:
>
> Our recent paper explains how to handle inductive families in cartesian 
> cubical type theory: http://www.cs.cmu.edu/~ecavallo/works/popl19.pdf. 
>

Nice.
 

> We believe something similar will work for De Morgan cubical type theory, 
> and I think Andrea and Anders are planning to work that out and add it to 
> cubical Agda. 
>

This is good too.
 

> For the moment it looks like cubical Agda will let you declare inductive 
> families, but will not reduce the Kan operations in those types.
>

Right. For the moment, you can prove that Agda's identity type (defined as 
an inductive family) is equivalent to the cubical identity type (because 
both have refl and J). However, the computations get stuck.

In fact, I tried this in order to be able to use Agda's pattern macthing on 
refl, rather than J on the cubical identity type, by going back-and-forth, 
but, as you say, the computations get stuck. 

If you manage to get the computations to go through, as you discuss above, 
with the work of Andreas and Anders, then this means that we can start 
using pattern matching on refl in cubical Agda without having to change 
Agda in any way other than accounting for inductive families (by the back 
and forth trick).
That would be nice for me, because what is preventing me from migrating 
from Agda to cubical Agda in my univalent development is that fact that it 
is populated by definitions by pattern matching on refl (and everything 
else) everywhere (according to the Agda style). 

So I am looking forward to the outcome of the developments you are 
advertising.

Martin

 

> Evan
>
> 2019年1月10日(木) 15:54 Martín Hötzel Escardó <escardo...@gmail.com 
> <javascript:>>:
>
>> Actually, I think it is not a priori clear how Agda's --without-K 
>> interacts with --cubical.
>>
>> For one thing, the cubical identity type (derived from the cubical path 
>> type via Andrew Swan's technique) is not an Agda inductive family and it is 
>> not Agda's inductively defined identity type. And also, as far as I know, 
>> inductive families RE an open problem in cubical type theory / the cubical 
>> model(s).
>>
>> Any development in Agda invoking --cubical that tries to be sound should, 
>> for the moment, refrain from using inductive families.
>>
>> In fact, in would be good to discuss the precautions one should take when 
>> using --cubical in Agda so that one is guaranteed to be consistent, and 
>> better, be talking about something that is currently understood (such as 
>> entities in the cubical model((s)). It is not entirely clear to me which 
>> features of Agda we can use and which ones we should not use and which ones 
>> we could use if we knew more.
>>
>> Martin
>>
>> On Thursday, 10 January 2019 15:28:07 UTC, Nils Anders Danielsson wrote:
>>>
>>> On 10/01/2019 16.19, Ali Caglayan wrote: 
>>> > I was under the impression that this was in plain agda, that's why it 
>>> > was more suprising. I didn't realise it was about the cubical agda. 
>>>
>>> You get Cubical Agda by using the option --cubical (for instance in a 
>>> pragma: {-# OPTIONS --cubical #-}). The idea is that it should be sound 
>>> to import Agda code that uses --without-K from Cubical Agda. 
>>>
>>> -- 
>>> /NAD 
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Homotopy Type Theory" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to HomotopyTypeTheory+unsubscribe@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Homotopy Type Theory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to HomotopyTypeTheory+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 6629 bytes --]

  reply	other threads:[~2019-01-10 21:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-10 13:37 [HoTT] " Ali Caglayan
2019-01-10 13:53 ` [HoTT] " Martín Hötzel Escardó
2019-01-10 15:19   ` Ali Caglayan
2019-01-10 15:28     ` Nils Anders Danielsson
2019-01-10 20:54       ` Martín Hötzel Escardó
2019-01-10 21:04         ` Evan Cavallo
2019-01-10 21:37           ` Martín Hötzel Escardó [this message]
2019-01-11 11:48         ` Nils Anders Danielsson
2019-01-14 22:48         ` Thorsten Altenkirch
2019-01-10 20:53 ` Martín Hötzel Escardó

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ede5289-382e-4ef9-a234-a7d830dfaac4@googlegroups.com \
    --to=escardo.martin@gmail.com \
    --cc=HomotopyTypeTheory@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).