Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions PhysLean/Relativity/Tensors/RealTensor/ToComplex.lean
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,29 @@ informal_lemma prodT_toComplex where
deps := [``prodT]
tag := "7RKFF"

/-- `τ` commutes with `colorToComplex` on the Lorentz `up/down` colors. -/
@[simp]
lemma tau_colorToComplex (x : realLorentzTensor.Color) :
(complexLorentzTensor).τ (colorToComplex x) = colorToComplex ((realLorentzTensor).τ x) := by
cases x <;> rfl

/-- The map `toComplex` commutes with contrT. -/
informal_lemma contrT_toComplex where
deps := [``contrT]
tag := "7RKFR"
@[sorryful]
lemma contrT_toComplex {n : ℕ}
{c : Fin (n + 1 + 1) → realLorentzTensor.Color} {i j : Fin (n + 1 + 1)}
(h : i ≠ j ∧ (realLorentzTensor).τ (c i) = c j) (t : ℝT(3, c)) :
toComplex (c := c ∘ Pure.dropPairEmb i j) (contrT (S := realLorentzTensor) n i j h t)
=
contrT (S := complexLorentzTensor) n i j (by
-- если у simp достаточно информации, то это закрывается:
simpa [Function.comp_apply] using
And.intro h.1 (by
-- τ-совместимость
simpa [tau_colorToComplex] using congrArg colorToComplex h.2
)
)
(toComplex (c := c) t) := by
sorry

/-- The map `toComplex` commutes with evalT. -/
informal_lemma evalT_toComplex where
Expand Down