Lorentz.ContrMod.stdBasis_decomp
theoremverifiedformalizationimported Lean
Decomposition of a contravariant Lorentz vector into the standard basis.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Lorentz Lorentz.ContrMod in open Matrix Module MatrixGroups Complex in variable {d : ℕ} in lemma Lorentz.ContrMod.stdBasis_decomp (v : ContrMod d) : v = ∑ i, v.toFin1dℝ i • stdBasis i
- Formalizes
- Physlib, `Lorentz.ContrMod.stdBasis_decomp`
- Lean proof
- By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.Lorentz.ContrMod.stdBasis_decomp← Lorentz.ContrMod.stdBasis_decomp (Physlib/Relativity/Tensors/RealTensor/Vector/Pre/Modules.lean:121): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 12
- Lorentz.ContrMod.stdBasis_toFin1dℝEquiv_apply_sameLorentz.ContrMod.stdBasis_toFin1dℝEquiv_apply_same
- Lorentz.ContrModThe module for contravariant (up-index) real Lorentz vectors.
- Lorentz.ContrMod.instAddCommGroupThe instance of
AddCommGrouponContrModdefined via its equivalence withFin 1 ⊕ Fin d → ℝ. - Lorentz.ContrMod.toFin1dℝThe underlying element of
Fin 1 ⊕ Fin d → ℝof a element inContrModdefined through the linear equivalencetoFin1dℝEquiv. - Lorentz.ContrMod.stdBasis_inl_apply_inrLorentz.ContrMod.stdBasis_inl_apply_inr
- Lorentz.ContrMod.stdBasisThe standard basis of
ContrModindexed byFin 1 ⊕ Fin d. - Lorentz.ContrMod.val_addLorentz.ContrMod.val_add
- Lorentz.ContrMod.stdBasis_apply_sameLorentz.ContrMod.stdBasis_apply_same
- Lorentz.ContrMod.stdBasis_toFin1dℝEquiv_apply_neLorentz.ContrMod.stdBasis_toFin1dℝEquiv_apply_ne
- Lorentz.ContrMod.toFin1dℝEquivThe linear equivalence between
ContrModand(Fin 1 ⊕ Fin d → ℝ). - Lorentz.ContrMod.instModuleRealThe instance of
ModuleonContrModdefined via its equivalence withFin 1 ⊕ Fin d → ℝ. - Lorentz.ContrMod.val_smulLorentz.ContrMod.val_smul
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Lorentz Lorentz.ContrMod inopen Matrix Module MatrixGroups Complex invariable {d : ℕ} in/-- Decomposition of a contravariant Lorentz vector into the standard basis. -/lemma Lorentz.ContrMod.stdBasis_decomp (v : ContrMod d) : v = ∑ i, v.toFin1dℝ i • stdBasis i := by apply toFin1dℝEquiv.injective simp only [map_sum, _root_.map_smul] funext μ rw [Fintype.sum_apply μ fun c => toFin1dℝEquiv v c • toFin1dℝEquiv (stdBasis c)] change _ = ∑ x : Fin 1 ⊕ Fin d, toFin1dℝEquiv v x • (toFin1dℝEquiv (stdBasis x) μ) rw [Finset.sum_eq_single_of_mem μ (Finset.mem_univ μ)] · simp only [stdBasis_toFin1dℝEquiv_apply_same, smul_eq_mul, mul_one] · intro b _ hbμ rw [stdBasis_toFin1dℝEquiv_apply_ne hbμ] simp only [smul_eq_mul, mul_zero]