introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.25 kB

The normalized projection associated with a rectangular matrix.

18
def chartMatrixProjection (M : Matrix (Fin k) (Fin l) R) :
    ((Fin k β†’ R) Γ— (Fin l β†’ R)) β†’β‚—[R] (Fin k β†’ R) := LinearMap.id.coprod M.mulVecLin

The new first block after an ambient coordinate permutation.

22
def chartOverlapMatrix (M : Matrix (Fin k) (Fin l) R) (Ο„ : Equiv.Perm (Fin k βŠ• Fin l)) :
    Matrix (Fin k) (Fin k) R :=
body Β· 2 lines
  LinearMap.toMatrix' ((chartMatrixProjection M).comp
    ((CoordinatePermutations.chartCoordinatePermutation R Ο„).toLinearMap.comp (LinearMap.inl R (Fin k β†’ R) (Fin l β†’ R))))
27
theorem chartMatrixProjection_naturality (Ο† : R β†’+* B) (M : Matrix (Fin k) (Fin l) R)
    (x : (Fin k β†’ R) Γ— (Fin l β†’ R)) :
    HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap Ο† k (chartMatrixProjection M x) =
      chartMatrixProjection (M.map Ο†) (HilbertConstruction.Matrix.ChartBaseChange.chartPairMap Ο† k l x) := by
proof Β· 5 lines
  ext i
  change Ο† (x.1 i + (M.mulVec x.2) i) = Ο† (x.1 i) +
    ((M.map Ο†).mulVec (fun j => Ο† (x.2 j))) i
  rw [map_add, RingHom.map_mulVec]
  rfl
37
theorem chartVectorMap_single (Ο† : R β†’+* B) (n : β„•) (j : Fin n) :
    HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap Ο† n (Pi.single j 1) = Pi.single j 1 := by
proof Β· 3 lines
  ext i
  simp [HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap, Pi.single_apply, apply_ite]
  split_ifs <;> simp_all

Overlap matrices are compatible with every map of coefficient rings.

44
theorem chartOverlapMatrix_naturality (Ο† : R β†’+* B) (M : Matrix (Fin k) (Fin l) R)
    (Ο„ : Equiv.Perm (Fin k βŠ• Fin l)) :
    (chartOverlapMatrix M Ο„).map Ο† = chartOverlapMatrix (M.map Ο†) Ο„ := by
proof Β· 9 lines
  ext i j
  have hi : HilbertConstruction.Matrix.ChartBaseChange.chartPairMap Ο† k l (Pi.single j 1, 0) = (Pi.single j 1, 0) := by
    apply Prod.ext
    Β· exact chartVectorMap_single Ο† k j
    Β· exact map_zero (HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap Ο† l)
  have hp := chartMatrixProjection_naturality Ο† M
    (CoordinatePermutations.chartCoordinatePermutation R Ο„ (Pi.single j 1, 0))
  rw [CoordinatePermutations.chartCoordinatePermutation_naturality, hi] at hp
  exact congrFun hp i

The determinant defining an overlap also commutes with scalar change.

58
theorem chartOverlapDet_naturality (Ο† : R β†’+* B) (M : Matrix (Fin k) (Fin l) R)
    (Ο„ : Equiv.Perm (Fin k βŠ• Fin l)) :
    Ο† (chartOverlapMatrix M Ο„).det = (chartOverlapMatrix (M.map Ο†) Ο„).det := by
proof Β· 1 line
  exact (Ο†.map_det _).trans (congrArg Matrix.det (chartOverlapMatrix_naturality Ο† M Ο„))