PhysLean/HepLean/SpaceTime/LorentzTensor/EinsteinNotation/Lemmas.lean

42 lines
1.4 KiB
Text
Raw Normal View History

2024-08-19 06:52:55 -04:00
/-
Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Tooby-Smith
-/
import HepLean.SpaceTime.LorentzTensor.EinsteinNotation.IndexNotation
/-!
# Lemmas regarding Einstein tensors
2024-08-20 09:27:51 -04:00
This file is currently a stub.
2024-08-19 06:52:55 -04:00
-/
namespace einsteinTensor
open einsteinTensorColor
open IndexNotation IndexString
open TensorStructure TensorIndex
variable {R : Type} [CommSemiring R] {n m : }
/-
lemma swap_eq_transpose (T : (einsteinTensor R n).Tensor ![Unit.unit, Unit.unit]) :
2024-08-19 06:52:55 -04:00
(T|"ᵢ₁ᵢ₂") ≈ ((toMatrix.symm (toMatrix T).transpose)|"ᵢ₂ᵢ₁") := by
refine Rel.of_withDual_empty ?_ ?_ ?_ ?_
2024-08-19 06:52:55 -04:00
· apply And.intro
simp only [toTensorColor_eq, indexNotation_eq_color, ColorIndexList.contr, fromIndexStringColor,
mkDualMap, decidableEq_eq_color]
decide
simp only [toTensorColor_eq, indexNotation_eq_color, fromIndexStringColor, mkDualMap,
ColorIndexList.colorMap', decidableEq_eq_color, ColorIndexList.contr]
decide
· simp only [toTensorColor_eq, indexNotation_eq_color, fromIndexStringColor, mkDualMap,
decidableEq_eq_color]
decide
· simp only [toTensorColor_eq, indexNotation_eq_color, fromIndexStringColor, mkDualMap,
ColorIndexList.colorMap', decidableEq_eq_color]
2024-08-19 06:52:55 -04:00
decide
simp [fromIndexStringColor, mkDualMap]-/
2024-08-19 06:52:55 -04:00
end einsteinTensor