Succ Above of neq zero
TensorSpecies.Tensor.IsReindexing.succAbove_of_neq_zero
Plain-language statement
Given a reindexing of c by c1 via σ for which the index i is not sent to 0, removing the i-th entry of c1 and the (σ i)-th entry of c yields a reindexing of c ∘ (σ i).succAbove by c1 ∘ i.succAbove via the map (σ i).pred.predAbove ∘ σ ∘ i.succAbove.
Exact Lean statement
lemma succAbove_of_neq_zero {n n1 : ℕ} {c : Fin (n + 1) → C} {c1 : Fin (n1 + 1) → C}
{σ : Fin (n1 + 1) → Fin (n + 1)} (i : Fin (n1 + 1))
(h : IsReindexing c c1 σ) (hi : σ i ≠ 0) :
IsReindexing (c ∘ (σ i).succAbove) (c1 ∘ i.succAbove)
((Fin.pred (σ i) hi).predAbove ∘ σ ∘ i.succAbove)Formal artifact
Lean source
lemma succAbove_of_neq_zero {n n1 : ℕ} {c : Fin (n + 1) → C} {c1 : Fin (n1 + 1) → C} {σ : Fin (n1 + 1) → Fin (n + 1)} (i : Fin (n1 + 1)) (h : IsReindexing c c1 σ) (hi : σ i ≠ 0) : IsReindexing (c ∘ (σ i).succAbove) (c1 ∘ i.succAbove) ((Fin.pred (σ i) hi).predAbove ∘ σ ∘ i.succAbove) := by have hpr : σ i = ((σ i).pred hi).succ := (Fin.succ_pred _ _).symm have hne : ∀ x, σ (i.succAbove x) ≠ σ i := fun x heq => Fin.succAbove_ne i x (h.injective heq) refine ⟨⟨?_, ?_⟩, ?_⟩ · intro x1 x2 h2 simp only [Function.comp_apply] at h2 apply i.succAbove_right_injective (h.injective ?_) suffices h' : ((σ i).pred hi).succ.succAbove (((σ i).pred hi).predAbove (σ (i.succAbove x1))) = ((σ i).pred hi).succ.succAbove (((σ i).pred hi).predAbove (σ (i.succAbove x2))) by rwa [Fin.succ_succAbove_predAbove (hpr ▸ hne x1), Fin.succ_succAbove_predAbove (hpr ▸ hne x2)] at h' simpa using h2 · intro k simp only [Function.comp_apply] suffices h' : ∃ a, σ (i.succAbove a) = (σ i).succAbove k by conv => enter [1, a]; rw [← ((σ i).pred hi).succ.succAbove_right_injective.eq_iff] obtain ⟨a, h'⟩ := h' exact ⟨a, by rw [Fin.succ_succAbove_predAbove (hpr ▸ hne a), ← hpr]; exact h'⟩ obtain ⟨j, hj⟩ := h.surjective ((σ i).succAbove k) simp only [← hj, h.injective.eq_iff, Fin.exists_succAbove_eq_iff, ne_eq] rintro rfl simp at hj · intro x simp only [h.preserve_color, Function.comp_apply] congr 1 conv_lhs => enter[1]; rw [hpr] exact Fin.succ_succAbove_predAbove (hpr ▸ hne x)- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/Relativity/Tensors/Reindexing.lean:318-350
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
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.
Source project: Physlib
Person-level attribution pending.
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.
Source project: Physlib
Person-level attribution pending.
Deriv Within mean Energy Beta eq neg variance
CanonicalEnsemble.derivWithin_meanEnergy_Beta_eq_neg_variance
Plain-language statement
(∂U/∂β) = -Var(E) for finite systems.
Source project: Physlib
Person-level attribution pending.