2017-06-07 03:53:45 +00:00
|
|
|
|
import .direct_sum .quotient_group
|
|
|
|
|
|
|
|
|
|
open eq algebra is_trunc set_quotient relation sigma prod sum list trunc function equiv sigma.ops nat
|
|
|
|
|
|
|
|
|
|
namespace group
|
|
|
|
|
|
|
|
|
|
section
|
|
|
|
|
|
2017-06-07 05:01:19 +00:00
|
|
|
|
parameters (A : @trunctype.mk 0 ℕ _ → AbGroup) (f : Πi , A i → A (i + 1))
|
|
|
|
|
variables {A' : AbGroup}
|
2017-06-07 03:53:45 +00:00
|
|
|
|
|
2017-06-07 05:01:19 +00:00
|
|
|
|
definition seq_colim_carrier : AbGroup := dirsum A
|
2017-06-07 03:53:45 +00:00
|
|
|
|
inductive seq_colim_rel : seq_colim_carrier → Type :=
|
2017-06-07 05:01:19 +00:00
|
|
|
|
| rmk : Πi a, seq_colim_rel ((dirsum_incl A i a) * (dirsum_incl A (i + 1) (f i a))⁻¹)
|
|
|
|
|
|
|
|
|
|
definition seq_colim : AbGroup := quotient_ab_group_gen seq_colim_carrier (λa, ∥seq_colim_rel a∥)
|
|
|
|
|
|
|
|
|
|
definition seq_colim_incl [constructor] (i : ℕ) : A i →g seq_colim :=
|
2017-06-07 03:53:45 +00:00
|
|
|
|
qg_map _ ∘g dirsum_incl A i
|
|
|
|
|
|
2017-06-08 20:04:58 +00:00
|
|
|
|
definition seq_colim_quotient (h : Πi, A i →g A') (k : Πi a, h i a = h (succ i) (f i a))
|
2017-06-07 05:01:19 +00:00
|
|
|
|
(v : seq_colim_carrier) (r : ∥seq_colim_rel v∥) : dirsum_elim h v = 1 :=
|
2017-06-07 03:53:45 +00:00
|
|
|
|
begin
|
2017-06-08 20:04:58 +00:00
|
|
|
|
induction r with r, induction r,
|
|
|
|
|
refine !to_respect_mul ⬝ _,
|
|
|
|
|
refine ap (λγ, group_fun (dirsum_elim h) (group_fun (dirsum_incl A i) a) * group_fun (dirsum_elim h) γ) (!to_respect_inv)⁻¹ ⬝ _,
|
|
|
|
|
refine ap (λγ, γ * group_fun (dirsum_elim h) (group_fun (dirsum_incl A (succ i)) (f i a)⁻¹)) !dirsum_elim_compute ⬝ _,
|
|
|
|
|
refine ap (λγ, (h i a) * γ) !dirsum_elim_compute ⬝ _,
|
|
|
|
|
refine ap (λγ, γ * group_fun (h (succ i)) (f i a)⁻¹) !k ⬝ _,
|
|
|
|
|
refine ap (λγ, group_fun (h (succ i)) (f i a) * γ) (!to_respect_inv) ⬝ _,
|
|
|
|
|
exact !mul.right_inv
|
2017-06-07 03:53:45 +00:00
|
|
|
|
end
|
|
|
|
|
|
2017-06-07 05:01:19 +00:00
|
|
|
|
definition seq_colim_elim [constructor] (h : Πi, A i →g A')
|
2017-06-08 20:04:58 +00:00
|
|
|
|
(k : Πi a, h i a = h (succ i) (f i a)) : seq_colim →g A' :=
|
2017-06-07 03:53:45 +00:00
|
|
|
|
gqg_elim _ (dirsum_elim h) (seq_colim_quotient h k)
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end group
|