/
category.lean
855 lines (700 loc) Β· 29.5 KB
/
category.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
import category_theory.concrete_category.bundled_hom
import topology.category.Profinite
import data.equiv.fin
import for_mathlib.concrete
import for_mathlib.CompHaus
import pseudo_normed_group.with_Tinv
/-!
# The category of profinitely filtered pseudo-normed groups.
The category of profinite pseudo-normed groups, and the category of
profinitely filtered pseudo-normed groups equipped with an action of Tβ»ΒΉ.
-/
universe variables u
open category_theory
open_locale nnreal
local attribute [instance] type_pow
noncomputable theory
/-- The category of CompHaus-ly filtered pseudo-normed groups. -/
def CompHausFiltPseuNormGrp : Type (u+1) :=
bundled comphaus_filtered_pseudo_normed_group
namespace CompHausFiltPseuNormGrp
def bundled_hom : bundled_hom @comphaus_filtered_pseudo_normed_group_hom :=
β¨@comphaus_filtered_pseudo_normed_group_hom.to_fun,
@comphaus_filtered_pseudo_normed_group_hom.id,
@comphaus_filtered_pseudo_normed_group_hom.comp,
@comphaus_filtered_pseudo_normed_group_hom.coe_injβ©
local attribute [instance] bundled_hom
attribute [derive [has_coe_to_sort, large_category, concrete_category]] CompHausFiltPseuNormGrp
instance (M : CompHausFiltPseuNormGrp) : comphaus_filtered_pseudo_normed_group M := M.str
/-- Construct a bundled `CompHausFiltPseuNormGrp` from the underlying type and typeclass. -/
def of (M : Type u) [comphaus_filtered_pseudo_normed_group M] : CompHausFiltPseuNormGrp :=
bundled.of M
end CompHausFiltPseuNormGrp
/-- The category of CompHaus-ly filtered pseudo-normed groups with strict morphisms. -/
structure CompHausFiltPseuNormGrpβ : Type (u+1) :=
(M : Type u)
[str : comphaus_filtered_pseudo_normed_group M]
(exhaustive' : β m : M, β c, m β pseudo_normed_group.filtration M c)
namespace CompHausFiltPseuNormGrpβ
instance : has_coe_to_sort CompHausFiltPseuNormGrpβ := β¨Type*, Ξ» M, M.Mβ©
instance (M : CompHausFiltPseuNormGrpβ) : comphaus_filtered_pseudo_normed_group M := M.str
lemma exhaustive (M : CompHausFiltPseuNormGrpβ) (m : M) :
β c, m β pseudo_normed_group.filtration M c := M.exhaustive' _
/-
def bundled_hom : bundled_hom @strict_comphaus_filtered_pseudo_normed_group_hom :=
β¨@strict_comphaus_filtered_pseudo_normed_group_hom.to_fun,
@strict_comphaus_filtered_pseudo_normed_group_hom.id,
@strict_comphaus_filtered_pseudo_normed_group_hom.comp,
@strict_comphaus_filtered_pseudo_normed_group_hom.coe_injβ©
local attribute [instance] bundled_hom
attribute [derive [has_coe_to_sort, large_category, concrete_category]] CompHausFiltPseuNormGrpβ
-/
instance : large_category CompHausFiltPseuNormGrpβ.{u} :=
{ hom := Ξ» A B, strict_comphaus_filtered_pseudo_normed_group_hom A B,
id := Ξ» A, strict_comphaus_filtered_pseudo_normed_group_hom.id,
comp := Ξ» A B C f g, g.comp f }
def enlarging_functor : CompHausFiltPseuNormGrpβ β₯€ CompHausFiltPseuNormGrp :=
{ obj := Ξ» M, CompHausFiltPseuNormGrp.of M,
map := Ξ» Mβ Mβ f, f.to_chfpsng_hom }
instance : concrete_category CompHausFiltPseuNormGrpβ.{u} :=
{ forget :=
{ obj := Ξ» M, M.M,
map := Ξ» A B f, f },
forget_faithful := β¨β© } .
def level : ββ₯0 β₯€ CompHausFiltPseuNormGrpβ.{u} β₯€ CompHaus :=
{ obj := Ξ» c,
{ obj := Ξ» M, CompHaus.of $ pseudo_normed_group.filtration M c,
map := Ξ» A B f, β¨_, f.level_continuous _β© },
map := Ξ» cβ cβ h,
{ app := Ξ» M, by letI : fact (cβ β€ cβ) := β¨le_of_hom hβ©; exact
β¨_, comphaus_filtered_pseudo_normed_group.continuous_cast_le _ _β© } } .
section limits
/-!
In this section, we show (hopefully ;)) that `CompHausFiltPseuNormGrpβ` has limits.
-/
variables {J : Type u} [small_category J] (G : J β₯€ CompHausFiltPseuNormGrpβ.{u})
open pseudo_normed_group
open category_theory.limits
/-- This is a bifunctor which associates to each `c : ββ₯0` and `j : J`,
the `c`-th term of the filtration of `G.obj j`. -/
def cone_point_diagram : as_small.{u} ββ₯0 β₯€ J β₯€ CompHaus.{u} :=
as_small.down β level β (whiskering_left _ _ _).obj G
@[derive [topological_space, t2_space]]
def cone_point_type_filt (c : ββ₯0) : Type u :=
{ x : Ξ j : J, filtration (G.obj j) c | β β¦i j : Jβ¦ (e : i βΆ j), (G.map e).level (x _) = x _ }
instance (c : ββ₯0) : compact_space (cone_point_type_filt G c) :=
(CompHaus.limit_cone (((cone_point_diagram G).obj (as_small.up.obj c)))).X.is_compact -- ;-)
namespace cone_point_type_filt
variable {G}
instance (c : ββ₯0) : has_coe_to_fun (cone_point_type_filt G c) :=
β¨Ξ» x, Ξ j : J, filtration (G.obj j) c, Ξ» x, x.1β©
@[ext] lemma ext {c} (x y : cone_point_type_filt G c) : βx = y β x = y := subtype.ext
@[simp] lemma level_apply {c : ββ₯0} {i j : J} (x : cone_point_type_filt G c) (e : i βΆ j) :
(G.map e).level (x i) = x j := x.2 e
def trans {cβ cβ : ββ₯0} (h : cβ β€ cβ) (x : cone_point_type_filt G cβ) : cone_point_type_filt G cβ :=
β¨Ξ» j, cast_le' h (x j), Ξ» i j e, by { ext, simp }β©
@[simp] lemma trans_apply {cβ cβ : ββ₯0} (h : cβ β€ cβ) (x : cone_point_type_filt G cβ) (j : J) :
x.trans h j = cast_le' h (x j) := by { ext, refl }
lemma trans_injective {cβ cβ : ββ₯0} (h : cβ β€ cβ) :
function.injective (trans h : cone_point_type_filt G cβ β cone_point_type_filt G cβ) :=
begin
intros x y hh,
ext j,
apply_fun (Ξ» e, (e j : G.obj j)) at hh,
exact hh
end
lemma trans_continuous {cβ cβ : ββ₯0} (h : cβ β€ cβ) :
continuous (trans h : cone_point_type_filt G cβ β cone_point_type_filt G cβ) :=
begin
-- ;-)
let Ξ· := ((cone_point_diagram G).map (as_small.up.map $ hom_of_le $ h)),
let hS := (CompHaus.limit_cone_is_limit (((cone_point_diagram G).obj (as_small.up.obj cβ)))),
let T := (CompHaus.limit_cone (((cone_point_diagram G).obj (as_small.up.obj cβ)))),
exact (hS.map T Ξ·).continuous,
end
lemma continuous_apply {c : ββ₯0} (j : J) : continuous (Ξ» t : cone_point_type_filt G c, t j) :=
begin
change continuous ((Ξ» u : Ξ j, filtration (G.obj j) c, u j) β
(Ξ» u : cone_point_type_filt G c, βu)),
apply continuous.comp,
apply continuous_apply,
apply continuous_subtype_coe,
end
instance {c} : has_zero (cone_point_type_filt G c) := has_zero.mk $
β¨Ξ» j, 0, Ξ» i j e, by { ext, dsimp, simp }β©
instance {c} : has_neg (cone_point_type_filt G c) := has_neg.mk $ Ξ» x,
β¨Ξ» j, - (x j), Ξ» i j e, by { ext, dsimp, simp }β©
def add' {cβ cβ} (x : cone_point_type_filt G cβ) (y : cone_point_type_filt G cβ) :
cone_point_type_filt G (cβ + cβ) :=
β¨Ξ» j, add' (x j, y j), Ξ» i j e, by { ext, dsimp, simp }β©
@[simp] lemma zero_apply {c} (j : J) : (0 : cone_point_type_filt G c) j = 0 := rfl
@[simp] lemma neg_apply {c} (j : J) (x : cone_point_type_filt G c) : (-x) j = - (x j) := rfl
@[simp] lemma add'_apply_coe {cβ cβ} (j : J) (x : cone_point_type_filt G cβ)
(y : cone_point_type_filt G cβ) : ((x.add' y) j : G.obj j) = x j + y j := rfl
lemma continuous_neg {c} : continuous (Ξ» x : cone_point_type_filt G c, - x) :=
begin
apply continuous_subtype_mk,
apply continuous_pi,
intros j,
change continuous ((Ξ» x, -x) β (Ξ» a : cone_point_type_filt G c, (a j))),
apply continuous.comp,
apply comphaus_filtered_pseudo_normed_group.continuous_neg',
apply continuous_apply,
end
lemma continuous_add' {c1 c2} :
continuous (Ξ» t : cone_point_type_filt G c1 Γ cone_point_type_filt G c2, t.1.add' t.2) :=
begin
apply continuous_subtype_mk,
apply continuous_pi,
intros j,
let A : cone_point_type_filt G c1 Γ cone_point_type_filt G c2 β
(Ξ j : J, filtration (G.obj j) c1) Γ (Ξ j : J, filtration (G.obj j) c2) :=
Ξ» t, (t.1,t.2),
let B : (Ξ j : J, filtration (G.obj j) c1) Γ (Ξ j : J, filtration (G.obj j) c2) β
filtration (G.obj j) c1 Γ filtration (G.obj j) c2 := Ξ» t, (t.1 j, t.2 j),
let C : filtration (G.obj j) c1 Γ filtration (G.obj j) c2 β filtration (G.obj j) (c1 + c2) :=
pseudo_normed_group.add',
change continuous (C β B β A),
apply continuous.comp,
apply comphaus_filtered_pseudo_normed_group.continuous_add',
apply continuous.comp,
{ apply continuous.prod_mk,
{ change continuous ((Ξ» t : Ξ j : J, filtration (G.obj j) c1, t j) β prod.fst),
apply continuous.comp,
apply _root_.continuous_apply,
exact continuous_fst },
{ change continuous ((Ξ» t : Ξ j : J, filtration (G.obj j) c2, t j) β prod.snd),
apply continuous.comp,
apply _root_.continuous_apply,
exact continuous_snd } },
apply continuous.prod_map,
apply continuous_subtype_coe,
apply continuous_subtype_coe,
end
end cone_point_type_filt
def cone_point_type_setoid : setoid (Ξ£ (c : ββ₯0), cone_point_type_filt G c) :=
{ r := Ξ» x y, β (d : ββ₯0) (hx : x.1 β€ d) (hy : y.1 β€ d), x.2.trans hx = y.2.trans hy,
iseqv := begin
refine β¨_,_,_β©,
{ rintro β¨c,xβ©,
use [c, le_refl _, le_refl _] },
{ rintro β¨c,xβ© β¨d,yβ© β¨e,h1,h2,hβ©,
dsimp at *,
refine β¨_, le_sup_left, le_sup_right, _β©,
ext j : 3,
symmetry,
apply_fun (Ξ» e, (e j : G.obj j)) at h,
exact h },
{ rintro β¨c,xβ© β¨d,yβ© β¨e,zβ© β¨i,h1,hh1,hhh1β© β¨j,h2,hh2,hhh2β©,
dsimp at *,
refine β¨_, le_sup_left, le_sup_right, _β©,
ext jj : 3,
apply_fun (Ξ» e, (e jj : G.obj jj)) at hhh1,
apply_fun (Ξ» e, (e jj : G.obj jj)) at hhh2,
erw [hhh1, hhh2], refl },
end }
def cone_point_type : Type u := quotient (cone_point_type_setoid G)
namespace cone_point_type
variable {G}
def incl (c : ββ₯0) : cone_point_type_filt G c β cone_point_type G :=
quotient.mk' β sigma.mk c
lemma incl_injective (c : ββ₯0) :
function.injective (incl c : cone_point_type_filt G c β cone_point_type G) :=
begin
intros x y h,
replace h := quotient.exact' h,
obtain β¨d,h1,h2,hβ© := h,
dsimp at h1 h2 h,
rw (show h1 = h2, by refl) at h,
apply cone_point_type_filt.trans_injective h2,
exact h,
end
@[simp]
lemma incl_trans {cβ cβ : ββ₯0} (h : cβ β€ cβ) (x : cone_point_type_filt G cβ) :
incl _ (x.trans h) = incl _ x :=
begin
apply quotient.sound',
refine β¨cβ β cβ, by simp, by simp, _β©,
ext,
refl,
end
lemma incl_jointly_surjective (x : cone_point_type G) :
β (c : ββ₯0) (y : cone_point_type_filt G c), incl c y = x :=
begin
rcases x,
obtain β¨c,yβ© := x,
use [c,y],
refl,
end
def index (x : cone_point_type G) : ββ₯0 := (incl_jointly_surjective x).some
def preimage (x : cone_point_type G) : cone_point_type_filt G x.index :=
(incl_jointly_surjective x).some_spec.some
@[simp]
lemma preimage_spec (x : cone_point_type G) : incl _ x.preimage = x :=
(incl_jointly_surjective x).some_spec.some_spec
@[simp]
lemma coe_incl_preimage_apply {c} (x : cone_point_type_filt G c) (j : J) :
((incl c x).preimage j : G.obj j) = x j :=
begin
let e := c β (incl c x).index,
change _ = (cast_le' le_sup_left (x j) : G.obj j),
rw β cone_point_type_filt.trans_apply (le_sup_left : _ β€ e) x j,
rw β coe_cast_le' (le_sup_right : _ β€ e),
rw β cone_point_type_filt.trans_apply,
congr' 2,
apply incl_injective,
simp,
end
instance : has_zero (cone_point_type G) := β¨incl 0 0β©
lemma zero_def : (0 : cone_point_type G) = incl 0 0 := rfl
instance : has_neg (cone_point_type G) := has_neg.mk $
Ξ» x, incl _ (-x.preimage)
lemma neg_def (x : cone_point_type G) : -x = incl _ (-x.preimage) := rfl
instance : has_add (cone_point_type G) := has_add.mk $
Ξ» x y, incl _ (x.preimage.add' y.preimage)
lemma add_def (x y : cone_point_type G) : x + y = incl _ (x.preimage.add' y.preimage) := rfl
lemma zero_add (x : cone_point_type G) : 0 + x = x :=
begin
conv_rhs {rw β x.preimage_spec},
apply quotient.sound',
refine β¨(0 : cone_point_type G).index + x.index, by simp, by simp, _β©,
dsimp,
ext j : 3,
simp only [cone_point_type_filt.trans_apply, cone_point_type_filt.add'_apply_coe, coe_cast_le'],
simp only [add_left_eq_self],
apply coe_incl_preimage_apply,
end
lemma add_comm (x y : cone_point_type G) : x + y = y + x :=
begin
apply quotient.sound',
refine β¨x.index + y.index, le_refl _, le_of_eq (by {dsimp, rw add_comm}), _β©,
dsimp,
ext j : 3,
simp only [cone_point_type_filt.trans_apply, cone_point_type_filt.add'_apply_coe,
coe_cast_le, coe_cast_le'],
rw add_comm,
end
lemma add_zero (x : cone_point_type G) : x + 0 = x := by { rw add_comm, apply zero_add }
lemma add_assoc (x y z : cone_point_type G) : x + y + z = x + (y + z) :=
begin
apply quotient.sound',
refine β¨_, le_sup_left, le_sup_right, _β©,
dsimp,
ext j : 3,
simp only [cone_point_type_filt.trans_apply, cone_point_type_filt.add'_apply_coe,
coe_cast_le, coe_cast_le'],
erw [coe_incl_preimage_apply, coe_incl_preimage_apply],
simp [add_assoc],
end
lemma add_left_neg (x : cone_point_type G) : -x + x = 0 :=
begin
apply quotient.sound',
refine β¨_,le_sup_left, le_sup_right,_β©,
dsimp,
ext j : 3,
simp only [cone_point_type_filt.trans_apply, cone_point_type_filt.zero_apply,
cone_point_type_filt.add'_apply_coe, coe_cast_le, filtration.coe_zero, coe_cast_le'],
erw coe_incl_preimage_apply,
simp,
end
instance : add_comm_group (cone_point_type G) :=
{ add_assoc := add_assoc,
zero_add := zero_add,
add_zero := add_zero,
add_left_neg := add_left_neg,
add_comm := add_comm,
..(infer_instance : has_add _),
..(infer_instance : has_zero _),
..(infer_instance : has_neg _) }
variable (G)
def filt (c : ββ₯0) : set (cone_point_type G) := set.range (incl c)
def filt_equiv (c : ββ₯0) : cone_point_type_filt G c β filt G c :=
equiv.of_bijective (Ξ» x, β¨_, x, rflβ©)
begin
split,
{ intros x y h,
apply_fun (Ξ» e, e.val) at h,
apply incl_injective,
exact h },
{ rintro β¨_,x,rflβ©, use x }
end
instance {c} : topological_space (filt G c) :=
topological_space.induced (filt_equiv G c).symm infer_instance
def filt_homeo (c : ββ₯0) : filt G c ββ cone_point_type_filt G c :=
homeomorph.homeomorph_of_continuous_open (filt_equiv G c).symm continuous_induced_dom
begin
intros U hU,
have : inducing (filt_equiv G c).symm := β¨rflβ©,
rw this.is_open_iff at hU,
obtain β¨U,hU,rflβ© := hU,
simpa,
end
instance {c} : compact_space (filt G c) :=
(filt_homeo G c).symm.compact_space
instance {c} : t2_space (filt G c) :=
(filt_homeo G c).symm.t2_space
variable {G}
@[simp] lemma incl_neg {c} (x : cone_point_type_filt G c) :
incl c (-x) = - incl c x :=
begin
apply quotient.sound',
refine β¨_, le_sup_left, le_sup_right, _β©,
dsimp,
ext j : 3,
simp,
end
@[simp] lemma incl_add' {c1 c2} (x1 : cone_point_type_filt G c1) (x2 : cone_point_type_filt G c2) :
incl (c1 + c2) (x1.add' x2) = incl c1 x1 + incl c2 x2 :=
begin
apply quotient.sound',
refine β¨_, le_sup_left, le_sup_right, _β©,
dsimp,
ext j : 3,
simp,
end
@[simp] lemma incl_zero {c} : incl c (0 : cone_point_type_filt G c) = 0 :=
begin
apply quotient.sound',
refine β¨_, le_sup_left, le_sup_right, _β©,
dsimp,
ext j : 3,
simp,
end
instance : pseudo_normed_group (cone_point_type G) :=
{ filtration := filt G,
filtration_mono := begin
rintro c1 c2 h x β¨x,rflβ©,
dsimp [filt],
use x.trans h,
simp,
end,
zero_mem_filtration := begin
intro c,
use 0,
simp,
end,
neg_mem_filtration := begin
rintros c x β¨x,rflβ©,
use -x,
simp,
end,
add_mem_filtration := begin
rintros c1 c2 x1 x2 β¨x1,rflβ© β¨x2,rflβ©,
use x1.add' x2,
simp,
end }
instance : comphaus_filtered_pseudo_normed_group (cone_point_type G) :=
{ topology := by apply_instance,
t2 := by apply_instance,
compact := by apply_instance,
continuous_add' := begin
intros c1 c2,
let E : filtration (cone_point_type G) c1 Γ filtration (cone_point_type G) c2 β
cone_point_type_filt G c1 Γ cone_point_type_filt G c2 :=
Ξ» t, β¨(filt_homeo G c1) t.1, (filt_homeo G c2) t.2β©,
let E' : cone_point_type_filt G c1 Γ cone_point_type_filt G c2 β
filtration (cone_point_type G) c1 Γ filtration (cone_point_type G) c2 :=
Ξ» t, β¨(filt_homeo G c1).symm t.1, (filt_homeo G c2).symm t.2β©,
have hE'E : E' β E = id := by { dsimp [E,E'], ext, simp, simp },
have : (filt_homeo G (c1 + c2)).symm β
(Ξ» t : cone_point_type_filt G c1 Γ cone_point_type_filt G c2, t.1.add' t.2) β E = add',
{ suffices : add' β E' = (filt_homeo G (c1 + c2)).to_equiv.symm β
(Ξ» t : cone_point_type_filt G c1 Γ cone_point_type_filt G c2, t.1.add' t.2),
{ erw [β function.comp.assoc, β this, function.comp.assoc, hE'E],
simp },
dsimp only [filt_homeo, homeomorph.homeomorph_of_continuous_open, E'],
ext,
dsimp [filt_homeo, filt_equiv, E, E'],
simp },
rw β this, clear this,
apply continuous.comp (homeomorph.continuous _),
apply continuous.comp,
apply cone_point_type_filt.continuous_add',
dsimp [E],
continuity,
end,
continuous_neg' := begin
intros c,
have : (neg' : filtration (cone_point_type G) c β filtration (cone_point_type G) c) =
(filt_homeo G c).symm β (Ξ» x, -x) β filt_homeo G c,
{ suffices :
(neg' : filtration (cone_point_type G) c β filtration (cone_point_type G) c) β
(filt_homeo G c).to_equiv.symm = (filt_homeo G c).to_equiv.symm β (Ξ» x, -x),
{ erw [β function.comp.assoc, β this, function.comp.assoc, equiv.symm_comp_self],
simp },
dsimp only [filt_homeo, homeomorph.homeomorph_of_continuous_open],
simp only [equiv.symm_symm],
ext,
dsimp [filt_equiv],
simp },
rw this,
simp [cone_point_type_filt.continuous_neg],
end,
continuous_cast_le := begin
rintro cβ cβ β¨hβ©,
change continuous (cast_le' h),
have : cast_le' h = (filt_homeo G cβ).symm β
cone_point_type_filt.trans h β (filt_homeo G cβ),
{ suffices : cast_le' h β (filt_homeo G cβ).to_equiv.symm =
(filt_homeo G cβ).to_equiv.symm β cone_point_type_filt.trans h,
{ erw [β function.comp.assoc, β this, function.comp.assoc, equiv.symm_comp_self],
simp },
dsimp only [filt_homeo, homeomorph.homeomorph_of_continuous_open],
simp only [equiv.symm_symm],
ext,
dsimp [filt_equiv],
simp },
simp [this, cone_point_type_filt.trans_continuous],
end }
end cone_point_type
def cone_point : CompHausFiltPseuNormGrpβ :=
{ M := cone_point_type G,
exhaustive' := cone_point_type.incl_jointly_surjective }
def proj (j : J) : cone_point G βΆ G.obj j :=
{ to_fun := Ξ» x, x.preimage j,
map_zero' := begin
rw cone_point_type.zero_def,
simp only [cone_point_type.coe_incl_preimage_apply,
cone_point_type_filt.zero_apply, filtration.coe_zero],
end,
map_add' := begin
intros x y,
rw cone_point_type.add_def x y,
simp only [cone_point_type.coe_incl_preimage_apply,
cone_point_type_filt.add'_apply_coe],
end,
strict' := begin
rintros c x β¨x,rflβ©,
simp only [cone_point_type.coe_incl_preimage_apply,
subtype.coe_prop],
end,
continuousβ' := begin
intros c,
dsimp,
let E : filtration (cone_point_type G) c β filtration (G.obj j) c :=
Ξ» t, ((cone_point_type.filt_homeo G c) t) j,
suffices : continuous E,
{ convert this,
ext β¨t,t,rflβ©,
dsimp [E],
simp only [cone_point_type.coe_incl_preimage_apply],
congr' 2,
apply_fun (cone_point_type.filt_homeo G c).symm,
simp only [homeomorph.symm_apply_apply],
ext, refl },
dsimp [E],
change continuous ((Ξ» (u : cone_point_type_filt G c), u j) β cone_point_type.filt_homeo G c),
simp only [homeomorph.comp_continuous_iff'],
apply cone_point_type_filt.continuous_apply,
end } .
def limit_cone : cone G :=
{ X := cone_point G,
Ο :=
{ app := Ξ» j, proj G j,
naturality' := begin
intros i j e,
ext,
dsimp,
simp only [comp_apply, category.id_comp],
have := (cone_point_type.preimage x).2 e,
apply_fun (Ξ» e, (e : G.obj j)) at this,
exact this.symm,
end } }
def index {M : CompHausFiltPseuNormGrpβ} (x : M) : ββ₯0 := (M.exhaustive x).some
def preimage {M : CompHausFiltPseuNormGrpβ} (x : M) : filtration M (index x) :=
β¨x,(M.exhaustive x).some_specβ©
def limit_cone_lift (D : cone G) : D.X βΆ cone_point G :=
{ to_fun := Ξ» x, cone_point_type.incl (index x)
β¨Ξ» j, (D.Ο.app j).level (preimage x), sorryβ©,
map_zero' := sorry,
map_add' := sorry,
strict' := sorry,
continuousβ' := sorry }
def limit_cone_is_limit : is_limit (limit_cone G) :=
{ lift := Ξ» S, limit_cone_lift _ _,
fac' := sorry,
uniq' := sorry }
-- This is the goal of this section...
instance : has_limit G := has_limit.mk β¨limit_cone _, limit_cone_is_limit _β©
instance : has_limits CompHausFiltPseuNormGrpβ :=
β¨Ξ» J hJ, { has_limit := Ξ» G, by resetI; apply_instance }β©
end limits
end CompHausFiltPseuNormGrpβ
/-- The category of profinitely filtered pseudo-normed groups. -/
def ProFiltPseuNormGrp : Type (u+1) :=
bundled profinitely_filtered_pseudo_normed_group
/-- The category of profinitely filtered pseudo-normed groups with action of `Tβ»ΒΉ`. -/
def ProFiltPseuNormGrpWithTinv (r : ββ₯0) : Type (u+1) :=
bundled (@profinitely_filtered_pseudo_normed_group_with_Tinv r)
namespace ProFiltPseuNormGrp
local attribute [instance] CompHausFiltPseuNormGrp.bundled_hom
def bundled_hom : bundled_hom.parent_projection
@profinitely_filtered_pseudo_normed_group.to_comphaus_filtered_pseudo_normed_group := β¨β©
local attribute [instance] bundled_hom
attribute [derive [has_coe_to_sort, large_category, concrete_category]] ProFiltPseuNormGrp
instance : has_forgetβ ProFiltPseuNormGrp CompHausFiltPseuNormGrp := bundled_hom.forgetβ _ _
@[simps]
def to_CompHausFilt : ProFiltPseuNormGrp β₯€ CompHausFiltPseuNormGrp := forgetβ _ _
/-- Construct a bundled `ProFiltPseuNormGrp` from the underlying type and typeclass. -/
def of (M : Type u) [profinitely_filtered_pseudo_normed_group M] : ProFiltPseuNormGrp :=
bundled.of M
instance : has_zero ProFiltPseuNormGrp := β¨of punitβ©
instance : inhabited ProFiltPseuNormGrp := β¨0β©
instance (M : ProFiltPseuNormGrp) : profinitely_filtered_pseudo_normed_group M := M.str
@[simp] lemma coe_of (V : Type u) [profinitely_filtered_pseudo_normed_group V] : (ProFiltPseuNormGrp.of V : Type u) = V := rfl
@[simp] lemma coe_id (V : ProFiltPseuNormGrp) : β(π V) = id := rfl
@[simp] lemma coe_comp {A B C : ProFiltPseuNormGrp} (f : A βΆ B) (g : B βΆ C) :
β(f β« g) = g β f := rfl
@[simp] lemma coe_comp_apply {A B C : ProFiltPseuNormGrp} (f : A βΆ B) (g : B βΆ C) (x : A) :
(f β« g) x = g (f x) := rfl
open pseudo_normed_group
section
variables (M : Type*) [profinitely_filtered_pseudo_normed_group M] (c : ββ₯0)
instance : t2_space (Top.of (filtration M c)) := by { dsimp, apply_instance }
instance : totally_disconnected_space (Top.of (filtration M c)) := by { dsimp, apply_instance }
instance : compact_space (Top.of (filtration M c)) := by { dsimp, apply_instance }
end
end ProFiltPseuNormGrp
namespace ProFiltPseuNormGrpWithTinv
variables (r' : ββ₯0)
instance bundled_hom : bundled_hom (@profinitely_filtered_pseudo_normed_group_with_Tinv_hom r') :=
β¨@profinitely_filtered_pseudo_normed_group_with_Tinv_hom.to_fun r',
@profinitely_filtered_pseudo_normed_group_with_Tinv_hom.id r',
@profinitely_filtered_pseudo_normed_group_with_Tinv_hom.comp r',
@profinitely_filtered_pseudo_normed_group_with_Tinv_hom.coe_inj r'β©
attribute [derive [has_coe_to_sort, large_category, concrete_category]] ProFiltPseuNormGrpWithTinv
/-- Construct a bundled `ProFiltPseuNormGrpWithTinv` from the underlying type and typeclass. -/
def of (r' : ββ₯0) (M : Type u) [profinitely_filtered_pseudo_normed_group_with_Tinv r' M] :
ProFiltPseuNormGrpWithTinv r' :=
bundled.of M
instance : has_zero (ProFiltPseuNormGrpWithTinv r') :=
β¨{ Ξ± := punit, str := punit.profinitely_filtered_pseudo_normed_group_with_Tinv r' }β©
instance : inhabited (ProFiltPseuNormGrpWithTinv r') := β¨0β©
instance (M : ProFiltPseuNormGrpWithTinv r') :
profinitely_filtered_pseudo_normed_group_with_Tinv r' M := M.str
@[simp] lemma coe_of (V : Type u) [profinitely_filtered_pseudo_normed_group_with_Tinv r' V] :
(ProFiltPseuNormGrpWithTinv.of r' V : Type u) = V := rfl
@[simp] lemma of_coe (M : ProFiltPseuNormGrpWithTinv r') : of r' M = M :=
by { cases M, refl }
@[simp] lemma coe_id (V : ProFiltPseuNormGrpWithTinv r') : β(π V) = id := rfl
@[simp] lemma coe_comp {A B C : ProFiltPseuNormGrpWithTinv r'} (f : A βΆ B) (g : B βΆ C) :
β(f β« g) = g β f := rfl
@[simp] lemma coe_comp_apply {A B C : ProFiltPseuNormGrpWithTinv r'} (f : A βΆ B) (g : B βΆ C) (x : A) :
(f β« g) x = g (f x) := rfl
open pseudo_normed_group
section
variables (M : Type*) [profinitely_filtered_pseudo_normed_group_with_Tinv r' M] (c : ββ₯0)
include r'
instance : t2_space (Top.of (filtration M c)) := by { dsimp, apply_instance }
instance : totally_disconnected_space (Top.of (filtration M c)) := by { dsimp, apply_instance }
instance : compact_space (Top.of (filtration M c)) := by { dsimp, apply_instance }
end
-- @[simps] def Filtration (c : ββ₯0) : ProFiltPseuNormGrp β₯€ Profinite :=
-- { obj := Ξ» M, β¨Top.of (filtration M c)β©,
-- map := Ξ» Mβ Mβ f, β¨f.level c, f.level_continuous cβ©,
-- map_id' := by { intros, ext, refl },
-- map_comp' := by { intros, ext, refl } }
open pseudo_normed_group profinitely_filtered_pseudo_normed_group_with_Tinv_hom
open profinitely_filtered_pseudo_normed_group_with_Tinv (Tinv)
variables {r'}
variables {M Mβ Mβ : ProFiltPseuNormGrpWithTinv.{u} r'}
variables {f : Mβ βΆ Mβ}
/-- The isomorphism induced by a bijective `profinitely_filtered_pseudo_normed_group_with_Tinv_hom`
whose inverse is strict. -/
def iso_of_equiv_of_strict (e : Mβ β+ Mβ) (he : β x, f x = e x)
(strict : β β¦c xβ¦, x β filtration Mβ c β e.symm x β filtration Mβ c) :
Mβ β
Mβ :=
{ hom := f,
inv := inv_of_equiv_of_strict e he strict,
hom_inv_id' := by { ext x, simp [inv_of_equiv_of_strict, he] },
inv_hom_id' := by { ext x, simp [inv_of_equiv_of_strict, he] } }
@[simp]
lemma iso_of_equiv_of_strict.apply (e : Mβ β+ Mβ) (he : β x, f x = e x)
(strict : β β¦c xβ¦, x β filtration Mβ c β e.symm x β filtration Mβ c) (x : Mβ) :
(iso_of_equiv_of_strict e he strict).hom x = f x := rfl
@[simp]
lemma iso_of_equiv_of_strict_symm.apply (e : Mβ β+ Mβ) (he : β x, f x = e x)
(strict : β β¦c xβ¦, x β filtration Mβ c β e.symm x β filtration Mβ c) (x : Mβ) :
(iso_of_equiv_of_strict e he strict).symm.hom x = e.symm x := rfl
def iso_of_equiv_of_strict'
(e : Mβ β+ Mβ)
(strict' : β c x, x β filtration Mβ c β e x β filtration Mβ c)
(continuous' : β c, continuous (pseudo_normed_group.level e (Ξ» c x, (strict' c x).1) c))
(map_Tinv' : β x, e (Tinv x) = Tinv (e x)) :
Mβ β
Mβ :=
@iso_of_equiv_of_strict r' Mβ Mβ
{to_fun := e,
strict' := Ξ» c x, (strict' c x).1,
continuous' := continuous',
map_Tinv' := map_Tinv',
..e.to_add_monoid_hom } e (Ξ» _, rfl)
(by { intros c x hx, rwa [strict', e.apply_symm_apply] })
@[simp]
lemma iso_of_equiv_of_strict'_hom_apply
(e : Mβ β+ Mβ)
(strict' : β c x, x β filtration Mβ c β e x β filtration Mβ c)
(continuous' : β c, continuous (pseudo_normed_group.level e (Ξ» c x, (strict' c x).1) c))
(map_Tinv' : β x, e (Tinv x) = Tinv (e x))
(x : Mβ) :
(iso_of_equiv_of_strict' e strict' continuous' map_Tinv').hom x = e x := rfl
@[simp]
lemma iso_of_equiv_of_strict'_inv_apply
(e : Mβ β+ Mβ)
(strict' : β c x, x β filtration Mβ c β e x β filtration Mβ c)
(continuous' : β c, continuous (pseudo_normed_group.level e (Ξ» c x, (strict' c x).1) c))
(map_Tinv' : β x, e (Tinv x) = Tinv (e x))
(x : Mβ) :
(iso_of_equiv_of_strict' e strict' continuous' map_Tinv').inv x = e.symm x := rfl
variables (r')
@[simps]
def Pow (n : β) : ProFiltPseuNormGrpWithTinv.{u} r' β₯€ ProFiltPseuNormGrpWithTinv.{u} r' :=
{ obj := Ξ» M, of r' $ M ^ n,
map := Ξ» Mβ Mβ f, profinitely_filtered_pseudo_normed_group_with_Tinv.pi_map r' _ _ (Ξ» i, f),
map_id' := Ξ» M, by { ext, refl },
map_comp' := by { intros, ext, refl } }
@[simps]
def Pow_Pow_X_equiv (N n : β) :
M ^ (N * n) β+ (M ^ N) ^ n :=
{ to_fun := ((equiv.curry _ _ _).symm.trans (((equiv.prod_comm _ _).trans fin_prod_fin_equiv).arrow_congr (equiv.refl _))).symm,
map_add' := Ξ» x y, by { ext, refl },
.. ((equiv.curry _ _ _).symm.trans (((equiv.prod_comm _ _).trans fin_prod_fin_equiv).arrow_congr (equiv.refl _))).symm }
open profinitely_filtered_pseudo_normed_group
open comphaus_filtered_pseudo_normed_group
@[simps]
def Pow_Pow_X (N n : β) (M : ProFiltPseuNormGrpWithTinv.{u} r') :
(Pow r' N β Pow r' n).obj M β
(Pow r' (N * n)).obj M :=
iso.symm $
iso_of_equiv_of_strict'
(Pow_Pow_X_equiv r' N n)
begin
intros c x,
dsimp,
split; intro h,
{ intros i j, exact h (fin_prod_fin_equiv (j, i)) },
{ intro ij,
have := h (fin_prod_fin_equiv.symm ij).2 (fin_prod_fin_equiv.symm ij).1,
dsimp at this, simpa only [prod.mk.eta, equiv.apply_symm_apply] using this, },
end
begin
intro c, dsimp,
rw [β (filtration_pi_homeo (Ξ» _, M ^ N) c).comp_continuous_iff,
β (filtration_pi_homeo (Ξ» _, M) c).symm.comp_continuous_iff'],
apply continuous_pi,
intro i,
rw [β (filtration_pi_homeo (Ξ» _, M) c).comp_continuous_iff],
apply continuous_pi,
intro j,
have := @continuous_apply _ (Ξ» _, filtration M c) _ (fin_prod_fin_equiv (j, i)),
dsimp [function.comp] at this β’,
simpa only [subtype.coe_eta],
end
(by { intros, ext, refl })
@[simps hom inv]
def Pow_mul (N n : β) : Pow r' (N * n) β
Pow r' N β Pow r' n :=
nat_iso.of_components (Ξ» M, (Pow_Pow_X r' N n M).symm)
begin
intros X Y f,
ext x i j,
refl,
end
end ProFiltPseuNormGrpWithTinv