/
FiniteDimension.lean
749 lines (653 loc) Β· 39.1 KB
/
FiniteDimension.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
/-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent
import Mathlib.Analysis.Normed.Group.Lemmas
import Mathlib.Analysis.NormedSpace.AddTorsor
import Mathlib.Analysis.NormedSpace.AffineIsometry
import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace
import Mathlib.Analysis.NormedSpace.RieszLemma
import Mathlib.Analysis.NormedSpace.Pointwise
import Mathlib.Topology.Algebra.Module.FiniteDimension
import Mathlib.Topology.Algebra.InfiniteSum.Module
import Mathlib.Topology.Instances.Matrix
#align_import analysis.normed_space.finite_dimension from "leanprover-community/mathlib"@"9425b6f8220e53b059f5a4904786c3c4b50fc057"
/-!
# Finite dimensional normed spaces over complete fields
Over a complete nontrivially normed field, in finite dimension, all norms are equivalent and all
linear maps are continuous. Moreover, a finite-dimensional subspace is always complete and closed.
## Main results:
* `FiniteDimensional.complete` : a finite-dimensional space over a complete field is complete. This
is not registered as an instance, as the field would be an unknown metavariable in typeclass
resolution.
* `Submodule.closed_of_finiteDimensional` : a finite-dimensional subspace over a complete field is
closed
* `FiniteDimensional.proper` : a finite-dimensional space over a proper field is proper. This
is not registered as an instance, as the field would be an unknown metavariable in typeclass
resolution. It is however registered as an instance for `π = β` and `π = β`. As properness
implies completeness, there is no need to also register `FiniteDimensional.complete` on `β` or
`β`.
* `FiniteDimensional.of_isCompact_closedBall`: Riesz' theorem: if the closed unit ball is
compact, then the space is finite-dimensional.
## Implementation notes
The fact that all norms are equivalent is not written explicitly, as it would mean having two norms
on a single space, which is not the way type classes work. However, if one has a
finite-dimensional vector space `E` with a norm, and a copy `E'` of this type with another norm,
then the identities from `E` to `E'` and from `E'`to `E` are continuous thanks to
`LinearMap.continuous_of_finiteDimensional`. This gives the desired norm equivalence.
-/
universe u v w x
noncomputable section
open Set FiniteDimensional TopologicalSpace Filter Asymptotics Classical BigOperators Topology
NNReal Metric
namespace LinearIsometry
open LinearMap
variable {R : Type*} [Semiring R]
variable {F Eβ : Type*} [SeminormedAddCommGroup F] [NormedAddCommGroup Eβ] [Module R Eβ]
variable {Rβ : Type*} [Field Rβ] [Module Rβ Eβ] [Module Rβ F] [FiniteDimensional Rβ Eβ]
[FiniteDimensional Rβ F]
/-- A linear isometry between finite dimensional spaces of equal dimension can be upgraded
to a linear isometry equivalence. -/
def toLinearIsometryEquiv (li : Eβ ββα΅’[Rβ] F) (h : finrank Rβ Eβ = finrank Rβ F) :
Eβ ββα΅’[Rβ] F where
toLinearEquiv := li.toLinearMap.linearEquivOfInjective li.injective h
norm_map' := li.norm_map'
#align linear_isometry.to_linear_isometry_equiv LinearIsometry.toLinearIsometryEquiv
@[simp]
theorem coe_toLinearIsometryEquiv (li : Eβ ββα΅’[Rβ] F) (h : finrank Rβ Eβ = finrank Rβ F) :
(li.toLinearIsometryEquiv h : Eβ β F) = li :=
rfl
#align linear_isometry.coe_to_linear_isometry_equiv LinearIsometry.coe_toLinearIsometryEquiv
@[simp]
theorem toLinearIsometryEquiv_apply (li : Eβ ββα΅’[Rβ] F) (h : finrank Rβ Eβ = finrank Rβ F)
(x : Eβ) : (li.toLinearIsometryEquiv h) x = li x :=
rfl
#align linear_isometry.to_linear_isometry_equiv_apply LinearIsometry.toLinearIsometryEquiv_apply
end LinearIsometry
namespace AffineIsometry
open AffineMap
variable {π : Type*} {Vβ Vβ : Type*} {Pβ Pβ : Type*} [NormedField π] [NormedAddCommGroup Vβ]
[SeminormedAddCommGroup Vβ] [NormedSpace π Vβ] [NormedSpace π Vβ] [MetricSpace Pβ]
[PseudoMetricSpace Pβ] [NormedAddTorsor Vβ Pβ] [NormedAddTorsor Vβ Pβ]
variable [FiniteDimensional π Vβ] [FiniteDimensional π Vβ]
/-- An affine isometry between finite dimensional spaces of equal dimension can be upgraded
to an affine isometry equivalence. -/
def toAffineIsometryEquiv [Inhabited Pβ] (li : Pβ βα΅β±[π] Pβ) (h : finrank π Vβ = finrank π Vβ) :
Pβ βα΅β±[π] Pβ :=
AffineIsometryEquiv.mk' li (li.linearIsometry.toLinearIsometryEquiv h)
(Inhabited.default (Ξ± := Pβ)) fun p => by simp
#align affine_isometry.to_affine_isometry_equiv AffineIsometry.toAffineIsometryEquiv
@[simp]
theorem coe_toAffineIsometryEquiv [Inhabited Pβ] (li : Pβ βα΅β±[π] Pβ)
(h : finrank π Vβ = finrank π Vβ) : (li.toAffineIsometryEquiv h : Pβ β Pβ) = li :=
rfl
#align affine_isometry.coe_to_affine_isometry_equiv AffineIsometry.coe_toAffineIsometryEquiv
@[simp]
theorem toAffineIsometryEquiv_apply [Inhabited Pβ] (li : Pβ βα΅β±[π] Pβ)
(h : finrank π Vβ = finrank π Vβ) (x : Pβ) : (li.toAffineIsometryEquiv h) x = li x :=
rfl
#align affine_isometry.to_affine_isometry_equiv_apply AffineIsometry.toAffineIsometryEquiv_apply
end AffineIsometry
section CompleteField
variable {π : Type u} [NontriviallyNormedField π] {E : Type v} [NormedAddCommGroup E]
[NormedSpace π E] {F : Type w} [NormedAddCommGroup F] [NormedSpace π F] {F' : Type x}
[AddCommGroup F'] [Module π F'] [TopologicalSpace F'] [TopologicalAddGroup F']
[ContinuousSMul π F'] [CompleteSpace π]
section Affine
variable {PE PF : Type*} [MetricSpace PE] [NormedAddTorsor E PE] [MetricSpace PF]
[NormedAddTorsor F PF] [FiniteDimensional π E]
theorem AffineMap.continuous_of_finiteDimensional (f : PE βα΅[π] PF) : Continuous f :=
AffineMap.continuous_linear_iff.1 f.linear.continuous_of_finiteDimensional
#align affine_map.continuous_of_finite_dimensional AffineMap.continuous_of_finiteDimensional
theorem AffineEquiv.continuous_of_finiteDimensional (f : PE βα΅[π] PF) : Continuous f :=
f.toAffineMap.continuous_of_finiteDimensional
#align affine_equiv.continuous_of_finite_dimensional AffineEquiv.continuous_of_finiteDimensional
/-- Reinterpret an affine equivalence as a homeomorphism. -/
def AffineEquiv.toHomeomorphOfFiniteDimensional (f : PE βα΅[π] PF) : PE ββ PF where
toEquiv := f.toEquiv
continuous_toFun := f.continuous_of_finiteDimensional
continuous_invFun :=
haveI : FiniteDimensional π F := f.linear.finiteDimensional
f.symm.continuous_of_finiteDimensional
#align affine_equiv.to_homeomorph_of_finite_dimensional AffineEquiv.toHomeomorphOfFiniteDimensional
@[simp]
theorem AffineEquiv.coe_toHomeomorphOfFiniteDimensional (f : PE βα΅[π] PF) :
βf.toHomeomorphOfFiniteDimensional = f :=
rfl
#align affine_equiv.coe_to_homeomorph_of_finite_dimensional AffineEquiv.coe_toHomeomorphOfFiniteDimensional
@[simp]
theorem AffineEquiv.coe_toHomeomorphOfFiniteDimensional_symm (f : PE βα΅[π] PF) :
βf.toHomeomorphOfFiniteDimensional.symm = f.symm :=
rfl
#align affine_equiv.coe_to_homeomorph_of_finite_dimensional_symm AffineEquiv.coe_toHomeomorphOfFiniteDimensional_symm
end Affine
theorem ContinuousLinearMap.continuous_det : Continuous fun f : E βL[π] E => f.det := by
change Continuous fun f : E βL[π] E => LinearMap.det (f : E ββ[π] E)
-- Porting note: this could be easier with `det_cases`
by_cases h : β s : Finset E, Nonempty (Basis (β₯s) π E)
Β· rcases h with β¨s, β¨bβ©β©
haveI : FiniteDimensional π E := FiniteDimensional.of_fintype_basis b
simp_rw [LinearMap.det_eq_det_toMatrix_of_finset b]
refine' Continuous.matrix_det _
exact
((LinearMap.toMatrix b b).toLinearMap.comp
(ContinuousLinearMap.coeLM π)).continuous_of_finiteDimensional
Β· -- Porting note: was `unfold LinearMap.det`
rw [LinearMap.det_def]
simpa only [h, MonoidHom.one_apply, dif_neg, not_false_iff] using continuous_const
#align continuous_linear_map.continuous_det ContinuousLinearMap.continuous_det
/-- Any `K`-Lipschitz map from a subset `s` of a metric space `Ξ±` to a finite-dimensional real
vector space `E'` can be extended to a Lipschitz map on the whole space `Ξ±`, with a slightly worse
constant `C * K` where `C` only depends on `E'`. We record a working value for this constant `C`
as `lipschitzExtensionConstant E'`. -/
irreducible_def lipschitzExtensionConstant (E' : Type*) [NormedAddCommGroup E'] [NormedSpace β E']
[FiniteDimensional β E'] : ββ₯0 :=
let A := (Basis.ofVectorSpace β E').equivFun.toContinuousLinearEquiv
max (βA.symm.toContinuousLinearMapββ * βA.toContinuousLinearMapββ) 1
#align lipschitz_extension_constant lipschitzExtensionConstant
theorem lipschitzExtensionConstant_pos (E' : Type*) [NormedAddCommGroup E'] [NormedSpace β E']
[FiniteDimensional β E'] : 0 < lipschitzExtensionConstant E' := by
rw [lipschitzExtensionConstant]
exact zero_lt_one.trans_le (le_max_right _ _)
#align lipschitz_extension_constant_pos lipschitzExtensionConstant_pos
/-- Any `K`-Lipschitz map from a subset `s` of a metric space `Ξ±` to a finite-dimensional real
vector space `E'` can be extended to a Lipschitz map on the whole space `Ξ±`, with a slightly worse
constant `lipschitzExtensionConstant E' * K`. -/
theorem LipschitzOnWith.extend_finite_dimension {Ξ± : Type*} [PseudoMetricSpace Ξ±] {E' : Type*}
[NormedAddCommGroup E'] [NormedSpace β E'] [FiniteDimensional β E'] {s : Set Ξ±} {f : Ξ± β E'}
{K : ββ₯0} (hf : LipschitzOnWith K f s) :
β g : Ξ± β E', LipschitzWith (lipschitzExtensionConstant E' * K) g β§ EqOn f g s := by
/- This result is already known for spaces `ΞΉ β β`. We use a continuous linear equiv between
`E'` and such a space to transfer the result to `E'`. -/
let ΞΉ : Type _ := Basis.ofVectorSpaceIndex β E'
let A := (Basis.ofVectorSpace β E').equivFun.toContinuousLinearEquiv
have LA : LipschitzWith βA.toContinuousLinearMapββ A := by apply A.lipschitz
have L : LipschitzOnWith (βA.toContinuousLinearMapββ * K) (A β f) s :=
LA.comp_lipschitzOnWith hf
obtain β¨g, hg, gsβ© :
β g : Ξ± β ΞΉ β β, LipschitzWith (βA.toContinuousLinearMapββ * K) g β§ EqOn (A β f) g s :=
L.extend_pi
refine' β¨A.symm β g, _, _β©
Β· have LAsymm : LipschitzWith βA.symm.toContinuousLinearMapββ A.symm := by
apply A.symm.lipschitz
apply (LAsymm.comp hg).weaken
rw [lipschitzExtensionConstant, β mul_assoc]
exact mul_le_mul' (le_max_left _ _) le_rfl
Β· intro x hx
have : A (f x) = g x := gs hx
simp only [(Β· β Β·), β this, A.symm_apply_apply]
#align lipschitz_on_with.extend_finite_dimension LipschitzOnWith.extend_finite_dimension
theorem LinearMap.exists_antilipschitzWith [FiniteDimensional π E] (f : E ββ[π] F)
(hf : LinearMap.ker f = β₯) : β K > 0, AntilipschitzWith K f := by
cases subsingleton_or_nontrivial E
Β· exact β¨1, zero_lt_one, AntilipschitzWith.of_subsingletonβ©
Β· rw [LinearMap.ker_eq_bot] at hf
let e : E βL[π] LinearMap.range f := (LinearEquiv.ofInjective f hf).toContinuousLinearEquiv
exact β¨_, e.nnnorm_symm_pos, e.antilipschitzβ©
#align linear_map.exists_antilipschitz_with LinearMap.exists_antilipschitzWith
open Function in
/-- A `LinearMap` on a finite-dimensional space over a complete field
is injective iff it is anti-Lipschitz. -/
theorem LinearMap.injective_iff_antilipschitz [FiniteDimensional π E] (f : E ββ[π] F) :
Injective f β β K > 0, AntilipschitzWith K f := by
constructor
Β· rw [β LinearMap.ker_eq_bot]
exact f.exists_antilipschitzWith
Β· rintro β¨K, -, Hβ©
exact H.injective
open Function in
/-- The set of injective continuous linear maps `E β F` is open,
if `E` is finite-dimensional over a complete field. -/
theorem ContinuousLinearMap.isOpen_injective [FiniteDimensional π E] :
IsOpen { L : E βL[π] F | Injective L } := by
rw [isOpen_iff_eventually]
rintro Οβ hΟβ
rcases Οβ.injective_iff_antilipschitz.mp hΟβ with β¨K, K_pos, Hβ©
have : βαΆ Ο in π Οβ, βΟ - Οβββ < Kβ»ΒΉ := eventually_nnnorm_sub_lt _ <| inv_pos_of_pos K_pos
filter_upwards [this] with Ο hΟ
apply Ο.injective_iff_antilipschitz.mpr
exact β¨(Kβ»ΒΉ - βΟ - Οβββ)β»ΒΉ, inv_pos_of_pos (tsub_pos_of_lt hΟ),
H.add_sub_lipschitzWith (Ο - Οβ).lipschitz hΟβ©
protected theorem LinearIndependent.eventually {ΞΉ} [Finite ΞΉ] {f : ΞΉ β E}
(hf : LinearIndependent π f) : βαΆ g in π f, LinearIndependent π g := by
cases nonempty_fintype ΞΉ
simp only [Fintype.linearIndependent_iff'] at hf β’
rcases LinearMap.exists_antilipschitzWith _ hf with β¨K, K0, hKβ©
have : Tendsto (fun g : ΞΉ β E => β i, βg i - f iβ) (π f) (π <| β i, βf i - f iβ) :=
tendsto_finset_sum _ fun i _ =>
Tendsto.norm <| ((continuous_apply i).tendsto _).sub tendsto_const_nhds
simp only [sub_self, norm_zero, Finset.sum_const_zero] at this
refine' (this.eventually (gt_mem_nhds <| inv_pos.2 K0)).mono fun g hg => _
replace hg : β i, βg i - f iββ < Kβ»ΒΉ := by
rw [β NNReal.coe_lt_coe]
push_cast
exact hg
rw [LinearMap.ker_eq_bot]
refine' (hK.add_sub_lipschitzWith (LipschitzWith.of_dist_le_mul fun v u => _) hg).injective
simp only [dist_eq_norm, LinearMap.lsum_apply, Pi.sub_apply, LinearMap.sum_apply,
LinearMap.comp_apply, LinearMap.proj_apply, LinearMap.smulRight_apply, LinearMap.id_apply, β
Finset.sum_sub_distrib, β smul_sub, β sub_smul, NNReal.coe_sum, coe_nnnorm, Finset.sum_mul]
refine' norm_sum_le_of_le _ fun i _ => _
rw [norm_smul, mul_comm]
gcongr
exact norm_le_pi_norm (v - u) i
#align linear_independent.eventually LinearIndependent.eventually
theorem isOpen_setOf_linearIndependent {ΞΉ : Type*} [Finite ΞΉ] :
IsOpen { f : ΞΉ β E | LinearIndependent π f } :=
isOpen_iff_mem_nhds.2 fun _ => LinearIndependent.eventually
#align is_open_set_of_linear_independent isOpen_setOf_linearIndependent
theorem isOpen_setOf_nat_le_rank (n : β) :
IsOpen { f : E βL[π] F | βn β€ (f : E ββ[π] F).rank } := by
simp only [LinearMap.le_rank_iff_exists_linearIndependent_finset, setOf_exists, β exists_prop]
refine' isOpen_biUnion fun t _ => _
have : Continuous fun f : E βL[π] F => fun x : (t : Set E) => f x :=
continuous_pi fun x => (ContinuousLinearMap.apply π F (x : E)).continuous
exact isOpen_setOf_linearIndependent.preimage this
#align is_open_set_of_nat_le_rank isOpen_setOf_nat_le_rank
theorem Basis.opNNNorm_le {ΞΉ : Type*} [Fintype ΞΉ] (v : Basis ΞΉ π E) {u : E βL[π] F} (M : ββ₯0)
(hu : β i, βu (v i)ββ β€ M) : βuββ β€ Fintype.card ΞΉ β’ βv.equivFunL.toContinuousLinearMapββ * M :=
u.opNNNorm_le_bound _ fun e => by
set Ο := v.equivFunL.toContinuousLinearMap
calc
βu eββ = βu (β i, v.equivFun e i β’ v i)ββ := by rw [v.sum_equivFun]
_ = ββ i, v.equivFun e i β’ (u <| v i)ββ := by simp [map_sum, LinearMap.map_smul]
_ β€ β i, βv.equivFun e i β’ (u <| v i)ββ := nnnorm_sum_le _ _
_ = β i, βv.equivFun e iββ * βu (v i)ββ := by simp only [nnnorm_smul]
_ β€ β i, βv.equivFun e iββ * M := by gcongr; apply hu
_ = (β i, βv.equivFun e iββ) * M := by rw [Finset.sum_mul]
_ β€ Fintype.card ΞΉ β’ (βΟββ * βeββ) * M := by
gcongr
calc
β i, βv.equivFun e iββ β€ Fintype.card ΞΉ β’ βΟ eββ := Pi.sum_nnnorm_apply_le_nnnorm _
_ β€ Fintype.card ΞΉ β’ (βΟββ * βeββ) := nsmul_le_nsmul_right (Ο.le_opNNNorm e) _
_ = Fintype.card ΞΉ β’ βΟββ * M * βeββ := by simp only [smul_mul_assoc, mul_right_comm]
#align basis.op_nnnorm_le Basis.opNNNorm_le
@[deprecated] alias Basis.op_nnnorm_le := Basis.opNNNorm_le -- deprecated on 2024-02-02
theorem Basis.opNorm_le {ΞΉ : Type*} [Fintype ΞΉ] (v : Basis ΞΉ π E) {u : E βL[π] F} {M : β}
(hM : 0 β€ M) (hu : β i, βu (v i)β β€ M) :
βuβ β€ Fintype.card ΞΉ β’ βv.equivFunL.toContinuousLinearMapβ * M := by
simpa using NNReal.coe_le_coe.mpr (v.opNNNorm_le β¨M, hMβ© hu)
#align basis.op_norm_le Basis.opNorm_le
@[deprecated] alias Basis.op_norm_le := Basis.opNorm_le -- deprecated on 2024-02-02
/-- A weaker version of `Basis.opNNNorm_le` that abstracts away the value of `C`. -/
theorem Basis.exists_opNNNorm_le {ΞΉ : Type*} [Finite ΞΉ] (v : Basis ΞΉ π E) :
β C > (0 : ββ₯0), β {u : E βL[π] F} (M : ββ₯0), (β i, βu (v i)ββ β€ M) β βuββ β€ C * M := by
cases nonempty_fintype ΞΉ
exact
β¨max (Fintype.card ΞΉ β’ βv.equivFunL.toContinuousLinearMapββ) 1,
zero_lt_one.trans_le (le_max_right _ _), fun {u} M hu =>
(v.opNNNorm_le M hu).trans <| mul_le_mul_of_nonneg_right (le_max_left _ _) (zero_le M)β©
#align basis.exists_op_nnnorm_le Basis.exists_opNNNorm_le
@[deprecated] alias Basis.exists_op_nnnorm_le := Basis.exists_opNNNorm_le -- 2024-02-02
/-- A weaker version of `Basis.opNorm_le` that abstracts away the value of `C`. -/
theorem Basis.exists_opNorm_le {ΞΉ : Type*} [Finite ΞΉ] (v : Basis ΞΉ π E) :
β C > (0 : β), β {u : E βL[π] F} {M : β}, 0 β€ M β (β i, βu (v i)β β€ M) β βuβ β€ C * M := by
obtain β¨C, hC, hβ© := v.exists_opNNNorm_le (F := F)
-- Porting note: used `Subtype.forall'` below
refine β¨C, hC, ?_β©
intro u M hM H
simpa using h β¨M, hMβ© H
#align basis.exists_op_norm_le Basis.exists_opNorm_le
@[deprecated] alias Basis.exists_op_norm_le := Basis.exists_opNorm_le -- deprecated on 2024-02-02
instance [FiniteDimensional π E] [SecondCountableTopology F] :
SecondCountableTopology (E βL[π] F) := by
set d := FiniteDimensional.finrank π E
suffices
β Ξ΅ > (0 : β), β n : (E βL[π] F) β Fin d β β, β f g : E βL[π] F, n f = n g β dist f g β€ Ξ΅ from
Metric.secondCountable_of_countable_discretization fun Ξ΅ Ξ΅_pos =>
β¨Fin d β β, by infer_instance, this Ξ΅ Ξ΅_posβ©
intro Ξ΅ Ξ΅_pos
obtain β¨u : β β F, hu : DenseRange uβ© := exists_dense_seq F
let v := FiniteDimensional.finBasis π E
obtain
β¨C : β, C_pos : 0 < C, hC :
β {Ο : E βL[π] F} {M : β}, 0 β€ M β (β i, βΟ (v i)β β€ M) β βΟβ β€ C * Mβ© :=
v.exists_opNorm_le (E := E) (F := F)
have h_2C : 0 < 2 * C := mul_pos zero_lt_two C_pos
have hΞ΅2C : 0 < Ξ΅ / (2 * C) := div_pos Ξ΅_pos h_2C
have : β Ο : E βL[π] F, β n : Fin d β β, βΟ - (v.constrL <| u β n)β β€ Ξ΅ / 2 := by
intro Ο
have : β i, β n, βΟ (v i) - u nβ β€ Ξ΅ / (2 * C) := by
simp only [norm_sub_rev]
intro i
have : Ο (v i) β closure (range u) := hu _
obtain β¨n, hnβ© : β n, βu n - Ο (v i)β < Ξ΅ / (2 * C) := by
rw [mem_closure_iff_nhds_basis Metric.nhds_basis_ball] at this
specialize this (Ξ΅ / (2 * C)) hΞ΅2C
simpa [dist_eq_norm]
exact β¨n, le_of_lt hnβ©
choose n hn using this
use n
replace hn : β i : Fin d, β(Ο - (v.constrL <| u β n)) (v i)β β€ Ξ΅ / (2 * C) := by simp [hn]
have : C * (Ξ΅ / (2 * C)) = Ξ΅ / 2 := by
rw [eq_div_iff (two_ne_zero : (2 : β) β 0), mul_comm, β mul_assoc,
mul_div_cancelβ _ (ne_of_gt h_2C)]
specialize hC (le_of_lt hΞ΅2C) hn
rwa [this] at hC
choose n hn using this
set Ξ¦ := fun Ο : E βL[π] F => v.constrL <| u β n Ο
change β z, dist z (Ξ¦ z) β€ Ξ΅ / 2 at hn
use n
intro x y hxy
calc
dist x y β€ dist x (Ξ¦ x) + dist (Ξ¦ x) y := dist_triangle _ _ _
_ = dist x (Ξ¦ x) + dist y (Ξ¦ y) := by simp [Ξ¦, hxy, dist_comm]
_ β€ Ξ΅ := by linarith [hn x, hn y]
theorem AffineSubspace.closed_of_finiteDimensional {P : Type*} [MetricSpace P]
[NormedAddTorsor E P] (s : AffineSubspace π P) [FiniteDimensional π s.direction] :
IsClosed (s : Set P) :=
s.isClosed_direction_iff.mp s.direction.closed_of_finiteDimensional
#align affine_subspace.closed_of_finite_dimensional AffineSubspace.closed_of_finiteDimensional
section Riesz
/-- In an infinite dimensional space, given a finite number of points, one may find a point
with norm at most `R` which is at distance at least `1` of all these points. -/
theorem exists_norm_le_le_norm_sub_of_finset {c : π} (hc : 1 < βcβ) {R : β} (hR : βcβ < R)
(h : Β¬FiniteDimensional π E) (s : Finset E) : β x : E, βxβ β€ R β§ β y β s, 1 β€ βy - xβ := by
let F := Submodule.span π (s : Set E)
haveI : FiniteDimensional π F :=
Module.finite_def.2
((Submodule.fg_top _).2 (Submodule.fg_def.2 β¨s, Finset.finite_toSet _, rflβ©))
have Fclosed : IsClosed (F : Set E) := Submodule.closed_of_finiteDimensional _
have : β x, x β F := by
contrapose! h
have : (β€ : Submodule π E) = F := by
ext x
simp [h]
have : FiniteDimensional π (β€ : Submodule π E) := by rwa [this]
exact Module.finite_def.2 ((Submodule.fg_top _).1 (Module.finite_def.1 this))
obtain β¨x, xR, hxβ© : β x : E, βxβ β€ R β§ β y : E, y β F β 1 β€ βx - yβ :=
riesz_lemma_of_norm_lt hc hR Fclosed this
have hx' : β y : E, y β F β 1 β€ βy - xβ := by
intro y hy
rw [β norm_neg]
simpa using hx y hy
exact β¨x, xR, fun y hy => hx' _ (Submodule.subset_span hy)β©
#align exists_norm_le_le_norm_sub_of_finset exists_norm_le_le_norm_sub_of_finset
/-- In an infinite-dimensional normed space, there exists a sequence of points which are all
bounded by `R` and at distance at least `1`. For a version not assuming `c` and `R`, see
`exists_seq_norm_le_one_le_norm_sub`. -/
theorem exists_seq_norm_le_one_le_norm_sub' {c : π} (hc : 1 < βcβ) {R : β} (hR : βcβ < R)
(h : Β¬FiniteDimensional π E) :
β f : β β E, (β n, βf nβ β€ R) β§ Pairwise fun m n => 1 β€ βf m - f nβ := by
have : IsSymm E fun x y : E => 1 β€ βx - yβ := by
constructor
intro x y hxy
rw [β norm_neg]
simpa
apply
exists_seq_of_forall_finset_exists' (fun x : E => βxβ β€ R) fun (x : E) (y : E) => 1 β€ βx - yβ
rintro s -
exact exists_norm_le_le_norm_sub_of_finset hc hR h s
#align exists_seq_norm_le_one_le_norm_sub' exists_seq_norm_le_one_le_norm_sub'
theorem exists_seq_norm_le_one_le_norm_sub (h : Β¬FiniteDimensional π E) :
β (R : β) (f : β β E), 1 < R β§ (β n, βf nβ β€ R) β§ Pairwise fun m n => 1 β€ βf m - f nβ := by
obtain β¨c, hcβ© : β c : π, 1 < βcβ := NormedField.exists_one_lt_norm π
have A : βcβ < βcβ + 1 := by linarith
rcases exists_seq_norm_le_one_le_norm_sub' hc A h with β¨f, hfβ©
exact β¨βcβ + 1, f, hc.trans A, hf.1, hf.2β©
#align exists_seq_norm_le_one_le_norm_sub exists_seq_norm_le_one_le_norm_sub
variable (π)
/-- **Riesz's theorem**: if a closed ball with center zero of positive radius is compact in a vector
space, then the space is finite-dimensional. -/
theorem FiniteDimensional.of_isCompact_closedBallβ {r : β} (rpos : 0 < r)
(h : IsCompact (Metric.closedBall (0 : E) r)) : FiniteDimensional π E := by
by_contra hfin
obtain β¨R, f, Rgt, fle, lefβ© :
β (R : β) (f : β β E), 1 < R β§ (β n, βf nβ β€ R) β§ Pairwise fun m n => 1 β€ βf m - f nβ :=
exists_seq_norm_le_one_le_norm_sub hfin
have rRpos : 0 < r / R := div_pos rpos (zero_lt_one.trans Rgt)
obtain β¨c, hcβ© : β c : π, 0 < βcβ β§ βcβ < r / R := NormedField.exists_norm_lt _ rRpos
let g := fun n : β => c β’ f n
have A : β n, g n β Metric.closedBall (0 : E) r := by
intro n
simp only [g, norm_smul, dist_zero_right, Metric.mem_closedBall]
calc
βcβ * βf nβ β€ r / R * R := by
gcongr
Β· exact hc.2.le
Β· apply fle
_ = r := by field_simp [(zero_lt_one.trans Rgt).ne']
-- Porting note: moved type ascriptions because of exists_prop changes
obtain β¨x : E, _ : x β Metric.closedBall (0 : E) r, Ο : β β β, Οmono : StrictMono Ο,
Οlim : Tendsto (g β Ο) atTop (π x)β© := h.tendsto_subseq A
have B : CauchySeq (g β Ο) := Οlim.cauchySeq
obtain β¨N, hNβ© : β N : β, β n : β, N β€ n β dist ((g β Ο) n) ((g β Ο) N) < βcβ :=
Metric.cauchySeq_iff'.1 B βcβ hc.1
apply lt_irrefl βcβ
calc
βcβ β€ dist (g (Ο (N + 1))) (g (Ο N)) := by
conv_lhs => rw [β mul_one βcβ]
simp only [g, dist_eq_norm, β smul_sub, norm_smul]
gcongr
apply lef (ne_of_gt _)
exact Οmono (Nat.lt_succ_self N)
_ < βcβ := hN (N + 1) (Nat.le_succ N)
#align finite_dimensional_of_is_compact_closed_ballβ FiniteDimensional.of_isCompact_closedBallβ
@[deprecated] -- Since 2024-02-02
alias finiteDimensional_of_isCompact_closedBallβ := FiniteDimensional.of_isCompact_closedBallβ
/-- **Riesz's theorem**: if a closed ball of positive radius is compact in a vector space, then the
space is finite-dimensional. -/
theorem FiniteDimensional.of_isCompact_closedBall {r : β} (rpos : 0 < r) {c : E}
(h : IsCompact (Metric.closedBall c r)) : FiniteDimensional π E :=
.of_isCompact_closedBallβ π rpos <| by simpa using h.vadd (-c)
#align finite_dimensional_of_is_compact_closed_ball FiniteDimensional.of_isCompact_closedBall
@[deprecated] -- Since 2024-02-02
alias finiteDimensional_of_isCompact_closedBall := FiniteDimensional.of_isCompact_closedBall
/-- **Riesz's theorem**: a locally compact normed vector space is finite-dimensional. -/
theorem FiniteDimensional.of_locallyCompactSpace [LocallyCompactSpace E] :
FiniteDimensional π E :=
let β¨_r, rpos, hrβ© := exists_isCompact_closedBall (0 : E)
.of_isCompact_closedBallβ π rpos hr
@[deprecated] -- Since 2024-02-02
alias finiteDimensional_of_locallyCompactSpace := FiniteDimensional.of_locallyCompactSpace
/-- If a function has compact support, then either the function is trivial
or the space is finite-dimensional. -/
theorem HasCompactSupport.eq_zero_or_finiteDimensional {X : Type*} [TopologicalSpace X] [Zero X]
[T1Space X] {f : E β X} (hf : HasCompactSupport f) (h'f : Continuous f) :
f = 0 β¨ FiniteDimensional π E :=
(HasCompactSupport.eq_zero_or_locallyCompactSpace_of_addGroup hf h'f).imp_right fun h β¦
-- TODO: Lean doesn't find the instance without this `have`
have : LocallyCompactSpace E := h; .of_locallyCompactSpace π
#align has_compact_support.eq_zero_or_finite_dimensional HasCompactSupport.eq_zero_or_finiteDimensional
/-- If a function has compact multiplicative support, then either the function is trivial
or the space is finite-dimensional. -/
@[to_additive existing]
theorem HasCompactMulSupport.eq_one_or_finiteDimensional {X : Type*} [TopologicalSpace X] [One X]
[T1Space X] {f : E β X} (hf : HasCompactMulSupport f) (h'f : Continuous f) :
f = 1 β¨ FiniteDimensional π E :=
have : T1Space (Additive X) := βΉ_βΊ
HasCompactSupport.eq_zero_or_finiteDimensional (X := Additive X) π hf h'f
#align has_compact_mul_support.eq_one_or_finite_dimensional HasCompactMulSupport.eq_one_or_finiteDimensional
/-- A locally compact normed vector space is proper. -/
lemma ProperSpace.of_locallyCompactSpace (π : Type*) [NontriviallyNormedField π]
{E : Type*} [SeminormedAddCommGroup E] [NormedSpace π E] [LocallyCompactSpace E] :
ProperSpace E := by
rcases exists_isCompact_closedBall (0 : E) with β¨r, rpos, hrβ©
rcases NormedField.exists_one_lt_norm π with β¨c, hcβ©
have hC : β n, IsCompact (closedBall (0 : E) (βcβ^n * r)) := fun n β¦ by
have : c ^ n β 0 := pow_ne_zero _ <| fun h β¦ by simp [h, zero_le_one.not_lt] at hc
simpa [_root_.smul_closedBall' this] using hr.smul (c ^ n)
have hTop : Tendsto (fun n β¦ βcβ^n * r) atTop atTop :=
Tendsto.atTop_mul_const rpos (tendsto_pow_atTop_atTop_of_one_lt hc)
exact .of_seq_closedBall hTop (eventually_of_forall hC)
@[deprecated] -- Since 2024-01-31
alias properSpace_of_locallyCompactSpace := ProperSpace.of_locallyCompactSpace
variable (E)
lemma ProperSpace.of_locallyCompact_module [Nontrivial E] [LocallyCompactSpace E] :
ProperSpace π :=
have : LocallyCompactSpace π := by
obtain β¨v, hvβ© : β v : E, v β 0 := exists_ne 0
let L : π β E := fun t β¦ t β’ v
have : ClosedEmbedding L := closedEmbedding_smul_left hv
apply ClosedEmbedding.locallyCompactSpace this
.of_locallyCompactSpace π
@[deprecated] -- Since 2024-01-31
alias properSpace_of_locallyCompact_module := ProperSpace.of_locallyCompact_module
end Riesz
open ContinuousLinearMap
/-- Continuous linear equivalence between continuous linear functions `πβΏ β E` and `EβΏ`.
The spaces `πβΏ` and `EβΏ` are represented as `ΞΉ β π` and `ΞΉ β E`, respectively,
where `ΞΉ` is a finite type. -/
def ContinuousLinearEquiv.piRing (ΞΉ : Type*) [Fintype ΞΉ] [DecidableEq ΞΉ] :
((ΞΉ β π) βL[π] E) βL[π] ΞΉ β E :=
{ LinearMap.toContinuousLinearMap.symm.trans (LinearEquiv.piRing π E ΞΉ π) with
continuous_toFun := by
refine' continuous_pi fun i => _
exact (ContinuousLinearMap.apply π E (Pi.single i 1)).continuous
continuous_invFun := by
simp_rw [LinearEquiv.invFun_eq_symm, LinearEquiv.trans_symm, LinearEquiv.symm_symm]
-- Note: added explicit type and removed `change` that tried to achieve the same
refine AddMonoidHomClass.continuous_of_bound
(LinearMap.toContinuousLinearMap.toLinearMap.comp
(LinearEquiv.piRing π E ΞΉ π).symm.toLinearMap)
(Fintype.card ΞΉ : β) fun g => ?_
rw [β nsmul_eq_mul]
refine opNorm_le_bound _ (nsmul_nonneg (norm_nonneg g) (Fintype.card ΞΉ)) fun t => ?_
simp_rw [LinearMap.coe_comp, LinearEquiv.coe_toLinearMap, Function.comp_apply,
LinearMap.coe_toContinuousLinearMap', LinearEquiv.piRing_symm_apply]
apply le_trans (norm_sum_le _ _)
rw [smul_mul_assoc]
refine' Finset.sum_le_card_nsmul _ _ _ fun i _ => _
rw [norm_smul, mul_comm]
gcongr <;> apply norm_le_pi_norm }
#align continuous_linear_equiv.pi_ring ContinuousLinearEquiv.piRing
/-- A family of continuous linear maps is continuous on `s` if all its applications are. -/
theorem continuousOn_clm_apply {X : Type*} [TopologicalSpace X] [FiniteDimensional π E]
{f : X β E βL[π] F} {s : Set X} : ContinuousOn f s β β y, ContinuousOn (fun x => f x y) s := by
refine' β¨fun h y => (ContinuousLinearMap.apply π F y).continuous.comp_continuousOn h, fun h => _β©
let d := finrank π E
have hd : d = finrank π (Fin d β π) := (finrank_fin_fun π).symm
let eβ : E βL[π] Fin d β π := ContinuousLinearEquiv.ofFinrankEq hd
let eβ : (E βL[π] F) βL[π] Fin d β F :=
(eβ.arrowCongr (1 : F βL[π] F)).trans (ContinuousLinearEquiv.piRing (Fin d))
rw [β f.id_comp, β eβ.symm_comp_self]
exact eβ.symm.continuous.comp_continuousOn (continuousOn_pi.mpr fun i => h _)
#align continuous_on_clm_apply continuousOn_clm_apply
theorem continuous_clm_apply {X : Type*} [TopologicalSpace X] [FiniteDimensional π E]
{f : X β E βL[π] F} : Continuous f β β y, Continuous (f Β· y) := by
simp_rw [continuous_iff_continuousOn_univ, continuousOn_clm_apply]
#align continuous_clm_apply continuous_clm_apply
end CompleteField
section LocallyCompactField
variable (π : Type u) [NontriviallyNormedField π] (E : Type v) [NormedAddCommGroup E]
[NormedSpace π E] [LocallyCompactSpace π]
/-- Any finite-dimensional vector space over a locally compact field is proper.
We do not register this as an instance to avoid an instance loop when trying to prove the
properness of `π`, and the search for `π` as an unknown metavariable. Declare the instance
explicitly when needed. -/
theorem FiniteDimensional.proper [FiniteDimensional π E] : ProperSpace E := by
have : ProperSpace π := .of_locallyCompactSpace π
set e := ContinuousLinearEquiv.ofFinrankEq (@finrank_fin_fun π _ _ (finrank π E)).symm
exact e.symm.antilipschitz.properSpace e.symm.continuous e.symm.surjective
#align finite_dimensional.proper FiniteDimensional.proper
end LocallyCompactField
/- Over the real numbers, we can register the previous statement as an instance as it will not
cause problems in instance resolution since the properness of `β` is already known. -/
instance (priority := 900) FiniteDimensional.proper_real (E : Type u) [NormedAddCommGroup E]
[NormedSpace β E] [FiniteDimensional β E] : ProperSpace E :=
FiniteDimensional.proper β E
#align finite_dimensional.proper_real FiniteDimensional.proper_real
/-- A submodule of a locally compact space over a complete field is also locally compact (and even
proper). -/
instance {π E : Type*} [NontriviallyNormedField π] [CompleteSpace π]
[NormedAddCommGroup E] [NormedSpace π E] [LocallyCompactSpace E] (S : Submodule π E) :
ProperSpace S := by
nontriviality E
have : ProperSpace π := .of_locallyCompact_module π E
have : FiniteDimensional π E := .of_locallyCompactSpace π
exact FiniteDimensional.proper π S
/-- If `E` is a finite dimensional normed real vector space, `x : E`, and `s` is a neighborhood of
`x` that is not equal to the whole space, then there exists a point `y β frontier s` at distance
`Metric.infDist x sαΆ` from `x`. See also
`IsCompact.exists_mem_frontier_infDist_compl_eq_dist`. -/
theorem exists_mem_frontier_infDist_compl_eq_dist {E : Type*} [NormedAddCommGroup E]
[NormedSpace β E] [FiniteDimensional β E] {x : E} {s : Set E} (hx : x β s) (hs : s β univ) :
β y β frontier s, Metric.infDist x sαΆ = dist x y := by
rcases Metric.exists_mem_closure_infDist_eq_dist (nonempty_compl.2 hs) x with β¨y, hys, hydβ©
rw [closure_compl] at hys
refine' β¨y, β¨Metric.closedBall_infDist_compl_subset_closure hx <|
Metric.mem_closedBall.2 <| ge_of_eq _, hysβ©, hydβ©
rwa [dist_comm]
#align exists_mem_frontier_inf_dist_compl_eq_dist exists_mem_frontier_infDist_compl_eq_dist
/-- If `K` is a compact set in a nontrivial real normed space and `x β K`, then there exists a point
`y` of the boundary of `K` at distance `Metric.infDist x KαΆ` from `x`. See also
`exists_mem_frontier_infDist_compl_eq_dist`. -/
nonrec theorem IsCompact.exists_mem_frontier_infDist_compl_eq_dist {E : Type*}
[NormedAddCommGroup E] [NormedSpace β E] [Nontrivial E] {x : E} {K : Set E} (hK : IsCompact K)
(hx : x β K) :
β y β frontier K, Metric.infDist x KαΆ = dist x y := by
obtain hx' | hx' : x β interior K βͺ frontier K := by
rw [β closure_eq_interior_union_frontier]
exact subset_closure hx
Β· rw [mem_interior_iff_mem_nhds, Metric.nhds_basis_closedBall.mem_iff] at hx'
rcases hx' with β¨r, hrβ, hrKβ©
have : FiniteDimensional β E :=
.of_isCompact_closedBall β hrβ
(hK.of_isClosed_subset Metric.isClosed_ball hrK)
exact exists_mem_frontier_infDist_compl_eq_dist hx hK.ne_univ
Β· refine' β¨x, hx', _β©
rw [frontier_eq_closure_inter_closure] at hx'
rw [Metric.infDist_zero_of_mem_closure hx'.2, dist_self]
#align is_compact.exists_mem_frontier_inf_dist_compl_eq_dist IsCompact.exists_mem_frontier_infDist_compl_eq_dist
/-- In a finite dimensional vector space over `β`, the series `β x, βf xβ` is unconditionally
summable if and only if the series `β x, f x` is unconditionally summable. One implication holds in
any complete normed space, while the other holds only in finite dimensional spaces. -/
theorem summable_norm_iff {Ξ± E : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[FiniteDimensional β E] {f : Ξ± β E} : (Summable fun x => βf xβ) β Summable f := by
refine β¨Summable.of_norm, fun hf β¦ ?_β©
-- First we use a finite basis to reduce the problem to the case `E = Fin N β β`
suffices β {N : β} {g : Ξ± β Fin N β β}, Summable g β Summable fun x => βg xβ by
obtain v := finBasis β E
set e := v.equivFunL
have H : Summable fun x => βe (f x)β := this (e.summable.2 hf)
refine .of_norm_bounded _ (H.mul_left ββ(e.symm : (Fin (finrank β E) β β) βL[β] E)ββ) fun i β¦ ?_
simpa using (e.symm : (Fin (finrank β E) β β) βL[β] E).le_opNorm (e <| f i)
clear! E
-- Now we deal with `g : Ξ± β Fin N β β`
intro N g hg
have : β i, Summable fun x => βg x iβ := fun i => (Pi.summable.1 hg i).abs
refine' .of_norm_bounded _ (summable_sum fun i (_ : i β Finset.univ) => this i) fun x => _
rw [norm_norm, pi_norm_le_iff_of_nonneg]
Β· refine' fun i => Finset.single_le_sum (f := fun i => βg x iβ) (fun i _ => _) (Finset.mem_univ i)
exact norm_nonneg (g x i)
Β· exact Finset.sum_nonneg fun _ _ => norm_nonneg _
#align summable_norm_iff summable_norm_iff
alias β¨_, Summable.normβ© := summable_norm_iff
theorem summable_of_isBigO' {ΞΉ E F : Type*} [NormedAddCommGroup E] [CompleteSpace E]
[NormedAddCommGroup F] [NormedSpace β F] [FiniteDimensional β F] {f : ΞΉ β E} {g : ΞΉ β F}
(hg : Summable g) (h : f =O[cofinite] g) : Summable f :=
summable_of_isBigO hg.norm h.norm_right
set_option linter.uppercaseLean3 false in
#align summable_of_is_O' summable_of_isBigO'
lemma Asymptotics.IsBigO.comp_summable {ΞΉ E F : Type*}
[NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E]
[NormedAddCommGroup F] [CompleteSpace F]
{f : E β F} (hf : f =O[π 0] id) {g : ΞΉ β E} (hg : Summable g) : Summable (f β g) :=
.of_norm <| hf.comp_summable_norm hg.norm
theorem summable_of_isBigO_nat' {E F : Type*} [NormedAddCommGroup E] [CompleteSpace E]
[NormedAddCommGroup F] [NormedSpace β F] [FiniteDimensional β F] {f : β β E} {g : β β F}
(hg : Summable g) (h : f =O[atTop] g) : Summable f :=
summable_of_isBigO_nat hg.norm h.norm_right
set_option linter.uppercaseLean3 false in
#align summable_of_is_O_nat' summable_of_isBigO_nat'
theorem summable_of_isEquivalent {ΞΉ E : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[FiniteDimensional β E] {f : ΞΉ β E} {g : ΞΉ β E} (hg : Summable g) (h : f ~[cofinite] g) :
Summable f :=
hg.trans_sub (summable_of_isBigO' hg h.isLittleO.isBigO)
#align summable_of_is_equivalent summable_of_isEquivalent
theorem summable_of_isEquivalent_nat {E : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[FiniteDimensional β E] {f : β β E} {g : β β E} (hg : Summable g) (h : f ~[atTop] g) :
Summable f :=
hg.trans_sub (summable_of_isBigO_nat' hg h.isLittleO.isBigO)
#align summable_of_is_equivalent_nat summable_of_isEquivalent_nat
theorem IsEquivalent.summable_iff {ΞΉ E : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[FiniteDimensional β E] {f : ΞΉ β E} {g : ΞΉ β E} (h : f ~[cofinite] g) :
Summable f β Summable g :=
β¨fun hf => summable_of_isEquivalent hf h.symm, fun hg => summable_of_isEquivalent hg hβ©
#align is_equivalent.summable_iff IsEquivalent.summable_iff
theorem IsEquivalent.summable_iff_nat {E : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[FiniteDimensional β E] {f : β β E} {g : β β E} (h : f ~[atTop] g) : Summable f β Summable g :=
β¨fun hf => summable_of_isEquivalent_nat hf h.symm, fun hg => summable_of_isEquivalent_nat hg hβ©
#align is_equivalent.summable_iff_nat IsEquivalent.summable_iff_nat