2015-09-13 18:58:11 +00:00
|
|
|
|
/-
|
|
|
|
|
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
|
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
Authors: Ulrik Buchholtz
|
|
|
|
|
-/
|
2015-09-25 16:39:45 +00:00
|
|
|
|
import types.trunc homotopy.sphere hit.pushout
|
2015-09-13 18:58:11 +00:00
|
|
|
|
|
|
|
|
|
open eq is_trunc is_equiv nat equiv trunc prod pushout sigma sphere_index unit
|
|
|
|
|
|
|
|
|
|
-- where should this be?
|
|
|
|
|
definition family : Type := ΣX, X → Type
|
|
|
|
|
|
|
|
|
|
namespace cellcomplex
|
|
|
|
|
|
|
|
|
|
/-
|
|
|
|
|
define by recursion on ℕ
|
|
|
|
|
both the type of fdccs of dimension n
|
|
|
|
|
and the realization map fdcc n → Type
|
|
|
|
|
|
|
|
|
|
in other words, we define a function
|
|
|
|
|
fdcc : ℕ → family
|
|
|
|
|
|
|
|
|
|
an alternative to the approach here (perhaps necessary) is to
|
|
|
|
|
define relative cell complexes relative to a type A, and then use
|
|
|
|
|
spherical indexing, so a -1-dimensional relative cell complex is
|
|
|
|
|
just star : unit with realization A
|
|
|
|
|
-/
|
|
|
|
|
|
|
|
|
|
definition fdcc_family [reducible] : ℕ → family :=
|
|
|
|
|
nat.rec
|
2016-02-15 20:55:29 +00:00
|
|
|
|
-- a zero-dimensional cell complex is just an set
|
2015-09-13 18:58:11 +00:00
|
|
|
|
-- with realization the identity map
|
2016-02-15 20:55:29 +00:00
|
|
|
|
⟨Set , λA, trunctype.carrier A⟩
|
2015-09-13 18:58:11 +00:00
|
|
|
|
(λn fdcc_family_n, -- sigma.rec (λ fdcc_n realize_n,
|
|
|
|
|
/- a (succ n)-dimensional cell complex is a triple of
|
2016-02-15 20:55:29 +00:00
|
|
|
|
an n-dimensional cell complex X, an set of (succ n)-cells A,
|
2015-09-13 18:58:11 +00:00
|
|
|
|
and an attaching map f : A × sphere n → |X| -/
|
2016-02-15 20:55:29 +00:00
|
|
|
|
⟨Σ X : pr1 fdcc_family_n , Σ A : Set, A × sphere n → pr2 fdcc_family_n X ,
|
2015-09-13 18:58:11 +00:00
|
|
|
|
/- the realization of such is the pushout of f with
|
|
|
|
|
canonical map A × sphere n → unit -/
|
|
|
|
|
sigma.rec (λX , sigma.rec (λA f, pushout (λx , star) f))
|
|
|
|
|
⟩)
|
|
|
|
|
|
|
|
|
|
definition fdcc (n : ℕ) : Type := pr1 (fdcc_family n)
|
|
|
|
|
|
2016-02-15 20:55:29 +00:00
|
|
|
|
definition cell : Πn, fdcc n → Set :=
|
2015-09-13 18:58:11 +00:00
|
|
|
|
nat.cases (λA, A) (λn T, pr1 (pr2 T))
|
|
|
|
|
|
|
|
|
|
end cellcomplex
|