Skip to content

Commit 304c031

Browse files
committed
extend commutative squares
1 parent c9721ba commit 304c031

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Cubical/HITs/Pushout/Properties.agda

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,30 @@ module _ {ℓ₀ ℓ₂ ℓ₄ ℓP : Level} where
830830
PushoutSquare : Type (ℓ-suc ℓ*)
831831
PushoutSquare = Σ commSquare isPushoutSquare
832832

833+
module _ {ℓ₀ ℓ₂ ℓ₄ ℓP ℓP' : Level}
834+
{P' : Type ℓP'} where
835+
open commSquare
836+
extendCommSquare : (sk : commSquare {ℓ₀} {ℓ₂} {ℓ₄} {ℓP})
837+
(sk .P P') commSquare
838+
extendCommSquare sk f = record
839+
{ sp = sk .sp
840+
; P = P'
841+
; inlP = f ∘ sk .inlP
842+
; inrP = f ∘ sk .inrP
843+
; comm = cong (f ∘_) (sk .comm)
844+
}
845+
846+
extendPushoutSquare : (sk : PushoutSquare {ℓ₀} {ℓ₂} {ℓ₄} {ℓP})
847+
(e : sk .fst .P ≃ P') PushoutSquare
848+
extendPushoutSquare sk e = (extendCommSquare (sk .fst) (e .fst) ,
849+
subst isEquiv H (compEquiv (_ , sk .snd) e .snd))
850+
where
851+
H : e .fst ∘ _ ≡ _
852+
H = funExt λ
853+
{ (inl x) refl
854+
; (inr x) refl
855+
; (push a i) refl }
856+
833857
-- Pushout itself fits into a pushout square
834858
pushoutToSquare : 3-span {ℓ} {ℓ'} {ℓ''} PushoutSquare
835859
pushoutToSquare sp = record {

0 commit comments

Comments
 (0)