{-# OPTIONS --safe #-}

module Cubical.Homotopy.EilenbergSteenrod where

{-
This module contains the Eilenberg-Steenrod axioms for ordinary
reduced cohomology theories with binary additivity.
The axioms are based on the ones given in Cavallo's MSc thesis
(https://www.cs.cmu.edu/~ecavallo/works/thesis15.pdf) and
Buchholtz/Favonia (2018)
-}


open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Pointed
open import Cubical.Foundations.Function
open import Cubical.Foundations.Equiv
open import Cubical.HITs.Wedge
open import Cubical.HITs.Pushout
open import Cubical.HITs.Susp

open import Cubical.Data.Empty
open import Cubical.Relation.Nullary

open import Cubical.Data.Nat
open import Cubical.Data.Bool
open import Cubical.Data.Sigma
open import Cubical.Data.Int

open import Cubical.Algebra.Group
open import Cubical.Algebra.Group.Morphisms
open import Cubical.Algebra.Group.MorphismProperties
open import Cubical.Algebra.AbGroup

record coHomTheory { ℓ' : Level} (H : (n : )  Pointed   AbGroup ℓ') : Type (ℓ-suc (ℓ-max  ℓ'))
  where
  Boolℓ : Pointed 
  Boolℓ = Lift Bool , lift true
  field
    Hmap : (n : )  {A B : Pointed } (f : A →∙ B)  AbGroupHom (H n B) (H n A)
    Suspension : Σ[ F  ((n : ) {A : Pointed }  AbGroupEquiv (H (sucℤ n) (Susp (typ A) , north)) (H n A)) ]
                   ({A B : Pointed } (f : A →∙ B) (n : )
                fst (Hmap (sucℤ n) (suspFun (fst f) , refl))  invEq (fst (F n {A = B}))
                 invEq (fst (F n {A = A}))  fst (Hmap n f))
    Exactness : {A B : Pointed }  (f : A →∙ B) (n :  )
               Ker (Hmap n f)
                Im (Hmap n {B = _ , inr (pt B)} (cfcod (fst f) , refl))
    Dimension : (n : )  ¬ n  0  isContr (fst (H n Boolℓ))
    BinaryWedge : (n : ) {A B : Pointed }  AbGroupEquiv (H n (A  B , (inl (pt A)))) (dirProdAb (H n A) (H n B))