File size: 1,955 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/-
Derived from Formal Conjectures:
  HodgeConjecture/Mathlib/LinearAlgebra/Dual/Defs.lean
The upstream Formal Conjectures repository is licensed under Apache 2.0.
This file has been modified.
-/
import Mathlib.LinearAlgebra.Dual.Defs

/-! # Dual Defs -/

namespace OAI.LinearAlgebra.Foundations.DualDefs

/-- The dual of the zero map is zero. -/
@[simp]
theorem LinearMap.dualMap_zero {R M₁ Mβ‚‚ : Type*} [CommSemiring R] [AddCommMonoid M₁] [Module R M₁]
    [AddCommMonoid Mβ‚‚] [Module R Mβ‚‚] : (0 : M₁ β†’β‚—[R] Mβ‚‚).dualMap = 0 := by
  rw [LinearMap.dualMap_def, map_zero]

/-- The dual of a sum of maps is the sum of the duals. -/
theorem LinearMap.dualMap_add {R M₁ Mβ‚‚ : Type*} [CommRing R] [AddCommGroup M₁] [Module R M₁]
    [AddCommGroup Mβ‚‚] [Module R Mβ‚‚] (f g : M₁ β†’β‚—[R] Mβ‚‚) :
    (f + g).dualMap = f.dualMap + g.dualMap := by
  rw [LinearMap.dualMap_def, LinearMap.dualMap_def, LinearMap.dualMap_def, map_add]

/-- The dual of a difference of maps is the difference of the duals. -/
theorem LinearMap.dualMap_sub {R M₁ Mβ‚‚ : Type*} [CommRing R] [AddCommGroup M₁] [Module R M₁]
    [AddCommGroup Mβ‚‚] [Module R Mβ‚‚] (f g : M₁ β†’β‚—[R] Mβ‚‚) :
    (f - g).dualMap = f.dualMap - g.dualMap := by
  rw [LinearMap.dualMap_def, LinearMap.dualMap_def, LinearMap.dualMap_def, map_sub]

/-- The dual of a split injection is surjective: extend a functional by precomposing with the
retraction. Over a field use `LinearMap.dualMap_surjective_of_injective`, which needs no
splitting. -/
theorem LinearMap.dualMap_surjective_of_comp_eq_id {R M₁ Mβ‚‚ : Type*} [CommSemiring R]
    [AddCommMonoid M₁] [Module R M₁] [AddCommMonoid Mβ‚‚] [Module R Mβ‚‚]
    {f : M₁ β†’β‚—[R] Mβ‚‚} {g : Mβ‚‚ β†’β‚—[R] M₁} (h : g.comp f = LinearMap.id) :
    Function.Surjective f.dualMap :=
  fun Ο† => βŸ¨Ο†.comp g, LinearMap.ext fun x => congrArg Ο† (LinearMap.congr_fun h x)⟩

end OAI.LinearAlgebra.Foundations.DualDefs