Discussion of Homotopy Type Theory and Univalent Foundations
 help / color / mirror / Atom feed
From: Martin Escardo <escardo.martin@gmail.com>
To: Michael Shulman <shulman@sandiego.edu>,
	Martin Escardo <escardo.martin@gmail.com>
Cc: "HomotopyTypeTheory@googlegroups.com"
	<homotopytypetheory@googlegroups.com>
Subject: Re: [HoTT] two's complement integers
Date: Thu, 4 Mar 2021 22:42:30 +0000	[thread overview]
Message-ID: <8f4c4a68-dbe0-055b-3462-3230cd09c86f@gmail.com> (raw)
In-Reply-To: <CAOvivQwsn-MLHzw=W5wxZ49Bp+HS9nr261YQJLgQ9E60K2Pcmg@mail.gmail.com>



On 04/03/2021 22:05, Michael Shulman wrote:
> On Thu, Mar 4, 2021 at 1:11 PM Martin Escardo <escardo.martin@gmail.com> wrote:
>> I wonder if your definition of the integers with the HIT is isomorphic
>> to an inductively defined version without a HIT as above, and this is
>> how you proved it to be a set.
> 
> No, I just did an encode-decode.  I formalized most of it, up to some
> obviously true lemmas about squares and cubes.
> 
> I thought for a little bit about whether there is an equivalent
> "lower" inductive version, but nothing immediately occurred to me.  Do
> you have a suggestion?


For example, take ℤ' = ℕ + ℕ and define the functions you have in your
hit and prove the equations you have in your HIT.

Then using the HIT universal property you get a function from your ℤ to
this ℤ', and conversely you define a function from ℤ' to ℤ "manually".

This is what Alex Rice and I did to prove that our 𝔹 and 𝔹' are
equivalent. The cubes don't disappear completely, of course. But there
were much fewer cubes than when we tried to prove directly that 𝔹 is a
set, and we gave up because the code was getting too long and
unpleasant, with too many cases to check. The indirect version was much
shorter and pleasing.

Martin




-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/HomotopyTypeTheory/8f4c4a68-dbe0-055b-3462-3230cd09c86f%40gmail.com.

  reply	other threads:[~2021-03-04 22:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 20:43 Michael Shulman
2021-03-04 21:11 ` Martin Escardo
2021-03-04 22:05   ` Michael Shulman
2021-03-04 22:42     ` Martin Escardo [this message]
2021-03-04 23:16     ` Nicolai Kraus
2021-03-05  2:27       ` Michael Shulman
2021-03-05  3:02         ` Jason Gross
2021-03-05  4:41           ` Michael Shulman

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=8f4c4a68-dbe0-055b-3462-3230cd09c86f@gmail.com \
    --to=escardo.martin@gmail.com \
    --cc=homotopytypetheory@googlegroups.com \
    --cc=shulman@sandiego.edu \
    /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).