2015-02-21 00:30:32 +00:00
|
|
|
|
/-
|
|
|
|
|
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
|
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
|
|
Module: types.pointed
|
|
|
|
|
Author: Jakob von Raumer
|
|
|
|
|
|
|
|
|
|
Ported from Coq HoTT
|
|
|
|
|
-/
|
|
|
|
|
|
|
|
|
|
open eq prod is_trunc sigma
|
2014-12-12 04:14:53 +00:00
|
|
|
|
|
|
|
|
|
structure is_pointed [class] (A : Type) :=
|
|
|
|
|
(point : A)
|
|
|
|
|
|
|
|
|
|
namespace is_pointed
|
|
|
|
|
variables {A B : Type} (f : A → B)
|
|
|
|
|
|
|
|
|
|
-- Any contractible type is pointed
|
2015-02-27 05:45:21 +00:00
|
|
|
|
definition is_pointed_of_is_contr [instance] [H : is_contr A] : is_pointed A :=
|
2015-02-21 00:30:32 +00:00
|
|
|
|
is_pointed.mk !center
|
2014-12-12 04:14:53 +00:00
|
|
|
|
|
|
|
|
|
-- A pi type with a pointed target is pointed
|
2015-02-27 05:45:21 +00:00
|
|
|
|
definition is_pointed_pi [instance] {P : A → Type} [H : Πx, is_pointed (P x)]
|
2014-12-12 04:14:53 +00:00
|
|
|
|
: is_pointed (Πx, P x) :=
|
|
|
|
|
is_pointed.mk (λx, point (P x))
|
|
|
|
|
|
|
|
|
|
-- A sigma type of pointed components is pointed
|
2015-02-27 05:45:21 +00:00
|
|
|
|
definition is_pointed_sigma [instance] {P : A → Type} [G : is_pointed A]
|
2015-02-21 00:30:32 +00:00
|
|
|
|
[H : is_pointed (P !point)] : is_pointed (Σx, P x) :=
|
|
|
|
|
is_pointed.mk ⟨!point,!point⟩
|
2014-12-12 04:14:53 +00:00
|
|
|
|
|
2015-02-27 05:45:21 +00:00
|
|
|
|
definition is_pointed_prod [H1 : is_pointed A] [H2 : is_pointed B]
|
2014-12-12 04:14:53 +00:00
|
|
|
|
: is_pointed (A × B) :=
|
2015-02-21 00:30:32 +00:00
|
|
|
|
is_pointed.mk (!point,!point)
|
2014-12-12 04:14:53 +00:00
|
|
|
|
|
2015-02-27 05:45:21 +00:00
|
|
|
|
definition is_pointed_loop_space (a : A) : is_pointed (a = a) :=
|
2014-12-12 04:14:53 +00:00
|
|
|
|
is_pointed.mk idp
|
|
|
|
|
|
|
|
|
|
end is_pointed
|