-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define spectra #589
Merged
+151
−17
Merged
Define spectra #589
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f728035
Introduce successor structures
felixwellen 099ca5f
Better use records
felixwellen 79e8831
Define prespectrum
felixwellen 69f2629
Fix: use pointed spaces
felixwellen ea0a2b7
Rename and fix definition of prespectrum
felixwellen e42a770
Unit as a pointed type
felixwellen 6d681a9
Refactor
felixwellen ba0a5fb
Add suspension prespectrum
felixwellen 26042fb
Choose integers as default indices for prespectra
felixwellen db5aba2
Whitespace
felixwellen e435d8c
Define spectrum
felixwellen e6cd327
Whitespace
felixwellen 76b7598
Move pointed unit type
felixwellen a9aded5
Upstream inclusion into suspension to HITs/Susp/Properties
felixwellen 77bc761
Naming conventions
felixwellen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 = (λ a → merid a ∙ merid (pt (space n)) ⁻¹) , rCancel (merid (pt (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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about upstreaming the σ in Freudenthal and this pointed version to HITs.Susp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'll try that now...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to move it to Susp/Properties to avoid cyclic dependency problems. Also, I had to introduce new dependecies in Susp/Properties and specialize imports in some places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you just change them to
toSusp
andtoSuspPointed
? Capital names are meant to be reserved for types (although we haven't enforced it well). Then I'll merge.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!