Skip to content

Commit

Permalink
funExt is an equivalence.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Oct 24, 2023
1 parent ad4c842 commit 1c28c2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cubical/Foundations/Equiv.agda
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,16 @@ isEquiv-isEquiv'-Iso f .leftInv p i .equiv-proof = p .equiv-proof

isEquiv≃isEquiv' : (f : A B) isEquiv f ≃ isEquiv' f
isEquiv≃isEquiv' f = isoToEquiv (isEquiv-isEquiv'-Iso f)

-- funExt is an equivalence

funExt≃ : {B : A I Type ℓ'} {f : (x : A) B x i0} {g : (x : A) B x i1}
((x : A) PathP (B x) (f x) (g x)) ≃ PathP (λ i (x : A) B x i) f g
funExt≃ {A = A}{B = B} {f = f} {g = g} = isoToEquiv e
where
open Iso
e : Iso ((x : A) PathP (B x) (f x) (g x)) (PathP (λ i (x : A) B x i) f g)
fun e p = funExt p
inv e p = funExt⁻ p
rightInv e p = refl
leftInv e p = refl

0 comments on commit 1c28c2e

Please sign in to comment.