{-# OPTIONS --safe #-}
module Cubical.Experiments.ZCohomologyOld.Base where

open import Cubical.Data.Int.Base hiding (_+_)
open import Cubical.Data.Nat.Base
open import Cubical.Data.Sigma

open import Cubical.Foundations.Pointed.Base

open import Cubical.HITs.Nullification.Base
open import Cubical.HITs.SetTruncation.Base
open import Cubical.HITs.Sn.Base
open import Cubical.HITs.S1.Base
open import Cubical.HITs.Susp.Base
open import Cubical.HITs.Truncation.Base

private
  variable
     : Level
    A : Type 

--- Cohomology ---

{- EM-spaces Kₙ from Brunerie 2016 -}
coHomK : (n : )  Type₀
coHomK zero = 
coHomK (suc n) =  S₊ (suc n)  (2 + suc n)

{- Cohomology -}
coHom : (n : )  Type   Type 
coHom n A =  (A  coHomK n) ∥₂

--- Reduced cohomology ---

coHom-pt : (n : )  coHomK n
coHom-pt 0 = 0
coHom-pt 1 =  base 
coHom-pt (suc (suc n)) =  north 

{- Pointed version of Kₙ  -}
coHomK-ptd : (n : )  Pointed (ℓ-zero)
coHomK-ptd n = coHomK n , coHom-pt n

{- Reduced cohomology -}
coHomRed : (n : )  (A : Pointed )  Type 
coHomRed n A =  A →∙ coHomK-ptd n ∥₂