Homotopy algebra

Content created by Fredrik Bakke and Egbert Rijke.

Created on 2024-02-06.
Last modified on 2024-02-19.

module foundation.homotopy-algebra where
Imports
open import foundation.universe-levels
open import foundation.whiskering-homotopies-composition

open import foundation-core.function-types
open import foundation-core.homotopies

Idea

This file has been created to collect operations on and facts about higher homotopies. The scope of this file is analogous to the scope of the file path algebra, which is about higher identifications.

Definitions

Horizontal concatenation of homotopies

module _
  {l1 l2 l3 : Level} {A : UU l1} {B : A  UU l2} {C : A  UU l3}
  {f f' : (x : A)  B x} {g g' : {x : A}  B x  C x}
  where

  horizontal-concat-htpy : ({x : A}  g {x} ~ g' {x})  f ~ f'  g  f ~ g'  f'
  horizontal-concat-htpy G F = (g ·l F) ∙h (G ·r f')

  horizontal-concat-htpy' :
    ({x : A}  g {x} ~ g' {x})  f ~ f'  g  f ~ g'  f'
  horizontal-concat-htpy' G F = (G ·r f) ∙h (g' ·l F)

Properties

The two definitions of horizontal concatenation of homotopies agree

module _
  {l1 l2 l3 : Level} {A : UU l1} {B : A  UU l2} {C : A  UU l3}
  where

  coh-right-unit-horizontal-concat-htpy :
    {f : (x : A)  B x} {g g' : {x : A}  B x  C x}
    (G : {x : A}  g {x} ~ g' {x}) 
    horizontal-concat-htpy G (refl-htpy' f) ~
    horizontal-concat-htpy' G (refl-htpy' f)
  coh-right-unit-horizontal-concat-htpy G = inv-htpy-right-unit-htpy

  coh-left-unit-horizontal-concat-htpy :
    {f f' : (x : A)  B x} {g : {x : A}  B x  C x}
    (F : f ~ f') 
    horizontal-concat-htpy (refl-htpy' g) F ~
    horizontal-concat-htpy' (refl-htpy' g) F
  coh-left-unit-horizontal-concat-htpy F = right-unit-htpy

For the general case, we must construct a coherence of the square

            g ·r F
        gf -------> gf'
         |          |
  G ·r f |          | G ·r f'
         ∨          ∨
       g'f ------> g'f'
           g' ·r F

but this is an instance of naturality of G applied to F.

module _
  {l1 l2 l3 : Level} {A : UU l1} {B : A  UU l2} {C : A  UU l3}
  {f f' : (x : A)  B x} {g g' : {x : A}  B x  C x}
  (G : {x : A}  g {x} ~ g' {x}) (F : f ~ f')
  where

  coh-horizontal-concat-htpy :
    horizontal-concat-htpy' G F ~ horizontal-concat-htpy G F
  coh-horizontal-concat-htpy = nat-htpy G ·r F

Recent changes