Skip to content

Commit

Permalink
Merge pull request #375 from HEPLean/JTS/Docs
Browse files Browse the repository at this point in the history
refactor: Major refactor of Elab for tensors
  • Loading branch information
jstoobysmith authored Mar 5, 2025
2 parents db803e9 + 215a54c commit acd549e
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 315 deletions.
4 changes: 4 additions & 0 deletions PhysLean/Relativity/Tensors/TensorSpecies/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ def liftTensor {n : ℕ} {c : Fin n → S.C} {E : Type} [AddCommMonoid E] [Modul
(S.F.obj (OverColor.mk c) →ₗ[S.k] E) :=
PiTensorProduct.lift

/-- The number of indices `n` from a tensor. -/
@[nolint unusedArguments]
def numIndices {S : TensorSpecies} {n : ℕ} {c : Fin n → S.C} (_ : S.F.obj (OverColor.mk c)) : ℕ := n

end TensorSpecies

end
Loading

0 comments on commit acd549e

Please sign in to comment.