Multi-indices #
i. Overview #
This module defines the basic type of multi-indices used to index iterated partial derivatives.
A multi-index on d source coordinates is represented as a structure with an underlying function
Fin d → ℕ, together with the first basic operations needed later in the local Classical Field
Theory development.
ii. Key results #
Physlib.MultiIndex: multi-indices ondcoordinates.MultiIndex.order: the order|I|of a multi-index.MultiIndex.increment: increment a single coordinate of a multi-index.
iii. Table of contents #
- A. The basic type of multi-indices
- A.1. Basic operations
- A.2. Basic lemmas
iv. References #
A. The basic type of multi-indices #
instance
Physlib.MultiIndex.instCoeFunForallFinNat
{d : ℕ}
:
CoeFun (MultiIndex d) fun (x : MultiIndex d) => Fin d → ℕ
Equations
Equations
- Physlib.MultiIndex.instAdd = { add := fun (I J : Physlib.MultiIndex d) => { toFun := I.toFun + J.toFun } }
A.1. Basic operations #
The order |I| of a multi-index I, defined as the sum of its components.
Instances For
Increment the i-th coordinate of a multi-index by one.
Instances For
A.2. Basic lemmas #
theorem
Physlib.MultiIndex.ext
{d : ℕ}
{I J : MultiIndex d}
(h : ∀ (i : Fin d), I.toFun i = J.toFun i)
:
@[simp]
@[simp]
theorem
Physlib.MultiIndex.increment_apply_ne
{d : ℕ}
(I : MultiIndex d)
{i j : Fin d}
(h : j ≠ i)
:
@[simp]