2016-10-20 20:23:55 +00:00
|
|
|
/-
|
|
|
|
Copyright (c) 2016 Egbert Rijke. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
2017-02-17 04:00:55 +00:00
|
|
|
Authors: Egbert Rijke, Steve Awodey
|
2016-10-20 20:23:55 +00:00
|
|
|
|
|
|
|
Exact couple, derived couples, and so on
|
|
|
|
-/
|
|
|
|
|
2017-02-17 04:00:55 +00:00
|
|
|
import algebra.group_theory hit.set_quotient types.sigma types.list types.sum .quotient_group .subgroup .ses
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2016-11-03 20:42:12 +00:00
|
|
|
open eq algebra is_trunc set_quotient relation sigma sigma.ops prod prod.ops sum list trunc function group trunc
|
2017-02-17 03:26:06 +00:00
|
|
|
equiv is_equiv
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2017-06-16 21:06:04 +00:00
|
|
|
-- This definition needs to be moved to exactness.hlean. However we had trouble doing so. Please help.
|
|
|
|
definition iso_ker_im_of_exact {A B C : AbGroup} (f : A →g B) (g : B →g C) (E : is_exact f g) : ab_kernel g ≃g ab_image f :=
|
|
|
|
begin
|
|
|
|
fapply ab_subgroup_iso,
|
|
|
|
intro a,
|
|
|
|
induction E,
|
|
|
|
exact ker_in_im a,
|
|
|
|
intro a b, induction b with q, induction q with b p, induction p,
|
|
|
|
induction E,
|
|
|
|
exact im_in_ker b,
|
|
|
|
end
|
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition is_differential {B : AbGroup} (d : B →g B) := Π(b:B), d (d b) = 1
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition image_subgroup_of_diff {B : AbGroup} (d : B →g B) (H : is_differential d) : subgroup_rel (ab_kernel d) :=
|
2016-11-03 20:42:12 +00:00
|
|
|
subgroup_rel_of_subgroup (image_subgroup d) (kernel_subgroup d)
|
|
|
|
begin
|
2016-11-24 04:54:57 +00:00
|
|
|
intro g p,
|
2016-11-03 20:42:12 +00:00
|
|
|
induction p with f, induction f with h p,
|
2016-11-24 04:54:57 +00:00
|
|
|
rewrite [p⁻¹],
|
2016-11-03 20:42:12 +00:00
|
|
|
esimp,
|
2016-11-24 04:54:57 +00:00
|
|
|
exact H h
|
2016-11-03 20:42:12 +00:00
|
|
|
end
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2017-04-20 20:18:18 +00:00
|
|
|
definition diff_im_in_ker {B : AbGroup} (d : B →g B) (H : is_differential d) : Π(b : B), image_subgroup d b → kernel_subgroup d b :=
|
|
|
|
begin
|
|
|
|
intro b p,
|
|
|
|
induction p with q, induction q with b' p, induction p, exact H b'
|
|
|
|
end
|
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition homology {B : AbGroup} (d : B →g B) (H : is_differential d) : AbGroup :=
|
|
|
|
@quotient_ab_group (ab_kernel d) (image_subgroup_of_diff d H)
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2017-04-27 22:07:30 +00:00
|
|
|
definition homology_ugly {B : AbGroup} (d : B →g B) (H : is_differential d) : AbGroup :=
|
2017-05-04 21:46:43 +00:00
|
|
|
@quotient_ab_group (ab_kernel d) (image_subgroup (ab_subgroup_of_subgroup_incl (diff_im_in_ker d H)))
|
2017-04-27 21:09:20 +00:00
|
|
|
|
2017-05-11 21:14:28 +00:00
|
|
|
|
2017-04-27 22:07:30 +00:00
|
|
|
definition homology_iso_ugly {B : AbGroup} (d : B →g B) (H : is_differential d) : (homology d H) ≃g (homology_ugly d H) :=
|
2017-04-07 19:05:10 +00:00
|
|
|
begin
|
2017-06-02 16:15:31 +00:00
|
|
|
fapply @iso_of_ab_qg_group (ab_kernel d),
|
2017-05-11 21:14:28 +00:00
|
|
|
intro a,
|
2017-06-02 16:15:31 +00:00
|
|
|
intro p, induction p with f, induction f with b p,
|
2017-05-11 21:14:28 +00:00
|
|
|
fapply tr, fapply fiber.mk, fapply sigma.mk, exact d b, fapply tr, fapply fiber.mk, exact b, reflexivity,
|
|
|
|
induction a with c q, fapply subtype_eq, refine p ⬝ _, reflexivity,
|
|
|
|
intro b p, induction p with f, induction f with c p, induction p,
|
|
|
|
induction c with a q, induction q with f, induction f with a' p, induction p,
|
|
|
|
fapply tr, fapply fiber.mk, exact a', reflexivity
|
2017-04-27 22:07:30 +00:00
|
|
|
end
|
|
|
|
|
2017-05-11 21:14:28 +00:00
|
|
|
|
2017-04-27 22:07:30 +00:00
|
|
|
definition SES_iso_C {A B C C' : AbGroup} (ses : SES A B C) (k : C ≃g C') : SES A B C' :=
|
2017-06-02 16:15:31 +00:00
|
|
|
begin
|
2017-04-27 22:07:30 +00:00
|
|
|
fapply SES.mk,
|
|
|
|
exact SES.f ses,
|
|
|
|
exact k ∘g SES.g ses,
|
|
|
|
exact SES.Hf ses,
|
|
|
|
fapply @is_surjective_compose _ _ _ k (SES.g ses),
|
|
|
|
exact is_surjective_of_is_equiv k,
|
|
|
|
exact SES.Hg ses,
|
2017-05-04 21:46:43 +00:00
|
|
|
fapply is_exact.mk,
|
|
|
|
intro a,
|
|
|
|
esimp,
|
|
|
|
note h := SES.ex ses,
|
|
|
|
note h2 := is_exact.im_in_ker h a,
|
|
|
|
refine ap k h2 ⬝ _ ,
|
|
|
|
exact to_respect_one k,
|
|
|
|
intro b,
|
|
|
|
intro k3,
|
|
|
|
note h := SES.ex ses,
|
|
|
|
note h3 := is_exact.ker_in_im h b,
|
|
|
|
fapply is_exact.ker_in_im h,
|
|
|
|
refine _ ⬝ ap k⁻¹ᵍ k3 ⬝ _ ,
|
|
|
|
esimp,
|
|
|
|
exact (to_left_inv (equiv_of_isomorphism k) ((SES.g ses) b))⁻¹,
|
|
|
|
exact to_respect_one k⁻¹ᵍ
|
2017-04-27 22:07:30 +00:00
|
|
|
end
|
2017-04-27 21:09:20 +00:00
|
|
|
|
2017-05-11 21:14:28 +00:00
|
|
|
|
2017-04-27 22:07:30 +00:00
|
|
|
definition SES_of_differential_ugly {B : AbGroup} (d : B →g B) (H : is_differential d) : SES (ab_image d) (ab_kernel d) (homology_ugly d H) :=
|
|
|
|
begin
|
|
|
|
exact SES_of_inclusion (ab_subgroup_of_subgroup_incl (diff_im_in_ker d H)) (is_embedding_ab_subgroup_of_subgroup_incl (diff_im_in_ker d H)),
|
|
|
|
end
|
2017-04-27 21:09:20 +00:00
|
|
|
|
2017-04-27 22:07:30 +00:00
|
|
|
definition SES_of_differential {B : AbGroup} (d : B →g B) (H : is_differential d) : SES (ab_image d) (ab_kernel d) (homology d H) :=
|
|
|
|
begin
|
2017-05-11 21:14:28 +00:00
|
|
|
fapply SES_iso_C,
|
|
|
|
fapply SES_of_inclusion (ab_subgroup_of_subgroup_incl (diff_im_in_ker d H)) (is_embedding_ab_subgroup_of_subgroup_incl (diff_im_in_ker d H)),
|
|
|
|
exact (homology_iso_ugly d H)⁻¹ᵍ
|
2017-04-27 22:07:30 +00:00
|
|
|
end
|
2017-04-07 19:05:10 +00:00
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
structure exact_couple (A B : AbGroup) : Type :=
|
2016-10-20 20:23:55 +00:00
|
|
|
( i : A →g A) (j : A →g B) (k : B →g A)
|
|
|
|
( exact_ij : is_exact i j)
|
|
|
|
( exact_jk : is_exact j k)
|
|
|
|
( exact_ki : is_exact k i)
|
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition differential {A B : AbGroup} (EC : exact_couple A B) : B →g B :=
|
2016-11-10 21:49:09 +00:00
|
|
|
(exact_couple.j EC) ∘g (exact_couple.k EC)
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition differential_is_differential {A B : AbGroup} (EC : exact_couple A B) : is_differential (differential EC) :=
|
2016-11-03 20:42:12 +00:00
|
|
|
begin
|
2016-11-24 04:54:57 +00:00
|
|
|
induction EC,
|
|
|
|
induction exact_jk,
|
2016-11-03 20:42:12 +00:00
|
|
|
intro b,
|
|
|
|
exact (ap (group_fun j) (im_in_ker (group_fun k b))) ⬝ (respect_one j)
|
|
|
|
end
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2016-11-03 20:42:12 +00:00
|
|
|
section derived_couple
|
|
|
|
|
2017-05-18 20:45:28 +00:00
|
|
|
/-
|
|
|
|
A - i -> A
|
|
|
|
k ^ |
|
|
|
|
| v j
|
|
|
|
B ====== B
|
|
|
|
-/
|
|
|
|
|
2017-05-11 21:14:28 +00:00
|
|
|
parameters {A B : AbGroup} (EC : exact_couple A B)
|
|
|
|
local abbreviation i := exact_couple.i EC
|
|
|
|
local abbreviation j := exact_couple.j EC
|
|
|
|
local abbreviation k := exact_couple.k EC
|
|
|
|
local abbreviation d := differential EC
|
|
|
|
local abbreviation H := differential_is_differential EC
|
2017-05-18 21:54:13 +00:00
|
|
|
-- local abbreviation u := exact_couple.i (SES_of_differential d H)
|
2016-11-03 20:42:12 +00:00
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition derived_couple_A : AbGroup :=
|
2017-05-11 21:14:28 +00:00
|
|
|
ab_subgroup (image_subgroup i)
|
2016-11-03 20:42:12 +00:00
|
|
|
|
2016-11-24 04:54:57 +00:00
|
|
|
definition derived_couple_B : AbGroup :=
|
2016-11-10 21:49:09 +00:00
|
|
|
homology (differential EC) (differential_is_differential EC)
|
2016-11-03 20:42:12 +00:00
|
|
|
|
2017-06-16 18:50:55 +00:00
|
|
|
print homology
|
|
|
|
|
|
|
|
|
2017-05-11 21:14:28 +00:00
|
|
|
definition derived_couple_i : derived_couple_A →g derived_couple_A :=
|
2016-11-10 21:49:09 +00:00
|
|
|
(image_lift (exact_couple.i EC)) ∘g (image_incl (exact_couple.i EC))
|
2016-11-03 20:42:12 +00:00
|
|
|
|
2017-05-11 21:14:28 +00:00
|
|
|
definition SES_of_exact_couple_at_i : SES (ab_kernel i) A (ab_image i) :=
|
|
|
|
begin
|
|
|
|
fapply SES_iso_C,
|
|
|
|
fapply SES_of_subgroup (kernel_subgroup i),
|
|
|
|
fapply ab_group_first_iso_thm i,
|
|
|
|
end
|
|
|
|
|
2017-06-02 16:15:31 +00:00
|
|
|
definition kj_zero (a : A) : k (j a) = 1 :=
|
2017-05-18 20:45:28 +00:00
|
|
|
is_exact.im_in_ker (exact_couple.exact_jk EC) a
|
2017-06-02 16:15:31 +00:00
|
|
|
|
|
|
|
definition j_factor : A →g (ab_kernel d) :=
|
2017-05-11 21:14:28 +00:00
|
|
|
begin
|
|
|
|
fapply ab_hom_lift j,
|
2017-06-02 16:15:31 +00:00
|
|
|
intro a,
|
|
|
|
unfold kernel_subgroup,
|
2017-05-11 21:25:02 +00:00
|
|
|
exact calc
|
|
|
|
d (j a) = j (k (j a)) : rfl
|
|
|
|
... = j 1 : by exact ap j (kj_zero a)
|
|
|
|
... = 1 : to_respect_one,
|
2017-05-11 21:14:28 +00:00
|
|
|
end
|
|
|
|
|
2017-05-18 21:24:36 +00:00
|
|
|
definition subgroup_iso_exact_at_A : ab_kernel i ≃g ab_image k :=
|
|
|
|
begin
|
|
|
|
fapply ab_subgroup_iso,
|
|
|
|
intro a,
|
|
|
|
induction EC,
|
|
|
|
induction exact_ki,
|
|
|
|
exact ker_in_im a,
|
|
|
|
intro a b, induction b with f, induction f with b p, induction p,
|
|
|
|
induction EC,
|
|
|
|
induction exact_ki,
|
|
|
|
exact im_in_ker b,
|
2017-06-02 16:15:31 +00:00
|
|
|
end
|
2017-05-18 21:24:36 +00:00
|
|
|
|
|
|
|
definition subgroup_iso_exact_at_A_triangle : ab_kernel_incl i ~ ab_image_incl k ∘g subgroup_iso_exact_at_A :=
|
|
|
|
begin
|
|
|
|
fapply ab_subgroup_iso_triangle,
|
|
|
|
intro a b, induction b with f, induction f with b p, induction p,
|
|
|
|
induction EC, induction exact_ki, exact im_in_ker b,
|
|
|
|
end
|
|
|
|
|
2017-05-18 21:54:13 +00:00
|
|
|
definition subgroup_homom_ker_to_im : ab_kernel i →g ab_image d :=
|
|
|
|
(image_homomorphism k j) ∘g subgroup_iso_exact_at_A
|
2017-06-01 22:01:52 +00:00
|
|
|
|
2017-05-18 21:54:13 +00:00
|
|
|
open eq
|
2017-06-01 22:01:52 +00:00
|
|
|
|
2017-06-16 19:41:01 +00:00
|
|
|
definition left_square_derived_ses_aux : j_factor ∘g ab_image_incl k ~ (SES.f (SES_of_differential d H)) ∘g (image_homomorphism k j) :=
|
|
|
|
begin
|
|
|
|
intro x,
|
|
|
|
induction x with a p, induction p with f, induction f with b p, induction p,
|
|
|
|
fapply subtype_eq,
|
|
|
|
reflexivity,
|
|
|
|
end
|
|
|
|
|
2017-05-18 21:54:13 +00:00
|
|
|
definition left_square_derived_ses : j_factor ∘g (ab_kernel_incl i) ~ (SES.f (SES_of_differential d H)) ∘g subgroup_homom_ker_to_im :=
|
|
|
|
begin
|
2017-06-16 19:41:01 +00:00
|
|
|
intro x,
|
|
|
|
exact (ap j_factor (subgroup_iso_exact_at_A_triangle x)) ⬝ (left_square_derived_ses_aux (subgroup_iso_exact_at_A x)),
|
2017-05-18 21:54:13 +00:00
|
|
|
end
|
|
|
|
|
2017-06-16 19:41:01 +00:00
|
|
|
print quotient_extend_unique_SES
|
|
|
|
check quotient_extend_unique_SES (SES_of_exact_couple_at_i) (SES_of_differential d H) (subgroup_homom_ker_to_im) (j_factor) (left_square_derived_ses)
|
|
|
|
|
|
|
|
definition derived_couple_j_unique :
|
|
|
|
is_contr (Σ hC, group_fun (hC ∘g SES.g SES_of_exact_couple_at_i) ~ group_fun
|
|
|
|
(SES.g (SES_of_differential d H) ∘g j_factor)) :=
|
|
|
|
quotient_extend_unique_SES (SES_of_exact_couple_at_i) (SES_of_differential d H) (subgroup_homom_ker_to_im) (j_factor) (left_square_derived_ses)
|
|
|
|
|
|
|
|
definition derived_couple_j : derived_couple_A →g derived_couple_B :=
|
|
|
|
begin
|
|
|
|
exact pr1 (center' (derived_couple_j_unique)),
|
|
|
|
end
|
|
|
|
|
|
|
|
definition derived_couple_j_htpy : group_fun (derived_couple_j ∘g SES.g SES_of_exact_couple_at_i) ~ group_fun
|
|
|
|
(SES.g (SES_of_differential d H) ∘g j_factor) :=
|
|
|
|
begin
|
|
|
|
exact pr2 (center' (derived_couple_j_unique)),
|
|
|
|
end
|
|
|
|
|
2017-06-16 21:06:04 +00:00
|
|
|
definition SES_im_i_trivial : SES trivial_ab_group derived_couple_A derived_couple_A :=
|
|
|
|
begin
|
|
|
|
fapply SES_of_isomorphism_right,
|
|
|
|
fapply isomorphism.refl,
|
|
|
|
end
|
|
|
|
|
|
|
|
definition subgroup_iso_exact_kerj_imi : ab_kernel j ≃g ab_image i :=
|
|
|
|
begin
|
|
|
|
fapply iso_ker_im_of_exact,
|
|
|
|
induction EC,
|
|
|
|
exact exact_ij,
|
|
|
|
end
|
|
|
|
|
|
|
|
definition k_restrict_aux : ab_kernel d →g ab_kernel j :=
|
2016-11-03 20:42:12 +00:00
|
|
|
begin
|
2017-06-16 21:06:04 +00:00
|
|
|
fapply ab_hom_lift_kernel,
|
|
|
|
exact k ∘g ab_kernel_incl d,
|
|
|
|
intro p, induction p with b p, exact p,
|
|
|
|
end
|
|
|
|
|
|
|
|
definition k_restrict : ab_kernel d →g derived_couple_A :=
|
|
|
|
subgroup_iso_exact_kerj_imi ∘g k_restrict_aux
|
|
|
|
|
|
|
|
definition k_restrict_square_left : k_restrict ∘g (SES.f (SES_of_differential d H)) ~ λ x, 1 :=
|
|
|
|
begin
|
|
|
|
intro x,
|
|
|
|
induction x with b' p,
|
|
|
|
induction p with q,
|
|
|
|
induction q with b p,
|
|
|
|
induction p,
|
|
|
|
fapply subtype_eq,
|
|
|
|
induction EC,
|
|
|
|
induction exact_jk,
|
|
|
|
fapply im_in_ker,
|
|
|
|
end
|
|
|
|
|
|
|
|
definition derived_couple_k_unique : is_contr
|
|
|
|
(Σ hC, group_fun (hC ∘g SES.g (SES_of_differential d H)) ~ group_fun
|
|
|
|
(SES.g SES_im_i_trivial ∘g k_restrict))
|
|
|
|
:=
|
|
|
|
quotient_extend_unique_SES (SES_of_differential d H) (SES_im_i_trivial) (trivial_homomorphism (ab_image d) trivial_ab_group) (k_restrict) (k_restrict_square_left)
|
|
|
|
|
|
|
|
definition derived_couple_k : derived_couple_B →g derived_couple_A :=
|
|
|
|
begin
|
|
|
|
exact pr1 (center' (derived_couple_k_unique)),
|
|
|
|
end
|
|
|
|
|
|
|
|
definition derived_couple_k_htpy : group_fun (derived_couple_k ∘g SES.g (SES_of_differential d H)) ~ group_fun
|
|
|
|
(SES.g (SES_im_i_trivial) ∘g k_restrict) :=
|
|
|
|
begin
|
|
|
|
exact pr2 (center' (derived_couple_k_unique)),
|
|
|
|
end
|
2016-10-20 20:23:55 +00:00
|
|
|
|
2016-11-03 20:42:12 +00:00
|
|
|
end derived_couple
|