Zulip Chat Archive

Stream: new members

Topic: New to HoTTLean


Pesara Amarasekera (Jan 14 2026 at 22:50):

Hey there, I'm learning HoTT and using Lean to work on HoTTLean. I'm trying to clarify some definitions in an Issue I'm working on. @πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ I can see the definition of set univalence in hott0.lean:

hott0
  /-- The univalence axiom for sets. See HoTT book, Axiom 2.10.3. -/
  axiom setUvβ‚€β‚€ {A B : Type} (A_set : isSetβ‚€ A) (B_set : isSetβ‚€ B) :
    isEquiv₁₀ (@Identity.toEquivβ‚€β‚€ A B)

But where is the definition for set-data?

πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ (Jan 15 2026 at 11:35):

Hi @Pesara Amarasekera ! I am not following the question, apologies. What is 'set-data'? Which definition are you missing (is it in the HoTT book)?

I should also make a general disclaimer: HoTTLean is a very early prototype. You will run into missing functionality and performance issues all over the place. If you are just interested in learning HoTT, consider also looking into Ground Zero, or libraries in other provers such as the 1lab.

Pesara Amarasekera (Jan 15 2026 at 16:58):

Hi @πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ , I meant as in issue #165
Prove that equivalent magmas consisting of set-data are equal using set-univalenceinΒ test/hott0.lean`.

I got the magma now, interms of a sigma type in here

So I'm trying to clarify what set-data is, I'm assuming I'm supposed to use isSet_0 but not sure...

πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ (Jan 15 2026 at 19:39):

Sorry, I should have remembered my own ambiguous wording! I updated the description now: what is meant is a magma where the underlying type A has isSet A.

Pesara Amarasekera said:

interms of a sigma type in here

The link is broken.

Pesara Amarasekera (Jan 15 2026 at 21:20):

Thanks! let me fix the link here.
and to post the url
https://github.com/PradCoder/HoTTLean/commit/abbbaf75411f49c7b4176377d232ef266557c6c8

Pesara Amarasekera (Jan 22 2026 at 01:18):

πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ said:

Sorry, I should have remembered my own ambiguous wording! I updated the description now: what is meant is a magma where the underlying type A has isSet A.

Pesara Amarasekera said:

interms of a sigma type in here

The link is broken.

@πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ just wondering where did you guys define path-induction, I tried searching the repo for the keyword, and I didn't get a match.

Also I started working on Hedberg's theorem, as an experiment... wondering if that would be useful.

πš πš˜πš“πšŒπš’πšŽπšŒπš‘ πš—πšŠπš πš›πš˜πšŒπš”πš’ (Jan 22 2026 at 04:32):

Path induction is the elimination principle for identity types. In HoTT0 that's Identity.rec.

Hedberg's theorem would be useful, but I'm not sure it can be stated right now: there are no inductive types in HoTTLean at the moment, and no Booleans either (using which one could form binary sum types). You could add the Booleans using axioms, I suppose.

Pesara Amarasekera (Jan 23 2026 at 18:08):

(deleted)


Last updated: Feb 28 2026 at 14:05 UTC