All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Contr T eval T

TensorSpecies.Tensor.contrT_evalT

Plain-language statement

Commuting evaluation with contraction. Evaluating index k and then contracting the pair i j equals contracting the corresponding pair k.succAbove i, k.succAbove j and then evaluating the residual index, up to the identity reindexing IsReindexing.succAbove_succSuccAbove_comm.

Exact Lean statement

lemma contrT_evalT {n : ℕ} {c : Fin (n + 1 + 1 + 1) → C}
    (k : Fin (n + 1 + 1 + 1)) (i j : Fin (n + 1 + 1)) (φ : basisIdx (c k))
    (hij : i ≠ j ∧ S.τ ((c ∘ k.succAbove) i) = (c ∘ k.succAbove) j) (t : Tensor S c) :
    contrT n i j hij (evalT k φ t) =
    permT id (.succAbove_succSuccAbove_comm k i j hij.1)
      (evalT (Fin.predPredAbove (k.succAbove i) (k.succAbove j) (by simp [hij.1]) k (by simp))
        (basisIdxCongr (by simp) φ)
        (contrT (n + 1) (k.succAbove i) (k.succAbove j) ⟨by simp [hij.1], hij.2⟩ t))

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma contrT_evalT {n : } {c : Fin (n + 1 + 1 + 1)  C}    (k : Fin (n + 1 + 1 + 1)) (i j : Fin (n + 1 + 1)) (φ : basisIdx (c k))    (hij : i  j  S.τ ((c ∘ k.succAbove) i) = (c ∘ k.succAbove) j) (t : Tensor S c) :    contrT n i j hij (evalT k φ t) =    permT id (.succAbove_succSuccAbove_comm k i j hij.1)      (evalT (Fin.predPredAbove (k.succAbove i) (k.succAbove j) (by simp [hij.1]) k (by simp))        (basisIdxCongr (by simp) φ)        (contrT (n + 1) (k.succAbove i) (k.succAbove j) by simp [hij.1], hij.2 t)) := by  induction' t using Tensor.induction_on_basis with b a t hb t1 t2 hb1 hb2  · have hs : Pure.contrPCoeff i j hij          (Pure.basisVector (c ∘ k.succAbove) (fun m => b (k.succAbove m))) =        Pure.contrPCoeff (k.succAbove i) (k.succAbove j) by simp [hij.1], hij.2          (Pure.basisVector c b) := rfl    conv_lhs => rw [evalT_basis]    conv_rhs => rw [contrT_basis, map_smul, evalT_basis]    rw [apply_ite (contrT n i j hij), map_zero, contrT_basis, hs, map_smul,      apply_ite (permT id (IsReindexing.succAbove_succSuccAbove_comm k i j hij.1)), map_zero,      permT_basis, smul_ite, smul_zero]    have hidx :  m, (k.succAbove i).succSuccAbove (k.succAbove j)        (((k.succAbove i).predPredAbove (k.succAbove j) (by simp [hij.1]) k (by simp)).succAbove m)        = k.succAbove (i.succSuccAbove j m) := by      intro m      apply Fin.val_injective      simp only [Fin.succSuccAbove, Fin.succAbove, Fin.predPredAbove, Fin.lt_def,        Fin.val_castSucc, Fin.val_succ, apply_ite Fin.val, apply_dite Fin.val]      grind (splits := 60)    have hk : (k.succAbove i).succSuccAbove (k.succAbove j)        ((k.succAbove i).predPredAbove (k.succAbove j) (by simp [hij.1]) k (by simp)) = k := by simp    have hcond : (ComponentIdx.dropPair (k.succAbove i) (k.succAbove j) b          ((k.succAbove i).predPredAbove (k.succAbove j) (by simp [hij.1]) k (by simp)) =          basisIdxCongr (by simp) φ) = (b k = φ) := by      simp only [ComponentIdx.dropPair]      rw [ComponentIdx.congr_right b _ k hk, eq_iff_iff]      exact (basisIdxCongr _).apply_eq_iff_eq    simp only [hcond]    split_ifs with hbk    · congr 1      congr 1      funext m      simp only [ComponentIdx.dropPair, id_eq]      exact ComponentIdx.congr_right b _ _ (hidx m).symm    · rfl  · simp  · simp only [map_smul, hb]  · simp only [map_add, hb1, hb2]
Project
Physlib
License
Apache-2.0
Commit
dd43e9e65791
Source
Physlib/Relativity/Tensors/Evaluation.lean:206-250

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Adiabatic relation log

adiabatic_relation_log

Plain-language statement

Adiabatic relation in logarithmic form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then c * log (Ua/Ub) + log (Va/Vb) = 0.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Adiabatic relation Ua Ub Va Vb

adiabatic_relation_UaUbVaVb

Plain-language statement

Adiabatic relation in product form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then (Ua/Ub)^c * (Va/Vb) = 1.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record