2017-07-08 12:39:23 +00:00
|
|
|
|
/-
|
|
|
|
|
Copyright (c) 2016-2017 Floris van Doorn. All rights reserved.
|
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
Authors: Floris van Doorn, Ulrik Buchholtz
|
2016-09-28 14:33:21 +00:00
|
|
|
|
|
2017-07-08 12:39:23 +00:00
|
|
|
|
Various groups of maps. Most importantly we define a group structure
|
2017-07-21 14:55:27 +00:00
|
|
|
|
on trunc 0 (A →* Ω B) and the dependent version trunc 0 (ppi _ _),
|
|
|
|
|
which are used in the definition of cohomology.
|
2017-07-08 12:39:23 +00:00
|
|
|
|
-/
|
2017-05-24 12:25:58 +00:00
|
|
|
|
|
2017-07-17 12:58:36 +00:00
|
|
|
|
import algebra.group_theory ..pointed ..pointed_pi eq2
|
2018-09-20 00:08:45 +00:00
|
|
|
|
open pi pointed algebra group eq equiv is_trunc trunc susp nat function
|
2016-09-28 14:33:21 +00:00
|
|
|
|
namespace group
|
|
|
|
|
|
2017-07-21 14:55:27 +00:00
|
|
|
|
/- Group of dependent functions into a loop space -/
|
|
|
|
|
definition ppi_mul [constructor] {A : Type*} {B : A → Type*} (f g : Π*a, Ω (B a)) : Π*a, Ω (B a) :=
|
|
|
|
|
proof ppi.mk (λa, f a ⬝ g a) (respect_pt f ◾ respect_pt g ⬝ !idp_con) qed
|
|
|
|
|
|
|
|
|
|
definition ppi_inv [constructor] {A : Type*} {B : A → Type*} (f : Π*a, Ω (B a)) : Π*a, Ω (B a) :=
|
|
|
|
|
proof ppi.mk (λa, (f a)⁻¹ᵖ) (respect_pt f)⁻² qed
|
|
|
|
|
|
2018-09-11 15:06:46 +00:00
|
|
|
|
definition inf_pgroup_pppi [constructor] {A : Type*} (B : A → Type*) :
|
|
|
|
|
inf_pgroup (Π*a, Ω (B a)) :=
|
2017-07-21 14:55:27 +00:00
|
|
|
|
begin
|
2018-09-11 15:06:46 +00:00
|
|
|
|
fapply inf_pgroup.mk,
|
2017-07-21 14:55:27 +00:00
|
|
|
|
{ exact ppi_mul },
|
|
|
|
|
{ intro f g h, apply eq_of_phomotopy, fapply phomotopy.mk,
|
|
|
|
|
{ intro a, exact con.assoc (f a) (g a) (h a) },
|
|
|
|
|
{ symmetry, rexact eq_of_square (con2_assoc (respect_pt f) (respect_pt g) (respect_pt h)) }},
|
2018-09-11 15:06:46 +00:00
|
|
|
|
{ exact ppi_inv },
|
2017-07-21 14:55:27 +00:00
|
|
|
|
{ intros f, apply eq_of_phomotopy, fapply phomotopy.mk,
|
|
|
|
|
{ intro a, exact one_mul (f a) },
|
|
|
|
|
{ symmetry, apply eq_of_square, refine _ ⬝vp !ap_id, apply natural_square_tr }},
|
|
|
|
|
{ intros f, apply eq_of_phomotopy, fapply phomotopy.mk,
|
|
|
|
|
{ intro a, exact mul_one (f a) },
|
|
|
|
|
{ reflexivity }},
|
|
|
|
|
{ intro f, apply eq_of_phomotopy, fapply phomotopy.mk,
|
|
|
|
|
{ intro a, exact con.left_inv (f a) },
|
|
|
|
|
{ exact !con_left_inv_idp }},
|
|
|
|
|
end
|
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition inf_group_ppi [constructor] {A : Type*} (B : A → Type*) : inf_group (Π*a, Ω (B a)) :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
@inf_group_of_inf_pgroup _ (inf_pgroup_pppi B)
|
|
|
|
|
|
|
|
|
|
definition gppi_loop [constructor] {A : Type*} (B : A → Type*) : InfGroup :=
|
|
|
|
|
InfGroup.mk (Π*a, Ω (B a)) (inf_group_ppi B)
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition gppi_loopn [constructor] (n : ℕ) [H : is_succ n] {A : Type*} (B : A → Type*) : InfGroup :=
|
|
|
|
|
InfGroup.mk (Π*a, Ω[n] (B a)) (by induction H with n; exact inf_group_ppi (Ω[n] ∘ B))
|
|
|
|
|
|
2017-07-21 14:55:27 +00:00
|
|
|
|
definition Group_trunc_ppi [reducible] [constructor] {A : Type*} (B : A → Type*) : Group :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
gtrunc (gppi_loop B)
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
2018-09-11 15:06:46 +00:00
|
|
|
|
definition ab_inf_group_ppi [constructor] {A : Type*} (B : A → Type*) :
|
2017-07-21 14:55:27 +00:00
|
|
|
|
ab_inf_group (Π*a, Ω (Ω (B a))) :=
|
|
|
|
|
⦃ab_inf_group, inf_group_ppi (λa, Ω (B a)), mul_comm :=
|
|
|
|
|
begin
|
|
|
|
|
intro f g, apply eq_of_phomotopy, fapply phomotopy.mk,
|
|
|
|
|
{ intro a, exact eckmann_hilton (f a) (g a) },
|
|
|
|
|
{ symmetry, rexact eq_of_square (eckmann_hilton_con2 (respect_pt f) (respect_pt g)) }
|
|
|
|
|
end⦄
|
|
|
|
|
|
2018-09-11 15:06:46 +00:00
|
|
|
|
definition agppi_loop [constructor] {A : Type*} (B : A → Type*) : AbInfGroup :=
|
|
|
|
|
AbInfGroup.mk (Π*a, Ω (Ω (B a))) (ab_inf_group_ppi B)
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
|
|
|
|
definition AbGroup_trunc_ppi [reducible] [constructor] {A : Type*} (B : A → Type*) : AbGroup :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
agtrunc (agppi_loop B)
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
2018-09-11 15:06:46 +00:00
|
|
|
|
-- definition trunc_ppi_isomorphic_pmap (A B : Type*)
|
|
|
|
|
-- : Group.mk (trunc 0 (Π*(a : A), Ω B)) !group_trunc
|
|
|
|
|
-- ≃g Group.mk (trunc 0 (A →* Ω B)) !group_trunc :=
|
|
|
|
|
-- begin
|
|
|
|
|
-- reflexivity,
|
|
|
|
|
-- -- apply trunc_isomorphism_of_equiv (pppi_equiv_pmap A (Ω B)),
|
|
|
|
|
-- -- intro h k, induction h with h h_pt, induction k with k k_pt, reflexivity
|
|
|
|
|
-- end
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
|
|
|
|
universe variables u v
|
|
|
|
|
|
|
|
|
|
variables {A : pType.{u}} {B : A → Type.{v}} {x₀ : B pt} {k l m : ppi B x₀}
|
|
|
|
|
|
|
|
|
|
definition phomotopy_of_eq_homomorphism (p : k = l) (q : l = m)
|
|
|
|
|
: phomotopy_of_eq (p ⬝ q) = phomotopy_of_eq p ⬝* phomotopy_of_eq q :=
|
|
|
|
|
begin
|
|
|
|
|
induction q, induction p, induction k with k q, induction q, reflexivity
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
protected definition ppi_mul_loop.lemma1 {X : Type} {x : X} (p q : x = x) (p_pt : idp = p) (q_pt : idp = q)
|
|
|
|
|
: refl (p ⬝ q) ⬝ whisker_left p q_pt⁻¹ ⬝ p_pt⁻¹ = p_pt⁻¹ ◾ q_pt⁻¹ :=
|
|
|
|
|
by induction p_pt; induction q_pt; reflexivity
|
|
|
|
|
|
|
|
|
|
protected definition ppi_mul_loop.lemma2 {X : Type} {x : X} (p q : x = x) (p_pt : p = idp) (q_pt : q = idp)
|
|
|
|
|
: refl (p ⬝ q) ⬝ whisker_left p q_pt ⬝ p_pt = p_pt ◾ q_pt :=
|
|
|
|
|
by rewrite [-(inv_inv p_pt),-(inv_inv q_pt)]; exact ppi_mul_loop.lemma1 p q p_pt⁻¹ q_pt⁻¹
|
|
|
|
|
|
|
|
|
|
definition ppi_mul_loop {h : Πa, B a} (f g : ppi.mk h idp ~* ppi.mk h idp) : f ⬝* g = ppi_mul f g :=
|
|
|
|
|
begin
|
|
|
|
|
apply ap (ppi.mk (λa, f a ⬝ g a)),
|
|
|
|
|
apply ppi.rec_on f, intros f' f_pt, apply ppi.rec_on g, intros g' g_pt,
|
|
|
|
|
clear f g, esimp at *, exact ppi_mul_loop.lemma2 (f' pt) (g' pt) f_pt g_pt
|
|
|
|
|
end
|
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition gloop_ppi_isomorphism_gen (k : ppi B x₀) :
|
2018-09-11 15:06:46 +00:00
|
|
|
|
Ωg (pointed.Mk k) ≃∞g gppi_loop (λ a, pointed.Mk (ppi.to_fun k a)) :=
|
2017-07-21 14:55:27 +00:00
|
|
|
|
begin
|
2018-09-11 15:06:46 +00:00
|
|
|
|
apply inf_isomorphism_of_equiv (ppi_loop_equiv k),
|
2017-07-21 14:55:27 +00:00
|
|
|
|
intro f g, induction k with k p, induction p,
|
|
|
|
|
apply trans (phomotopy_of_eq_homomorphism f g),
|
|
|
|
|
exact ppi_mul_loop (phomotopy_of_eq f) (phomotopy_of_eq g)
|
|
|
|
|
end
|
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition gloop_ppi_isomorphism (B : A → Type*) : Ωg (Π*a, B a) ≃∞g gppi_loop B :=
|
|
|
|
|
proof gloop_ppi_isomorphism_gen (ppi_const B) qed
|
|
|
|
|
|
|
|
|
|
definition gloopn_ppi_isomorphism (n : ℕ) [H : is_succ n] (B : A → Type*) :
|
|
|
|
|
Ωg[n] (Π*a, B a) ≃∞g gppi_loopn n B :=
|
|
|
|
|
begin
|
|
|
|
|
induction H with n, induction n with n IH,
|
|
|
|
|
{ exact gloop_ppi_isomorphism B },
|
|
|
|
|
{ exact Ωg≃ (pequiv_of_inf_isomorphism IH) ⬝∞g gloop_ppi_isomorphism (Ω[succ n] ∘ B) }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition trunc_ppi_loop_isomorphism_gen (k : ppi B x₀) :
|
2018-09-11 15:06:46 +00:00
|
|
|
|
gtrunc (gloop (pointed.Mk k)) ≃g gtrunc (gppi_loop (λa, pointed.Mk (k a))) :=
|
2018-09-20 00:08:45 +00:00
|
|
|
|
gtrunc_isomorphism_gtrunc (gloop_ppi_isomorphism_gen k)
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition trunc_ppi_loop_isomorphism (B : A → Type*) :
|
2018-09-11 15:06:46 +00:00
|
|
|
|
gtrunc (gloop (Π*(a : A), B a)) ≃g gtrunc (gppi_loop B) :=
|
2018-09-20 00:08:45 +00:00
|
|
|
|
proof trunc_ppi_loop_isomorphism_gen (ppi_const B) qed
|
2017-07-21 14:55:27 +00:00
|
|
|
|
|
|
|
|
|
|
2017-05-24 12:25:58 +00:00
|
|
|
|
/- We first define the group structure on A →* Ω B (except for truncatedness).
|
|
|
|
|
Instead of Ω B, we could also choose any infinity group. However, we need various 2-coherences,
|
|
|
|
|
so it's easier to just do it for the loop space. -/
|
2017-02-18 21:56:38 +00:00
|
|
|
|
definition pmap_mul [constructor] {A B : Type*} (f g : A →* Ω B) : A →* Ω B :=
|
2017-07-21 14:55:27 +00:00
|
|
|
|
ppi_mul f g
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
|
|
|
|
definition pmap_inv [constructor] {A B : Type*} (f : A →* Ω B) : A →* Ω B :=
|
2017-07-21 14:55:27 +00:00
|
|
|
|
ppi_inv f
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
2017-07-21 14:55:27 +00:00
|
|
|
|
/- we prove some coherences of the multiplication. We don't need them for the group structure,
|
|
|
|
|
but they are used to show that cohomology satisfies the Eilenberg-Steenrod axioms -/
|
2017-05-24 12:25:58 +00:00
|
|
|
|
definition ap1_pmap_mul {X Y : Type*} (f g : X →* Ω Y) :
|
|
|
|
|
Ω→ (pmap_mul f g) ~* pmap_mul (Ω→ f) (Ω→ g) :=
|
|
|
|
|
begin
|
2017-06-17 21:21:28 +00:00
|
|
|
|
fapply phomotopy.mk,
|
2017-05-24 12:25:58 +00:00
|
|
|
|
{ intro p, esimp,
|
|
|
|
|
refine ap1_gen_con_left (respect_pt f) (respect_pt f)
|
|
|
|
|
(respect_pt g) (respect_pt g) p ⬝ _,
|
|
|
|
|
refine !whisker_right_idp ◾ !whisker_left_idp2, },
|
|
|
|
|
{ refine !con.assoc ⬝ _,
|
|
|
|
|
refine _ ◾ idp ⬝ _, rotate 1,
|
|
|
|
|
rexact ap1_gen_con_left_idp (respect_pt f) (respect_pt g), esimp,
|
|
|
|
|
refine !con.assoc ⬝ _,
|
|
|
|
|
apply whisker_left, apply inv_con_eq_idp,
|
|
|
|
|
refine !con2_con_con2 ⬝ ap011 concat2 _ _:
|
|
|
|
|
refine eq_of_square (!natural_square ⬝hp !ap_id) ⬝ !con_idp }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition pmap_mul_pcompose {A B C : Type*} (g h : B →* Ω C) (f : A →* B) :
|
|
|
|
|
pmap_mul g h ∘* f ~* pmap_mul (g ∘* f) (h ∘* f) :=
|
|
|
|
|
begin
|
2017-06-17 21:21:28 +00:00
|
|
|
|
fapply phomotopy.mk,
|
2017-05-24 12:25:58 +00:00
|
|
|
|
{ intro p, reflexivity },
|
|
|
|
|
{ esimp, refine !idp_con ⬝ _, refine !con2_con_con2⁻¹ ⬝ whisker_right _ _,
|
|
|
|
|
refine !ap_eq_ap011⁻¹ }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition pcompose_pmap_mul {A B C : Type*} (h : B →* C) (f g : A →* Ω B) :
|
|
|
|
|
Ω→ h ∘* pmap_mul f g ~* pmap_mul (Ω→ h ∘* f) (Ω→ h ∘* g) :=
|
|
|
|
|
begin
|
2017-06-17 21:21:28 +00:00
|
|
|
|
fapply phomotopy.mk,
|
2017-05-24 12:25:58 +00:00
|
|
|
|
{ intro p, exact ap1_con h (f p) (g p) },
|
|
|
|
|
{ refine whisker_left _ !con2_con_con2⁻¹ ⬝ _, refine !con.assoc⁻¹ ⬝ _,
|
|
|
|
|
refine whisker_right _ (eq_of_square !ap1_gen_con_natural) ⬝ _,
|
|
|
|
|
refine !con.assoc ⬝ whisker_left _ _, apply ap1_gen_con_idp }
|
|
|
|
|
end
|
|
|
|
|
|
2017-07-20 17:01:22 +00:00
|
|
|
|
definition loop_susp_intro_pmap_mul {X Y : Type*} (f g : susp X →* Ω Y) :
|
|
|
|
|
loop_susp_intro (pmap_mul f g) ~* pmap_mul (loop_susp_intro f) (loop_susp_intro g) :=
|
2017-05-24 12:25:58 +00:00
|
|
|
|
pwhisker_right _ !ap1_pmap_mul ⬝* !pmap_mul_pcompose
|
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition gpmap_loop [reducible] [constructor] (A B : Type*) : InfGroup :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
InfGroup.mk (A →* Ω B) !inf_group_ppi
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
2018-09-20 00:08:45 +00:00
|
|
|
|
definition gpmap_loop' [reducible] [constructor] (A : Type*) {B C : Type*} (e : Ω C ≃* B) :
|
2018-09-11 15:06:46 +00:00
|
|
|
|
InfGroup :=
|
|
|
|
|
InfGroup.mk (A →* B)
|
|
|
|
|
(@inf_group_of_inf_pgroup _ (inf_pgroup_pequiv_closed (ppmap_pequiv_ppmap_right e)
|
|
|
|
|
!inf_pgroup_pppi))
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
|
|
|
|
definition Group_trunc_pmap [reducible] [constructor] (A B : Type*) : Group :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
Group.mk (trunc 0 (A →* Ω B)) (@group_trunc _ !inf_group_ppi)
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
|
|
|
|
definition Group_trunc_pmap_homomorphism [constructor] {A A' B : Type*} (f : A' →* A) :
|
|
|
|
|
Group_trunc_pmap A B →g Group_trunc_pmap A' B :=
|
|
|
|
|
begin
|
|
|
|
|
fapply homomorphism.mk,
|
|
|
|
|
{ apply trunc_functor, intro g, exact g ∘* f},
|
2018-09-11 15:06:46 +00:00
|
|
|
|
{ intro g h, induction g with g, esimp, induction h with h, apply ap tr,
|
2017-07-21 14:55:27 +00:00
|
|
|
|
apply eq_of_phomotopy, fapply phomotopy.mk,
|
2017-02-18 21:56:38 +00:00
|
|
|
|
{ intro a, reflexivity },
|
2017-07-21 14:55:27 +00:00
|
|
|
|
{ symmetry, refine _ ⬝ !idp_con⁻¹,
|
2017-02-18 21:56:38 +00:00
|
|
|
|
refine whisker_right _ !ap_con_fn ⬝ _, apply con2_con_con2 }}
|
|
|
|
|
end
|
|
|
|
|
|
2017-02-19 00:01:24 +00:00
|
|
|
|
definition Group_trunc_pmap_isomorphism [constructor] {A A' B : Type*} (f : A' ≃* A) :
|
|
|
|
|
Group_trunc_pmap A B ≃g Group_trunc_pmap A' B :=
|
|
|
|
|
begin
|
|
|
|
|
apply isomorphism.mk (Group_trunc_pmap_homomorphism f),
|
|
|
|
|
apply @is_equiv_trunc_functor,
|
2018-09-07 14:30:39 +00:00
|
|
|
|
exact to_is_equiv (ppmap_pequiv_ppmap_left f),
|
2017-02-19 00:01:24 +00:00
|
|
|
|
end
|
|
|
|
|
|
2017-02-20 21:23:57 +00:00
|
|
|
|
definition Group_trunc_pmap_isomorphism_refl (A B : Type*) (x : Group_trunc_pmap A B) :
|
|
|
|
|
Group_trunc_pmap_isomorphism (pequiv.refl A) x = x :=
|
|
|
|
|
begin
|
|
|
|
|
induction x, apply ap tr, apply eq_of_phomotopy, apply pcompose_pid
|
|
|
|
|
end
|
|
|
|
|
|
2017-02-18 21:56:38 +00:00
|
|
|
|
definition Group_trunc_pmap_pid [constructor] {A B : Type*} (f : Group_trunc_pmap A B) :
|
|
|
|
|
Group_trunc_pmap_homomorphism (pid A) f = f :=
|
|
|
|
|
begin
|
|
|
|
|
induction f with f, apply ap tr, apply eq_of_phomotopy, apply pcompose_pid
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition Group_trunc_pmap_pconst [constructor] {A A' B : Type*} (f : Group_trunc_pmap A B) :
|
|
|
|
|
Group_trunc_pmap_homomorphism (pconst A' A) f = 1 :=
|
|
|
|
|
begin
|
|
|
|
|
induction f with f, apply ap tr, apply eq_of_phomotopy, apply pcompose_pconst
|
|
|
|
|
end
|
|
|
|
|
|
2017-05-24 12:25:58 +00:00
|
|
|
|
definition Group_trunc_pmap_pcompose [constructor] {A A' A'' B : Type*} (f : A' →* A)
|
|
|
|
|
(f' : A'' →* A') (g : Group_trunc_pmap A B) : Group_trunc_pmap_homomorphism (f ∘* f') g =
|
2017-02-18 21:56:38 +00:00
|
|
|
|
Group_trunc_pmap_homomorphism f' (Group_trunc_pmap_homomorphism f g) :=
|
|
|
|
|
begin
|
|
|
|
|
induction g with g, apply ap tr, apply eq_of_phomotopy, exact !passoc⁻¹*
|
|
|
|
|
end
|
|
|
|
|
|
2017-05-24 12:25:58 +00:00
|
|
|
|
definition Group_trunc_pmap_phomotopy [constructor] {A A' B : Type*} {f f' : A' →* A}
|
|
|
|
|
(p : f ~* f') : @Group_trunc_pmap_homomorphism _ _ B f ~ Group_trunc_pmap_homomorphism f' :=
|
2017-02-18 21:56:38 +00:00
|
|
|
|
begin
|
2017-02-20 21:23:57 +00:00
|
|
|
|
intro g, induction g, exact ap tr (eq_of_phomotopy (pwhisker_left a p))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition Group_trunc_pmap_phomotopy_refl {A A' B : Type*} (f : A' →* A)
|
|
|
|
|
(x : Group_trunc_pmap A B) : Group_trunc_pmap_phomotopy (phomotopy.refl f) x = idp :=
|
|
|
|
|
begin
|
|
|
|
|
induction x,
|
|
|
|
|
refine ap02 tr _,
|
|
|
|
|
refine ap eq_of_phomotopy _ ⬝ !eq_of_phomotopy_refl,
|
|
|
|
|
apply pwhisker_left_refl
|
2017-02-18 21:56:38 +00:00
|
|
|
|
end
|
|
|
|
|
|
2017-05-24 12:25:58 +00:00
|
|
|
|
definition ab_inf_group_pmap [constructor] [instance] (A B : Type*) :
|
|
|
|
|
ab_inf_group (A →* Ω (Ω B)) :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
!ab_inf_group_ppi
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
|
|
|
|
definition ab_group_trunc_pmap [constructor] [instance] (A B : Type*) :
|
|
|
|
|
ab_group (trunc 0 (A →* Ω (Ω B))) :=
|
2018-09-11 15:06:46 +00:00
|
|
|
|
!ab_group_trunc
|
2017-02-18 21:56:38 +00:00
|
|
|
|
|
|
|
|
|
definition AbGroup_trunc_pmap [reducible] [constructor] (A B : Type*) : AbGroup :=
|
|
|
|
|
AbGroup.mk (trunc 0 (A →* Ω (Ω B))) _
|
|
|
|
|
|
2017-05-24 12:25:58 +00:00
|
|
|
|
/- Group of dependent functions whose codomain is a group -/
|
|
|
|
|
definition group_pi [instance] [constructor] {A : Type} (P : A → Type) [Πa, group (P a)] :
|
|
|
|
|
group (Πa, P a) :=
|
2016-09-28 14:33:21 +00:00
|
|
|
|
begin
|
|
|
|
|
fapply group.mk,
|
2017-02-18 21:56:38 +00:00
|
|
|
|
{ apply is_trunc_pi },
|
2017-02-02 22:14:48 +00:00
|
|
|
|
{ intro f g a, exact f a * g a },
|
2016-09-28 14:33:21 +00:00
|
|
|
|
{ intros, apply eq_of_homotopy, intro a, apply mul.assoc },
|
|
|
|
|
{ intro a, exact 1 },
|
|
|
|
|
{ intros, apply eq_of_homotopy, intro a, apply one_mul },
|
|
|
|
|
{ intros, apply eq_of_homotopy, intro a, apply mul_one },
|
|
|
|
|
{ intro f a, exact (f a)⁻¹ },
|
|
|
|
|
{ intros, apply eq_of_homotopy, intro a, apply mul.left_inv }
|
|
|
|
|
end
|
|
|
|
|
|
2017-02-18 21:56:38 +00:00
|
|
|
|
definition Group_pi [constructor] {A : Type} (P : A → Group) : Group :=
|
|
|
|
|
Group.mk (Πa, P a) _
|
2016-09-28 14:33:21 +00:00
|
|
|
|
|
2017-02-18 21:56:38 +00:00
|
|
|
|
/- we use superscript in the following notation, because otherwise we can never write something
|
|
|
|
|
like `Πg h : G, _` anymore -/
|
2016-09-28 14:33:21 +00:00
|
|
|
|
|
2017-02-18 21:56:38 +00:00
|
|
|
|
notation `Πᵍ` binders `, ` r:(scoped P, Group_pi P) := r
|
2016-09-28 14:33:21 +00:00
|
|
|
|
|
2017-02-18 21:56:38 +00:00
|
|
|
|
definition Group_pi_intro [constructor] {A : Type} {G : Group} {P : A → Group} (f : Πa, G →g P a)
|
|
|
|
|
: G →g Πᵍ a, P a :=
|
2016-09-28 14:33:21 +00:00
|
|
|
|
begin
|
2017-02-18 21:56:38 +00:00
|
|
|
|
fconstructor,
|
|
|
|
|
{ intro g a, exact f a g },
|
|
|
|
|
{ intro g h, apply eq_of_homotopy, intro a, exact respect_mul (f a) g h }
|
2016-09-28 14:33:21 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end group
|