-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from felixwellen/define-spectra
Define spectra
- Loading branch information
Showing
10 changed files
with
151 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Data.Unit.Pointed where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.Pointed.Base | ||
|
||
open import Cubical.Data.Unit | ||
|
||
private | ||
variable | ||
ℓ : Level | ||
|
||
Unit∙ : Pointed ℓ | ||
Unit∙ = Unit* , tt* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{-# OPTIONS --safe #-} | ||
{- | ||
This uses ideas from Floris van Doorn's phd thesis and the code in | ||
https://github.com/cmu-phil/Spectral/blob/master/spectrum/basic.hlean | ||
-} | ||
module Cubical.Homotopy.Prespectrum where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.GroupoidLaws | ||
open import Cubical.Foundations.Pointed | ||
open import Cubical.Data.Unit.Pointed | ||
|
||
open import Cubical.Structures.Successor | ||
|
||
open import Cubical.Data.Nat | ||
open import Cubical.Data.Int | ||
|
||
open import Cubical.HITs.Susp | ||
|
||
open import Cubical.Homotopy.Loopspace | ||
|
||
private | ||
variable | ||
ℓ ℓ′ : Level | ||
|
||
record GenericPrespectrum (S : SuccStr ℓ) (ℓ′ : Level) : Type (ℓ-max (ℓ-suc ℓ′) ℓ) where | ||
open SuccStr S | ||
field | ||
space : Index → Pointed ℓ′ | ||
map : (i : Index) → (space i →∙ Ω (space (succ i))) | ||
|
||
Prespectrum = GenericPrespectrum ℤ+ | ||
|
||
Unit∙→ΩUnit∙ : {ℓ : Level} → (Unit∙ {ℓ = ℓ}) →∙ Ω (Unit∙ {ℓ = ℓ}) | ||
Unit∙→ΩUnit∙ = (λ {tt* → refl}) , refl | ||
|
||
makeℤPrespectrum : (space : ℕ → Pointed ℓ) | ||
(map : (i : ℕ) → (space i) →∙ Ω (space (suc i))) | ||
→ Prespectrum ℓ | ||
GenericPrespectrum.space (makeℤPrespectrum space map) (pos n) = space n | ||
GenericPrespectrum.space (makeℤPrespectrum space map) (negsuc n) = Unit∙ | ||
GenericPrespectrum.map (makeℤPrespectrum space map) (pos n) = map n | ||
GenericPrespectrum.map (makeℤPrespectrum space map) (negsuc zero) = (λ {tt* → refl}) , refl | ||
GenericPrespectrum.map (makeℤPrespectrum space map) (negsuc (suc n)) = Unit∙→ΩUnit∙ | ||
|
||
SuspensionPrespectrum : Pointed ℓ → Prespectrum ℓ | ||
SuspensionPrespectrum A = makeℤPrespectrum space map | ||
where | ||
space : ℕ → Pointed _ | ||
space zero = A | ||
space (suc n) = Susp∙ (typ (space n)) | ||
|
||
map : (n : ℕ) → _ | ||
map n = toSuspPointed (space n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{-# OPTIONS --safe #-} | ||
{- | ||
This uses ideas from Floris van Doorn's phd thesis and the code in | ||
https://github.com/cmu-phil/Spectral/blob/master/spectrum/basic.hlean | ||
-} | ||
module Cubical.Homotopy.Spectrum where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Data.Unit.Pointed | ||
open import Cubical.Foundations.Equiv | ||
|
||
open import Cubical.Data.Int | ||
|
||
open import Cubical.Homotopy.Prespectrum | ||
|
||
private | ||
variable | ||
ℓ : Level | ||
|
||
Spectrum : (ℓ : Level) → Type (ℓ-suc ℓ) | ||
Spectrum ℓ = let open GenericPrespectrum | ||
in Σ[ P ∈ Prespectrum ℓ ] ((k : ℤ) → isEquiv (fst (map P k))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{-# OPTIONS --safe #-} | ||
{- | ||
Successor structures for spectra, chain complexes and fiber sequences. | ||
This is an idea from Floris van Doorn's phd thesis. | ||
-} | ||
module Cubical.Structures.Successor where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Data.Int | ||
open import Cubical.Data.Nat | ||
|
||
private | ||
variable | ||
ℓ : Level | ||
|
||
record SuccStr (ℓ : Level) : Type (ℓ-suc ℓ) where | ||
field | ||
Index : Type ℓ | ||
succ : Index → Index | ||
|
||
open SuccStr | ||
|
||
ℤ+ : SuccStr ℓ-zero | ||
ℤ+ .Index = ℤ | ||
ℤ+ .succ = sucℤ | ||
|
||
ℕ+ : SuccStr ℓ-zero | ||
ℕ+ .Index = ℕ | ||
ℕ+ .succ = suc |