-
Notifications
You must be signed in to change notification settings - Fork 10
/
OneJetBundle.lean
657 lines (543 loc) · 27.7 KB
/
OneJetBundle.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
/-
Copyright (c) 2022 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Floris van Doorn
! This file was ported from Lean 3 source module global.one_jet_bundle
-/
import Mathlib.Tactic
import SphereEversion.ToMathlib.Geometry.Manifold.VectorBundle.Misc
-- import SphereEversion.InteractiveExpr
/-!
# 1-jet bundles
This file contains the definition of the 1-jet bundle `J¹(M, M')`, also known as
`one_jet_bundle I M I' M'`.
We also define
* `one_jet_ext I I' f : M → J¹(M, M')`: the 1-jet extension `j¹f` of a map `f : M → M'`
We prove
* If `f` is smooth, `j¹f` is smooth.
* If `x ↦ (f₁ x, f₂ x, ϕ₁ x) : N → J¹(M₁, M₂)` and `x ↦ (f₂ x, f₃ x, ϕ₂ x) : N → J¹(M₂, M₃)`
are smooth, then so is `x ↦ (f₁ x, f₃ x, ϕ₂ x ∘ ϕ₁ x) : N → J¹(M₁, M₃)`.
-/
noncomputable section
open Filter Set Equiv Bundle ContinuousLinearMap
open scoped Manifold Topology Bundle
variable {𝕜 : Type _} [NontriviallyNormedField 𝕜] {E : Type _} [NormedAddCommGroup E]
[NormedSpace 𝕜 E] {H : Type _} [TopologicalSpace H] (I : ModelWithCorners 𝕜 E H) (M : Type _)
[TopologicalSpace M] [ChartedSpace H M] [SmoothManifoldWithCorners I M] {E' : Type _}
[NormedAddCommGroup E'] [NormedSpace 𝕜 E'] {H' : Type _} [TopologicalSpace H']
(I' : ModelWithCorners 𝕜 E' H') (M' : Type _) [TopologicalSpace M'] [ChartedSpace H' M']
[SmoothManifoldWithCorners I' M'] {E'' : Type _} [NormedAddCommGroup E''] [NormedSpace 𝕜 E'']
{H'' : Type _} [TopologicalSpace H''] {I'' : ModelWithCorners 𝕜 E'' H''} {M'' : Type _}
[TopologicalSpace M''] [ChartedSpace H'' M''] [SmoothManifoldWithCorners I'' M''] {F : Type _}
[NormedAddCommGroup F] [NormedSpace 𝕜 F] {G : Type _} [TopologicalSpace G]
(J : ModelWithCorners 𝕜 F G) {N : Type _} [TopologicalSpace N] [ChartedSpace G N]
[SmoothManifoldWithCorners J N] {F' : Type _} [NormedAddCommGroup F'] [NormedSpace 𝕜 F']
{G' : Type _} [TopologicalSpace G'] (J' : ModelWithCorners 𝕜 F' G') {N' : Type _}
[TopologicalSpace N'] [ChartedSpace G' N'] [SmoothManifoldWithCorners J' N'] {E₂ : Type _}
[NormedAddCommGroup E₂] [NormedSpace 𝕜 E₂] {H₂ : Type _} [TopologicalSpace H₂]
{I₂ : ModelWithCorners 𝕜 E₂ H₂} {M₂ : Type _} [TopologicalSpace M₂] [ChartedSpace H₂ M₂]
[SmoothManifoldWithCorners I₂ M₂] {E₃ : Type _} [NormedAddCommGroup E₃] [NormedSpace 𝕜 E₃]
{H₃ : Type _} [TopologicalSpace H₃] {I₃ : ModelWithCorners 𝕜 E₃ H₃} {M₃ : Type _}
[TopologicalSpace M₃] [ChartedSpace H₃ M₃] [SmoothManifoldWithCorners I₃ M₃]
variable {M M'}
local notation "σ" => RingHom.id 𝕜
instance deleteme1 :
∀ x : M × M',
Module 𝕜 (((ContMDiffMap.fst : C^∞⟮I.prod I', M × M'; I, M⟯) *ᵖ (TangentSpace I)) x) :=
by infer_instance
instance deleteme2 :
∀ x : M × M',
Module 𝕜 (((ContMDiffMap.snd : C^∞⟮I.prod I', M × M'; I', M'⟯) *ᵖ (TangentSpace I')) x) :=
by infer_instance
instance deleteme3 :
VectorBundle 𝕜 E ((ContMDiffMap.fst : C^∞⟮I.prod I', M × M'; I, M⟯) *ᵖ (TangentSpace I)) := by
infer_instance
instance deleteme4 :
VectorBundle 𝕜 E' ((ContMDiffMap.snd : C^∞⟮I.prod I', M × M'; I', M'⟯) *ᵖ (TangentSpace I')) :=
by infer_instance
instance deleteme5 :
SmoothVectorBundle E ((ContMDiffMap.fst : C^∞⟮I.prod I', M × M'; I, M⟯) *ᵖ (TangentSpace I))
(I.prod I') :=
by infer_instance
instance deleteme6 :
SmoothVectorBundle E' ((ContMDiffMap.snd : C^∞⟮I.prod I', M × M'; I', M'⟯) *ᵖ (TangentSpace I'))
(I.prod I') :=
by infer_instance
set_option linter.unusedVariables false in
/-- The fibers of the one jet-bundle. -/
def OneJetSpace (p : M × M') : Type _ :=
Bundle.ContinuousLinearMap σ
((ContMDiffMap.fst : C^∞⟮I.prod I', M × M'; I, M⟯) *ᵖ (TangentSpace I))
((ContMDiffMap.snd : C^∞⟮I.prod I', M × M'; I', M'⟯) *ᵖ (TangentSpace I')) p
instance (p : M × M') : TopologicalSpace (OneJetSpace I I' p) := by
delta OneJetSpace
infer_instance
instance (p : M × M') : AddCommGroup (OneJetSpace I I' p) := by
delta OneJetSpace
infer_instance
variable {I I'}
-- what is better notation for this?
local notation "FJ¹MM'" => (OneJetSpace I I' : M × M' → Type _)
variable (I I')
instance (p : M × M') : FunLike (OneJetSpace I I' p) (TangentSpace I p.1) (fun _ ↦ TangentSpace I' p.2) where
coe := fun φ ↦ φ.toFun
coe_injective' := fun _ _ h ↦ ContinuousLinearMap.ext (congrFun h)
variable (M M')
-- is empty if the base manifold is empty
/-- The space of one jets of maps between two smooth manifolds.
Defined in terms of `bundle.total_space` to be able to put a suitable topology on it. -/
@[reducible]
def OneJetBundle :=
TotalSpace (E →L[𝕜] E') (OneJetSpace I I' : M × M' → Type _)
variable {I I' M M'}
local notation "J¹MM'" => OneJetBundle I M I' M'
local notation "HJ" => ModelProd (ModelProd H H') (E →L[𝕜] E')
@[ext]
theorem OneJetBundle.ext {x y : J¹MM'} (h : x.1.1 = y.1.1) (h' : x.1.2 = y.1.2) (h'' : x.2 = y.2) :
x = y := by
rcases x with ⟨⟨a, b⟩, c⟩
rcases y with ⟨⟨d, e⟩, f⟩
dsimp only at h h' h''
rw [h, h', h'']
variable (I I' M M')
section OneJetBundleInstances
section
variable {M} (p : M × M')
instance (x : M × M') : Module 𝕜 (FJ¹MM' x) := by
delta OneJetSpace
infer_instance
end
instance : TopologicalSpace J¹MM' := by
delta OneJetSpace OneJetBundle
infer_instance
instance : FiberBundle (E →L[𝕜] E') FJ¹MM' := by
delta OneJetSpace
infer_instance
instance : VectorBundle 𝕜 (E →L[𝕜] E') FJ¹MM' := by
delta OneJetSpace
set_option synthInstance.maxHeartbeats 30000 in
infer_instance
instance : SmoothVectorBundle (E →L[𝕜] E') (OneJetSpace I I' : M × M' → Type _) (I.prod I') := by
delta OneJetSpace
set_option synthInstance.maxHeartbeats 30000 in
infer_instance
instance : ChartedSpace HJ J¹MM' := by
delta OneJetSpace OneJetBundle
infer_instance
instance : SmoothManifoldWithCorners ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) J¹MM' := by
apply Bundle.TotalSpace.smoothManifoldWithCorners
end OneJetBundleInstances
variable {I M I' M' J J'}
/-- The tangent bundle projection on the basis is a continuous map. -/
theorem one_jet_bundle_proj_continuous : Continuous (π (E →L[𝕜] E') FJ¹MM') :=
FiberBundle.continuous_proj (E →L[𝕜] E') FJ¹MM'
-- Porting note: removed next line
-- attribute [simps] ContMDiffMap.fst ContMDiffMap.snd
theorem oneJetBundle_trivializationAt (x₀ x : J¹MM') :
(trivializationAt (E →L[𝕜] E') (OneJetSpace I I') x₀.proj x).2 =
inCoordinates E (TangentSpace I) E' (TangentSpace I') x₀.proj.1 x.proj.1 x₀.proj.2 x.proj.2
x.2 := by
delta OneJetSpace
rw [continuousLinearMap_trivializationAt, Trivialization.continuousLinearMap_apply]
simp only [inTangentCoordinates, inCoordinates]
congr 2
exact
Trivialization.pullback_symmL ContMDiffMap.fst (trivializationAt E (TangentSpace I) x₀.1.1)
x.proj
theorem trivializationAt_one_jet_bundle_source (x₀ : M × M') :
(trivializationAt (E →L[𝕜] E') FJ¹MM' x₀).source =
π (E →L[𝕜] E') FJ¹MM' ⁻¹'
(Prod.fst ⁻¹' (chartAt H x₀.1).source ∩ Prod.snd ⁻¹' (chartAt H' x₀.2).source) :=
rfl
theorem trivializationAt_one_jet_bundle_target (x₀ : M × M') :
(trivializationAt (E →L[𝕜] E') FJ¹MM' x₀).target =
(Prod.fst ⁻¹' (trivializationAt E (TangentSpace I) x₀.1).baseSet ∩
Prod.snd ⁻¹' (trivializationAt E' (TangentSpace I') x₀.2).baseSet) ×ˢ
Set.univ :=
rfl
/-- Computing the value of a chart around `v` at point `v'` in `J¹(M, M')`.
The last component equals the continuous linear map `v'.2`, composed on both sides by an
appropriate coordinate change function. -/
theorem oneJetBundle_chartAt_apply (v v' : OneJetBundle I M I' M') :
chartAt HJ v v' =
((chartAt H v.1.1 v'.1.1, chartAt H' v.1.2 v'.1.2),
inCoordinates E (TangentSpace I) E' (TangentSpace I') v.1.1 v'.1.1 v.1.2 v'.1.2 v'.2) :=
by
ext1
· rfl
rw [FiberBundle.chartedSpace_chartAt_snd]
exact oneJetBundle_trivializationAt v v'
/-- In `J¹(M, M')`, the source of a chart has a nice formula -/
theorem oneJetBundle_chart_source (x₀ : J¹MM') :
(chartAt HJ x₀).source =
π (E →L[𝕜] E') FJ¹MM' ⁻¹' (chartAt (ModelProd H H') x₀.proj).source := by
-- Porting note: was
-- simp only [FiberBundle.chartedSpace_chartAt, trivializationAt_one_jet_bundle_source, mfld_simps]
rw [FiberBundle.chartedSpace_chartAt]
simp_rw [
LocalHomeomorph.trans_toLocalEquiv,
LocalEquiv.trans_source,
LocalHomeomorph.prod_toLocalEquiv,
LocalEquiv.prod_source,
LocalHomeomorph.coe_coe,
Trivialization.coe_coe,
LocalHomeomorph.refl_localEquiv,
LocalEquiv.refl_source,
prodChartedSpace_chartAt,
LocalHomeomorph.prod_toLocalEquiv,
trivializationAt_one_jet_bundle_source,
LocalEquiv.prod_source,
Set.preimage_inter]
simp_rw [prod_univ, ← preimage_inter, ← Set.prod_eq, preimage_preimage, inter_eq_left,
subset_def, mem_preimage]
intro x hx
rwa [Trivialization.coe_fst]
rwa [trivializationAt_one_jet_bundle_source, mem_preimage, ← Set.prod_eq]
attribute [pp_dot] LocalEquiv.target LocalEquiv.symm LocalEquiv.prod
section
section
universe u v w₁ w₂ U
variable {B : Type u} {F : Type v} {E : B → Type w₁} {B' : Type w₂}
[TopologicalSpace B'] [TopologicalSpace (TotalSpace F E)] [TopologicalSpace F]
[TopologicalSpace B] [(_b : B) → Zero (E _b)] {K : Type U} [ContinuousMapClass K B' B]
[(x : B) → TopologicalSpace (E x)] [FiberBundle F E]
lemma trivializationAt_pullBack_baseSet (f : K) (x : B') :
(trivializationAt F ((f : B' → B) *ᵖ E) x).baseSet =
f ⁻¹' (trivializationAt F E (f x)).baseSet :=
rfl
end
section
variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] {E : Type*}
[NormedAddCommGroup E] [NormedSpace 𝕜 E] {E' : Type*} [NormedAddCommGroup E'] [NormedSpace 𝕜 E']
{H : Type*} [TopologicalSpace H] {H' : Type*} [TopologicalSpace H']
{I : ModelWithCorners 𝕜 E H} {I' : ModelWithCorners 𝕜 E' H'} {M : Type*} [TopologicalSpace M]
[ChartedSpace H M] {M' : Type*} [TopologicalSpace M'] [ChartedSpace H' M'] {n : ℕ∞}
@[simp]
lemma ContMDiffMap.coe_fst :
((ContMDiffMap.fst : C^n⟮ModelWithCorners.prod I I', M × M'; I, M⟯) : M × M' → M) = Prod.fst :=
rfl
@[simp]
lemma ContMDiffMap.coe_snd :
((ContMDiffMap.snd : C^n⟮ModelWithCorners.prod I I', M × M'; I', M'⟯) : M × M' → M') = Prod.snd :=
rfl
@[simp]
lemma ContMDiffMap.fst_apply (x : M) (x' : M') :
(ContMDiffMap.fst : C^n⟮ModelWithCorners.prod I I', M × M'; I, M⟯) (x, x') = x := rfl
@[simp]
lemma ContMDiffMap.snd_apply (x : M) (x' : M') :
(ContMDiffMap.snd : C^n⟮ModelWithCorners.prod I I', M × M'; I', M'⟯) (x, x') = x' := rfl
end
attribute [pp_dot] LocalHomeomorph.symm
/-- In `J¹(M, M')`, the target of a chart has a nice formula -/
theorem oneJetBundle_chart_target (x₀ : J¹MM') :
(chartAt HJ x₀).target = Prod.fst ⁻¹' (chartAt (ModelProd H H') x₀.proj).target := by
rw [FiberBundle.chartedSpace_chartAt]
simp only [prodChartedSpace_chartAt,
LocalHomeomorph.trans_toLocalEquiv, LocalHomeomorph.prod_toLocalEquiv,
LocalHomeomorph.refl_localEquiv, LocalEquiv.trans_target, LocalEquiv.prod_target,
LocalEquiv.refl_target]
erw [hom_trivializationAt_target]
simp only [trivializationAt_pullBack_baseSet, TangentBundle.trivializationAt_baseSet]
rcases x₀ with ⟨⟨m, m'⟩, φ⟩
dsimp only
simp only [ContMDiffMap.coe_fst, ContMDiffMap.fst_apply, ContMDiffMap.coe_snd,
ContMDiffMap.snd_apply]
erw [prod_univ, inter_eq_left, prod_univ, LocalEquiv.prod_symm, LocalEquiv.prod_symm]
rw [preimage_preimage, ← Set.prod_eq, LocalEquiv.refl_symm, LocalEquiv.prod_coe,
LocalEquiv.refl_coe]
dsimp only
have : (fun x : ModelProd (ModelProd H H') (E →SL[σ] E') ↦ ((chartAt H m).toLocalEquiv.symm.prod (chartAt H' m').toLocalEquiv.symm) x.1) =
(Prod.map (chartAt H m).symm (chartAt H' m').symm) ∘ Prod.fst := by
ext x <;> rfl
rw [this, preimage_comp, preimage_prod_map_prod]
mono
exact (chartAt H m).target_subset_preimage_source
exact (chartAt H' m').target_subset_preimage_source
section Maps
theorem smooth_one_jet_bundle_proj :
Smooth ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) (I.prod I') (π (E →L[𝕜] E') FJ¹MM') := by
apply smooth_proj _
theorem Smooth.oneJetBundle_proj {f : N → J¹MM'}
(hf : Smooth J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) f) : Smooth J (I.prod I') fun x ↦ (f x).1 :=
smooth_one_jet_bundle_proj.comp hf
theorem SmoothAt.oneJetBundle_proj {f : N → J¹MM'} {x₀ : N}
(hf : SmoothAt J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) f x₀) :
SmoothAt J (I.prod I') (fun x ↦ (f x).1) x₀ :=
(smooth_one_jet_bundle_proj _).comp x₀ hf
/-- The constructor of one_jet_bundle, in case `sigma.mk` will not give the right type. -/
@[simp]
def OneJetBundle.mk (x : M) (y : M') (f : OneJetSpace I I' (x, y)) : J¹MM' :=
⟨(x, y), f⟩
@[simp, mfld_simps]
theorem one_jet_bundle_mk_fst {x : M} {y : M'} {f : OneJetSpace I I' (x, y)} :
(OneJetBundle.mk x y f).1 = (x, y) :=
rfl
@[simp, mfld_simps]
theorem one_jet_bundle_mk_snd {x : M} {y : M'} {f : OneJetSpace I I' (x, y)} :
(OneJetBundle.mk x y f).2 = f :=
rfl
attribute [pp_dot] ModelWithCorners.prod
theorem smoothAt_oneJetBundle {f : N → J¹MM'} {x₀ : N} :
SmoothAt J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) f x₀ ↔
SmoothAt J I (fun x ↦ (f x).1.1) x₀ ∧
SmoothAt J I' (fun x ↦ (f x).1.2) x₀ ∧
SmoothAt J 𝓘(𝕜, E →L[𝕜] E')
(inTangentCoordinates I I' (fun x ↦ (f x).1.1) (fun x ↦ (f x).1.2) (fun x ↦ (f x).2)
x₀) x₀ := by
-- Porting note: next three lines were a single `simp_rw` in Lean 3.
simp_rw [SmoothAt]
rw [Bundle.contMDiffAt_totalSpace]
simp_rw [contMDiffAt_prod_iff, and_assoc,
oneJetBundle_trivializationAt]
rfl
theorem smoothAt_oneJetBundle_mk {f : N → M} {g : N → M'} {ϕ : N → E →L[𝕜] E'} {x₀ : N} :
SmoothAt J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E'))
(fun x ↦ OneJetBundle.mk (f x) (g x) (ϕ x) : N → J¹MM') x₀ ↔
SmoothAt J I f x₀ ∧
SmoothAt J I' g x₀ ∧ SmoothAt J 𝓘(𝕜, E →L[𝕜] E') (inTangentCoordinates I I' f g ϕ x₀) x₀ :=
smoothAt_oneJetBundle
theorem SmoothAt.oneJetBundle_mk {f : N → M} {g : N → M'} {ϕ : N → E →L[𝕜] E'} {x₀ : N}
(hf : SmoothAt J I f x₀) (hg : SmoothAt J I' g x₀)
(hϕ : SmoothAt J 𝓘(𝕜, E →L[𝕜] E') (inTangentCoordinates I I' f g ϕ x₀) x₀) :
SmoothAt J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E'))
(fun x ↦ OneJetBundle.mk (f x) (g x) (ϕ x) : N → J¹MM') x₀ :=
smoothAt_oneJetBundle.mpr ⟨hf, hg, hϕ⟩
variable (I I')
/-- The one-jet extension of a function -/
def oneJetExt (f : M → M') : M → OneJetBundle I M I' M' := fun x ↦
OneJetBundle.mk x (f x) (mfderiv I I' f x)
variable {I I'}
theorem SmoothAt.oneJetExt {f : M → M'} {x : M} (hf : SmoothAt I I' f x) :
SmoothAt I ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) (oneJetExt I I' f) x :=
smoothAt_id.oneJetBundle_mk hf (hf.mfderiv_const le_rfl)
theorem Smooth.oneJetExt {f : M → M'} (hf : Smooth I I' f) :
Smooth I ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) (oneJetExt I I' f) :=
fun x ↦ (hf x).smoothAt.oneJetExt
theorem ContinuousAt.inTangentCoordinates_comp {f : N → M} {g : N → M'} {h : N → N'}
{ϕ' : N → E' →L[𝕜] F'} {ϕ : N → E →L[𝕜] E'} {x₀ : N} (hg : ContinuousAt g x₀) :
inTangentCoordinates I J' f h (fun x ↦ ϕ' x ∘L ϕ x) x₀ =ᶠ[𝓝 x₀] fun x ↦
inTangentCoordinates I' J' g h ϕ' x₀ x ∘L inTangentCoordinates I I' f g ϕ x₀ x := by
refine'
eventually_of_mem
(hg.preimage_mem_nhds <|
(achart H' (g x₀)).1.open_source.mem_nhds <| mem_achart_source H' (g x₀))
fun x hx ↦ _
ext v
beta_reduce
simp_rw [inTangentCoordinates, inCoordinates,
ContinuousLinearMap.comp_apply]
rw [Trivialization.symmL_continuousLinearMapAt]
rfl
exact hx
theorem SmoothAt.clm_comp_inTangentCoordinates {f : N → M} {g : N → M'} {h : N → N'}
{ϕ' : N → E' →L[𝕜] F'} {ϕ : N → E →L[𝕜] E'} {n : N} (hg : ContinuousAt g n)
(hϕ' : SmoothAt J 𝓘(𝕜, E' →L[𝕜] F') (inTangentCoordinates I' J' g h ϕ' n) n)
(hϕ : SmoothAt J 𝓘(𝕜, E →L[𝕜] E') (inTangentCoordinates I I' f g ϕ n) n) :
SmoothAt J 𝓘(𝕜, E →L[𝕜] F') (inTangentCoordinates I J' f h (fun n ↦ ϕ' n ∘L ϕ n) n) n :=
(hϕ'.clm_comp hϕ).congr_of_eventuallyEq hg.inTangentCoordinates_comp
variable (I')
theorem SmoothAt.one_jet_comp {f1 : N' → M} (f2 : N' → M') {f3 : N' → N} {x₀ : N'}
{h : ∀ x : N', OneJetSpace I' J (f2 x, f3 x)} {g : ∀ x : N', OneJetSpace I I' (f1 x, f2 x)}
(hh : SmoothAt J' ((I'.prod J).prod 𝓘(𝕜, E' →L[𝕜] F)) (fun x ↦ OneJetBundle.mk _ _ (h x)) x₀)
(hg : SmoothAt J' ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) (fun x ↦ OneJetBundle.mk _ _ (g x)) x₀) :
SmoothAt J' ((I.prod J).prod 𝓘(𝕜, E →L[𝕜] F))
(fun x ↦ OneJetBundle.mk (f1 x) (f3 x) (h x ∘L g x) : N' → OneJetBundle I M J N) x₀ :=
by
rw [smoothAt_oneJetBundle_mk] at hh hg ⊢
exact ⟨hg.1, hh.2.1, hh.2.2.clm_comp_inTangentCoordinates hg.2.1.continuousAt hg.2.2⟩
theorem Smooth.one_jet_comp {f1 : N' → M} (f2 : N' → M') {f3 : N' → N}
{h : ∀ x : N', OneJetSpace I' J (f2 x, f3 x)} {g : ∀ x : N', OneJetSpace I I' (f1 x, f2 x)}
(hh : Smooth J' ((I'.prod J).prod 𝓘(𝕜, E' →L[𝕜] F)) fun x ↦ OneJetBundle.mk _ _ (h x))
(hg : Smooth J' ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) fun x ↦ OneJetBundle.mk _ _ (g x)) :
Smooth J' ((I.prod J).prod 𝓘(𝕜, E →L[𝕜] F))
(fun x ↦ OneJetBundle.mk (f1 x) (f3 x) (h x ∘L g x) : N' → OneJetBundle I M J N) :=
fun x₀ ↦ hh.smoothAt.one_jet_comp I' f2 (hg x₀)
variable {I'}
attribute [pp_dot] ContinuousLinearMap.comp
open Trivialization in
theorem Smooth.one_jet_add {f : N → M} {g : N → M'} {ϕ ϕ' : ∀ x : N, OneJetSpace I I' (f x, g x)}
(hϕ : Smooth J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) fun x ↦ OneJetBundle.mk _ _ (ϕ x))
(hϕ' : Smooth J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) fun x ↦ OneJetBundle.mk _ _ (ϕ' x)) :
Smooth J ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) fun x ↦
OneJetBundle.mk (f x) (g x) (ϕ x + ϕ' x) := by
intro x
specialize hϕ x
specialize hϕ' x
rw [← SmoothAt, smoothAt_oneJetBundle_mk] at hϕ hϕ' ⊢
refine ⟨hϕ.1, hϕ.2.1, ?_⟩
-- Porting note: next 5 lines should be
-- `simp_rw [inTangentCoordinates, inCoordinates, ContinuousLinearMap.add_comp,
-- ContinuousLinearMap.comp_add]
simp_rw [inTangentCoordinates, inCoordinates]
conv =>
enter [3, x, 2]
rw [ContinuousLinearMap.add_comp]
simp only [ContinuousLinearMap.comp_add]
exact hϕ.2.2.add hϕ'.2.2
variable (I' J')
/-- A useful definition to define maps between two one_jet_bundles. -/
protected def OneJetBundle.map (f : M → N) (g : M' → N')
(Dfinv : ∀ x : M, TangentSpace J (f x) →L[𝕜] TangentSpace I x) :
OneJetBundle I M I' M' → OneJetBundle J N J' N' := fun p ↦
OneJetBundle.mk (f p.1.1) (g p.1.2) ((mfderiv I' J' g p.1.2 ∘L p.2) ∘L Dfinv p.1.1)
variable {I' J'}
theorem OneJetBundle.map_map {f₂ : N → M₂} {f : M → N} {g₂ : N' → M₃} {g : M' → N'}
{Dfinv : ∀ x : M, TangentSpace J (f x) →L[𝕜] TangentSpace I x}
{Df₂inv : ∀ x : N, TangentSpace I₂ (f₂ x) →L[𝕜] TangentSpace J x} {x : J¹MM'}
(hg₂ : MDifferentiableAt J' I₃ g₂ (g x.1.2)) (hg : MDifferentiableAt I' J' g x.1.2) :
OneJetBundle.map J' I₃ f₂ g₂ Df₂inv (OneJetBundle.map I' J' f g Dfinv x) =
OneJetBundle.map I' I₃ (f₂ ∘ f) (g₂ ∘ g) (fun x ↦ Dfinv x ∘L Df₂inv (f x)) x := by
ext
· rfl
· rfl
· dsimp only [OneJetBundle.map, OneJetBundle.mk]
simp_rw [← ContinuousLinearMap.comp_assoc, mfderiv_comp x.1.2 hg₂ hg]
theorem OneJetBundle.map_id (x : J¹MM') :
OneJetBundle.map I' I' id id (fun x ↦ ContinuousLinearMap.id 𝕜 (TangentSpace I x)) x = x := by
-- Porting note: was `ext _` in Lean 3
refine OneJetBundle.ext rfl rfl ?_
dsimp only [OneJetBundle.map, OneJetBundle.mk]
simp_rw [mfderiv_id]
-- note: rw fails since we have to unfold the type `bundle.pullback`
erw [ContinuousLinearMap.id_comp]
theorem SmoothAt.oneJetBundle_map {f : M'' → M → N} {g : M'' → M' → N'} {x₀ : M''}
{Dfinv : ∀ (z : M'') (x : M), TangentSpace J (f z x) →L[𝕜] TangentSpace I x} {k : M'' → J¹MM'}
(hf : SmoothAt (I''.prod I) J f.uncurry (x₀, (k x₀).1.1))
(hg : SmoothAt (I''.prod I') J' g.uncurry (x₀, (k x₀).1.2))
(hDfinv :
SmoothAt I'' 𝓘(𝕜, F →L[𝕜] E)
(inTangentCoordinates J I (fun x ↦ f x (k x).1.1) (fun x ↦ (k x).1.1)
(fun x ↦ Dfinv x (k x).1.1) x₀)
x₀)
(hk : SmoothAt I'' ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) k x₀) :
SmoothAt I'' ((J.prod J').prod 𝓘(𝕜, F →L[𝕜] F'))
(fun z ↦ OneJetBundle.map I' J' (f z) (g z) (Dfinv z) (k z)) x₀ :=
by
rw [smoothAt_oneJetBundle] at hk
refine' SmoothAt.one_jet_comp _ _ _ _
refine' SmoothAt.one_jet_comp _ _ _ _
· refine' hk.2.1.oneJetBundle_mk (hg.comp x₀ (smoothAt_id.prod_mk hk.2.1)) _
exact ContMDiffAt.mfderiv g (fun x ↦ (k x).1.2) hg hk.2.1 le_rfl
· exact hk.1.oneJetBundle_mk hk.2.1 hk.2.2
exact (hf.comp x₀ (smoothAt_id.prod_mk hk.1)).oneJetBundle_mk hk.1 hDfinv
/-- A useful definition to define maps between two one_jet_bundles. -/
def mapLeft (f : M → N) (Dfinv : ∀ x : M, TangentSpace J (f x) →L[𝕜] TangentSpace I x) :
J¹MM' → OneJetBundle J N I' M' := fun p ↦ OneJetBundle.mk (f p.1.1) p.1.2 (p.2 ∘L Dfinv p.1.1)
theorem mapLeft_eq_map (f : M → N) (Dfinv : ∀ x : M, TangentSpace J (f x) →L[𝕜] TangentSpace I x) :
mapLeft f Dfinv = OneJetBundle.map I' I' f (id : M' → M') Dfinv :=
by
ext x; rfl; rfl; dsimp only [OneJetBundle.map, mapLeft, one_jet_bundle_mk_snd]
simp_rw [mfderiv_id, ContinuousLinearMap.id_comp]
theorem SmoothAt.mapLeft {f : N' → M → N} {x₀ : N'}
{Dfinv : ∀ (z : N') (x : M), TangentSpace J (f z x) →L[𝕜] TangentSpace I x} {g : N' → J¹MM'}
(hf : SmoothAt (J'.prod I) J f.uncurry (x₀, (g x₀).1.1))
(hDfinv :
SmoothAt J' 𝓘(𝕜, F →L[𝕜] E)
(inTangentCoordinates J I (fun x ↦ f x (g x).1.1) (fun x ↦ (g x).1.1)
(fun x ↦ Dfinv x (g x).1.1) x₀)
x₀)
(hg : SmoothAt J' ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E')) g x₀) :
SmoothAt J' ((J.prod I').prod 𝓘(𝕜, F →L[𝕜] E')) (fun z ↦ mapLeft (f z) (Dfinv z) (g z)) x₀ :=
by simp_rw [mapLeft_eq_map]; exact hf.oneJetBundle_map smoothAt_snd hDfinv hg
/-- The projection `J¹(E × P, F) → J¹(E, F)`. Not actually used. -/
def bundleFst : OneJetBundle (J.prod I) (N × M) I' M' → OneJetBundle J N I' M' :=
mapLeft Prod.fst fun _ ↦ ContinuousLinearMap.inl 𝕜 F E
/-- The projection `J¹(P × E, F) → J¹(E, F)`. -/
def bundleSnd : OneJetBundle (J.prod I) (N × M) I' M' → J¹MM' :=
mapLeft Prod.snd fun x ↦ mfderiv I (J.prod I) (fun y ↦ (x.1, y)) x.2
theorem bundleSnd_eq (x : OneJetBundle (J.prod I) (N × M) I' M') :
bundleSnd x = (mapLeft Prod.snd (fun _ ↦ ContinuousLinearMap.inr 𝕜 F E) x : J¹MM') := by
simp_rw [bundleSnd, mfderiv_prod_right]; rfl
theorem smooth_bundleSnd :
Smooth (((J.prod I).prod I').prod 𝓘(𝕜, F × E →L[𝕜] E')) ((I.prod I').prod 𝓘(𝕜, E →L[𝕜] E'))
(bundleSnd : OneJetBundle (J.prod I) (N × M) I' M' → J¹MM') := by
intro x₀
refine' SmoothAt.mapLeft _ _ smoothAt_id
· exact smoothAt_snd.snd
have :
ContMDiffAt (((J.prod I).prod I').prod 𝓘(𝕜, F × E →L[𝕜] E')) 𝓘(𝕜, E →L[𝕜] F × E) ∞
(inTangentCoordinates I (J.prod I) _ _ _ x₀) x₀ :=
ContMDiffAt.mfderiv (fun (x : OneJetBundle (J.prod I) (N × M) I' M') (y : M) ↦ (x.1.1.1, y))
(fun x : OneJetBundle (J.prod I) (N × M) I' M' ↦ x.1.1.2) ?_ ?_ le_top
exact this
· exact (smooth_one_jet_bundle_proj.fst.fst.prod_map smooth_id).smoothAt
-- slow
· exact smooth_one_jet_bundle_proj.fst.snd.smoothAt
-- slow
end Maps
-- move
theorem localEquiv_eq_equiv {α β} {f : LocalEquiv α β} {e : α ≃ β} (h1 : ∀ x, f x = e x)
(h2 : f.source = univ) (h3 : f.target = univ) : f = e.toLocalEquiv := by
refine' LocalEquiv.ext h1 (fun y ↦ _) h2
conv_rhs => rw [← f.right_inv ((Set.ext_iff.mp h3 y).mpr (mem_univ y)), h1]
exact (e.left_inv _).symm
local notation "𝓜" => ModelProd (ModelProd H H') (E →L[𝕜] E')
/-- In the one_jet bundle to the model space, the charts are just the canonical identification
between a product type and a bundle total space type, a.k.a. ` bundle.total_space.to_prod`. -/
@[simp, mfld_simps]
theorem oneJetBundle_model_space_chartAt (p : OneJetBundle I H I' H') :
(chartAt 𝓜 p).toLocalEquiv = (Bundle.TotalSpace.toProd (H × H') (E →L[𝕜] E')).toLocalEquiv :=
by
apply localEquiv_eq_equiv
· intro x
rw [LocalHomeomorph.coe_coe, oneJetBundle_chartAt_apply p x,
inCoordinates_tangent_bundle_core_model_space]
ext <;> rfl
· simp_rw [oneJetBundle_chart_source, prodChartedSpace_chartAt, chartAt_self_eq,
LocalHomeomorph.refl_prod_refl]
rfl
· simp_rw [oneJetBundle_chart_target, prodChartedSpace_chartAt, chartAt_self_eq,
LocalHomeomorph.refl_prod_refl]
rfl
@[simp, mfld_simps]
theorem oneJetBundle_model_space_coe_chartAt (p : OneJetBundle I H I' H') :
⇑(chartAt 𝓜 p) = Bundle.TotalSpace.toProd (H × H') (E →L[𝕜] E') := by
ext q e
· rfl
· rfl
· rw [oneJetBundle_chartAt_apply, TotalSpace.toProd_apply,
inCoordinates_tangent_bundle_core_model_space]
@[simp, mfld_simps]
theorem oneJetBundle_model_space_coe_chartAt_symm (p : OneJetBundle I H I' H') :
((chartAt 𝓜 p).symm : 𝓜 → OneJetBundle I H I' H') =
(Bundle.TotalSpace.toProd (H × H') (E →L[𝕜] E')).symm := by
ext x
· rfl
· rfl
· rw [← LocalHomeomorph.coe_coe_symm, oneJetBundle_model_space_chartAt]
rfl
variable (I I')
-- note: this proof works for all vector bundles where we have proven
-- `∀ p, chartAt _ p = f.to_local_equiv`
/-- The canonical identification between the one_jet bundle to the model space and the product,
as a homeomorphism -/
def oneJetBundleModelSpaceHomeomorph : OneJetBundle I H I' H' ≃ₜ 𝓜 :=
{ Bundle.TotalSpace.toProd (H × H') (E →L[𝕜] E') with
continuous_toFun := by
let p : OneJetBundle I H I' H' := ⟨(I.symm (0 : E), I'.symm (0 : E')), 0⟩
have : Continuous (chartAt 𝓜 p) :=
by
rw [continuous_iff_continuousOn_univ]
convert LocalHomeomorph.continuousOn _
simp only [mfld_simps]
simpa only [mfld_simps] using this
continuous_invFun := by
let p : OneJetBundle I H I' H' := ⟨(I.symm (0 : E), I'.symm (0 : E')), 0⟩
have : Continuous (chartAt 𝓜 p).symm :=
by
rw [continuous_iff_continuousOn_univ]
convert LocalHomeomorph.continuousOn _
simp only [mfld_simps]
simpa only [mfld_simps] using this }
-- unused
@[simp, mfld_simps]
theorem oneJetBundleModelSpaceHomeomorph_coe :
(oneJetBundleModelSpaceHomeomorph I I' : OneJetBundle I H I' H' → 𝓜) =
Bundle.TotalSpace.toProd (H × H') (E →L[𝕜] E') :=
rfl
-- unused
@[simp, mfld_simps]
theorem oneJetBundleModelSpaceHomeomorph_coe_symm :
((oneJetBundleModelSpaceHomeomorph I I').symm : 𝓜 → OneJetBundle I H I' H') =
(Bundle.TotalSpace.toProd (H × H') (E →L[𝕜] E')).symm :=
rfl