All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Eq sum eval T

TensorSpecies.Tensor.eq_sum_evalT

Plain-language statement

Reconstruction of a tensor from the evaluations of its last index: every t : Tensor S c is the sum over basis indices i of the evaluation evalT (Fin.last n) i t tensored with the basis covector basis ![c (Fin.last n)] (single.symm i), with the appended index permuted back into the last slot.

Exact Lean statement

lemma eq_sum_evalT {n : ℕ} {c : Fin (n + 1) → C} (t : Tensor S c) :
    t = ∑ i, permT id (IsReindexing.append_succ_last c) (prodT (evalT (Fin.last n) i t)
      (basis ![c (Fin.last n)] (ComponentIdx.single.symm i)))

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma eq_sum_evalT {n : } {c : Fin (n + 1)  C} (t : Tensor S c) :    t = ∑ i, permT id (IsReindexing.append_succ_last c) (prodT (evalT (Fin.last n) i t)      (basis ![c (Fin.last n)] (ComponentIdx.single.symm i)))   := by  induction' t using Tensor.induction_on_basis with b a t h t1 t2 h1 h2  · conv_rhs => enter [2, i]; rw [evalT_basis]    generalize_proofs h1 h2 h3    rw [Finset.sum_eq_single (b (Fin.last n))]    · simp only [Nat.succ_eq_add_one, Nat.reduceAdd, ↓reduceIte]      rw [prodT_basis, basis_apply, permT_pure]      congr      funext i      simp only [Pure.basisVector, Pure.permP_basisVector]      congr      refine Fin.addCases (fun j => ?_) (fun j => ?_) i      · simp only [id_eq, ComponentIdx.prod_symm_castAdd, Function.comp_apply]        erw [basisIdxCongr_apply_apply]        exact ComponentIdx.congr_right b _ _ (by rw [Fin.succAbove_last]; rfl)      · simp only [id_eq, ComponentIdx.prod_symm_natAdd, ComponentIdx.single_symm_apply,          basisIdxCongr_apply_apply]        erw [basisIdxCongr_apply_apply]        exact ComponentIdx.congr_right _ _ _ (by fin_cases j; rfl)    · intro j h1 h1      rw [if_neg (by grind)]      simp    · simp  · simp  · conv_lhs => rw [h]    simp [Finset.smul_sum]  · simp [Finset.sum_add_distrib]    grind
Project
Physlib
License
Apache-2.0
Commit
dd43e9e65791
Source
Physlib/Relativity/Tensors/Evaluation.lean:363-392

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