Cartan calculus on the tangent bundle¶
This page shows how to write the differential operators of the Cartan calculus on \(TM\): the exterior derivative \(d\), the interior product \(\iota_X\), the Lie derivative \(\mathcal L_X\), the Lie bracket, the Schouten–Nijenhuis bracket, derived brackets, and the covariant derivative together with frame (anholonomy) coefficients. Torsion and curvature are not part of this layer; they are in the metric-affine package.
Setup¶
import jacopy
from jacopy.core import Degree, Scalar
from jacopy.central.objects.frame import FrameIndex
reg = jacopy.PropertyRegistry()
f, h = jacopy.functions("f h", registry=reg)
X, Y, Z = jacopy.vector_fields("X Y Z")
alpha, beta = jacopy.forms("alpha beta", degree=1)
(omega,) = jacopy.forms("omega", degree=2)
p = Degree.var("p"); (eta,) = jacopy.forms("eta", degree=p)
P, Q = jacopy.p_vectors("P Q", degree=2)
pi = jacopy.bivector("pi")
(T,) = jacopy.tensors("T", upper=1, lower=2)
nabla = jacopy.connection()
e = jacopy.frame("e"); ce = jacopy.coframe("e")
ea, eb = e.fields("a b")
from jacopy.central.tangent import (d, L, SN, anholonomy_coefficient, multivector_degree,
CARTAN_TM, cartan_calculus)
from jacopy.central.objects import contract, contract_all, tilde_interior, tilde_contract
from jacopy.central.objects.multivector_interior import MultivectorInterior
from jacopy.algebra.lie_bracket_vf import lie_bracket_vf
from jacopy.brackets.derived import derived_bracket
d(...) from jacopy.central.tangent is a shortcut function: d(omega) builds the
expression \(d\omega\). The operator \(d\) itself is jacopy.exterior_d(), and functions
that expect an operator (such as jacopy.Act, diagnose or compose) need the operator.
Exterior derivative and interior product¶
Mathematics |
In code |
Arguments |
Result |
LaTeX |
Note |
|---|---|---|---|---|---|
calculus of \((TM,\mathrm{id},[\cdot,\cdot])\) |
|
|
The same object as |
||
\(d\) (operator) |
|
operator of degree \(+1\) |
|
||
\(df\) |
|
f: function |
1-form |
|
Same as |
\(d\omega\) |
|
omega: \(p\)-form |
\((p+1)\)-form |
|
|
\(d\eta\), \(\lvert\eta\rvert=p\) |
|
form of symbolic degree |
\((p+1)\)-form |
|
|
\(\langle df,X\rangle=X(f)\) |
|
function |
|
The engine reduces it to \(X(f)\) |
|
\(\iota_X\) (operator) |
|
X: vector field |
operator of degree \(-1\) |
|
|
\(\iota_X\omega\) |
|
X: vector field; omega: \(p\)-form |
\((p-1)\)-form |
|
Construct the operator, then apply it |
\(\iota_X\omega\) (single call) |
|
X; omega |
\((p-1)\)-form |
|
|
\(\iota_Y\iota_X\omega=\omega(X,Y,\dots)\) |
|
form; vectors, from the first slot |
form or function |
|
|
\((\iota_X\omega)(Y)=\omega(X,Y)\) |
|
function |
|
The engine reduces it to \(\omega(X,Y)\) |
See jacopy.exterior_d() and jacopy.interior().
Lie derivative and Lie bracket¶
Mathematics |
In code |
Arguments |
Result |
LaTeX |
Note |
|---|---|---|---|---|---|
\(\mathcal L_X\) (operator) |
|
X: vector field |
operator of degree 0 |
|
|
\(\mathcal L_Xf\) |
|
X; f: function |
function (\(=X(f)\)) |
|
|
\(\mathcal L_XY\) |
|
X, Y: vector fields |
vector field (\(=[X,Y]\)) |
|
|
\(\mathcal L_X\omega\) |
|
X; omega: \(p\)-form |
\(p\)-form |
|
|
\(\mathcal L_X\omega\) (short) |
|
X; any tensor |
same type |
|
|
\(\mathcal L_XT\) |
|
X; T: \((q,r)\)-tensor |
\((q,r)\)-tensor |
|
Tensorial Lie derivative law under evaluation |
\(\mathcal L_XP=[X,P]_{SN}\) |
|
X; P: \(p\)-vector |
\(p\)-vector |
|
|
\([X,Y]\) |
|
X, Y: vector fields |
vector field |
|
|
\([X,Y](f)\) |
|
bracket; function |
function |
|
The engine expands it to \(X(Yf)-Y(Xf)\) |
\([X,Y]\) (low level) |
|
vector fields |
vector field |
|
The same node as |
\([X,fY]=X(f)Y+f[X,Y]\) |
|
vector field |
|
Closes through the action on a function |
Schouten–Nijenhuis bracket¶
Mathematics |
In code |
Arguments |
Result |
LaTeX |
Note |
|---|---|---|---|---|---|
\([P,Q]_{SN}\) |
|
P, Q: multivectors (or functions) |
\((p+q-1)\)-vector |
|
|
\([P,Q]_{SN}\) (bracket object) |
|
same |
same |
|
|
expansion of \([X,Y\wedge Z]_{SN}\) |
|
bracket node; registry |
expression |
|
Expansion by definition |
\([X,f]_{SN}=X(f)\) |
|
X; f |
function |
|
|
multivector degree |
|
multivector |
int or degree |
|
|
\([a,b]+(-1)^{s(a)s(b)}[b,a]\) |
|
a, b; registry |
expression |
|
Antisymmetry obstruction |
cyclic Jacobi sum |
|
a, b, c; registry |
expression |
||
\([a,bc]-[a,b]c\mp b[a,c]\) |
|
a, b, c; registry |
expression |
||
shifted degree \(s(x)=\lvert x\rvert-1\) |
|
x; registry |
degree |
|
|
swap sign |
|
a, b; registry |
sign |
|
|
Jacobi and Leibniz term signs |
|
signs |
|
||
bracket flags |
|
booleans |
|
See jacopy.sn_bracket().
Derived bracket¶
The derived bracket \(\{a,b\}_Q=[[a,Q],b]\) is built from a base bracket and a generator.
Mathematics |
In code |
Arguments |
Result |
LaTeX |
Note |
|---|---|---|---|---|---|
\(\{\alpha,\beta\}_\pi=[[\alpha,\pi],\beta]_{SN}\) |
|
base bracket; generator; two arguments |
expression |
|
|
expansion by definition |
|
expression |
|
||
\([[a,Q],b]\) without expanding the base |
|
a, b |
expression |
|
|
the condition \([Q,Q]=0\) |
|
vanishing condition |
|
||
does the condition hold? |
|
registry |
bool |
|
|
Jacobi obstruction \([Q,Q]\) |
|
expression |
|
||
\(\lvert Q\rvert\) |
|
registry |
degree |
|
Covariant derivative, frames, anholonomy¶
Mathematics |
In code |
Arguments |
Result |
LaTeX |
Note |
|---|---|---|---|---|---|
\(\nabla_XY\) |
|
X: vector field; Y: tensor |
type of Y |
|
|
\(\nabla_XT\) |
|
connection; X; T |
type of T |
|
|
\(\nabla_Xf=X(f)\) |
|
X; f |
function |
|
|
\(\nabla_X(fY)\) |
|
vector field |
|
Expanded by the Leibniz rule |
|
\([e_a,e_b]\) |
|
frame fields |
vector field |
|
|
\(\gamma^c_{ab}\) |
|
frame; upper, lower, lower index |
function |
|
Gives \(-\gamma^c_{ba}\) if \(a>b\) and 0 if \(a=b\) |
\(\langle e^c,[e_a,e_b]\rangle=\gamma^c_{ab}\) |
|
function |
|
The engine reduces it to \(\gamma^c_{ab}\) |
Other interior products¶
Mathematics |
In code |
Arguments |
Result |
LaTeX |
Note |
|---|---|---|---|---|---|
\(\tilde\iota_\alpha\pi\) |
|
alpha: 1-form; pi: multivector |
multivector |
|
|
\(\tilde\iota_\alpha\pi\) (single call) |
|
multivector |
|
||
\(\iota_P\omega\) |
|
P: \(p\)-vector; omega: \(q\)-form |
\((q-p)\)-form |
|
Expanded by optional rules (see Automatic rules) |
Checking the meaning of an entry¶
Each “the engine reduces it to” note above can be confirmed with jacopy.show_equal()
and the tangent engine (see Running proofs):
from jacopy.central.tangent import tangent_engine
eng = tangent_engine(registry=reg)
for lhs, rhs in [
(jacopy.pairing(d(f), X), X(f)),
(jacopy.pairing(jacopy.interior(X)(omega), Y), omega(X, Y)),
(jacopy.lie_derivative(X)(Y), jacopy.lie_bracket(X, Y)),
(jacopy.lie_bracket(X, f*Y)(h), X(f)*Y(h) + f*jacopy.lie_bracket(X, Y)(h)),
(nabla(X, f), X(f)),
(jacopy.pairing(ce.field("c"), jacopy.lie_bracket(ea, eb)), anholonomy_coefficient(e, "c", "a", "b")),
]:
chain = jacopy.show_equal(lhs, rhs, registry=reg, engine=eng)
print(jacopy.to_ascii(lhs), "closes in", len(chain.steps), "steps")
⟨d(f), X⟩ closes in 2 steps
⟨ι_X(omega), Y⟩ closes in 2 steps
L_X(Y) closes in 2 steps
[X,(f * Y)]_VF(h) closes in 6 steps
∇_X(f) closes in 2 steps
⟨e^c, [e_a,e_b]_VF⟩ closes in 2 steps