2015-06-04 01:41:21 +00:00
|
|
|
/-
|
|
|
|
Copyright (c) 2015 Floris van Doorn. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
Authors: Floris van Doorn
|
|
|
|
|
2015-06-04 17:55:02 +00:00
|
|
|
Theorems about the unit type
|
2015-06-04 01:41:21 +00:00
|
|
|
-/
|
|
|
|
|
2015-11-18 23:08:38 +00:00
|
|
|
import algebra.group
|
|
|
|
|
2015-10-22 22:41:55 +00:00
|
|
|
open equiv option eq
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
|
|
namespace unit
|
|
|
|
|
2015-10-22 22:41:55 +00:00
|
|
|
protected definition eta : Π(u : unit), ⋆ = u
|
|
|
|
| eta ⋆ := idp
|
|
|
|
|
2015-06-04 01:41:21 +00:00
|
|
|
definition unit_equiv_option_empty : unit ≃ option empty :=
|
|
|
|
begin
|
|
|
|
fapply equiv.MK,
|
|
|
|
{ intro u, exact none},
|
|
|
|
{ intro e, exact star},
|
|
|
|
{ intro e, cases e, reflexivity, contradiction},
|
|
|
|
{ intro u, cases u, reflexivity},
|
|
|
|
end
|
|
|
|
|
|
|
|
definition unit_imp_equiv (A : Type) : (unit → A) ≃ A :=
|
|
|
|
begin
|
|
|
|
fapply equiv.MK,
|
|
|
|
{ intro f, exact f star},
|
|
|
|
{ intro a u, exact a},
|
|
|
|
{ intro a, reflexivity},
|
|
|
|
{ intro f, apply eq_of_homotopy, intro u, cases u, reflexivity},
|
|
|
|
end
|
|
|
|
|
|
|
|
end unit
|
2015-11-18 23:08:38 +00:00
|
|
|
|
|
|
|
open unit is_trunc
|
|
|
|
|
|
|
|
namespace algebra
|
|
|
|
|
|
|
|
definition trivial_group [constructor] : group unit :=
|
|
|
|
group.mk (λx y, star) _ (λx y z, idp) star (unit.rec idp) (unit.rec idp) (λx, star) (λx, idp)
|
|
|
|
|
|
|
|
definition Trivial_group [constructor] : Group :=
|
|
|
|
Group.mk _ trivial_group
|
|
|
|
|
|
|
|
notation `G0` := Trivial_group
|
|
|
|
|
|
|
|
end algebra
|