Is the univalence axiom invertible (modulo paths)? Is it possible to prove, using Agda's Cubical library, to prove the following:
open import Cubical.Core.Glue
uaInj : ∀ {ℓ} {A B : Set ℓ} {f g : A ≃ B} →
ua f ≡ ua g → equivFun f ≡ equivFun g
I suspect the above should hold, because in example 3.19 of the HoTT book, there is a step in the proof where an equivalence between two equivalences is used to prove the equivalence between their functions:
[...] so
fis an equivalence. Hence, by univalence,fgives rise to a pathp : A ≡ A.If
pwere equal torefl A, then (again by univalence)fwould equal the identity function ofA.
Sure,
uais an equivalence, so it's injective. In the HoTT book, the inverse ofuaisidtoeqv, so by congruenceidtoeqv (ua f) ≡ idtoeqv (ua g)and then by inversesf ≡ g. I'm not familiar with the contents of cubical Agda prelude but this should be provable since it follows directly from the statement of univalence.