Skip to content

Commit dee0c56

Browse files
committed
extend commutative squares
1 parent 98bbb7a commit dee0c56

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
@@ -831,6 +831,30 @@ module _ {ℓ₀ ℓ₂ ℓ₄ ℓP : Level} where
831831
PushoutSquare : Type (ℓ-suc ℓ*)
832832
PushoutSquare = Σ commSquare isPushoutSquare
833833

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

0 commit comments

Comments
 (0)