Syntax at a glance¶
A one-page quick reference: the most-used notations, with the mathematics on the left and the JacoPy code on the right. All entries assume the setup block below. Each group links to the guide page with the full table, the argument types and further variants.
Setup¶
import jacopy
from jacopy.core import Degree, Scalar, Closed
from jacopy.central.tangent import tangent_engine, d, SN
from jacopy.central.algebroid import algebroid, algebroid_engine, jacobiator, d_E, lie_E
from jacopy.central.objects import sharp, flat
from jacopy.proof.result import prove as prove_result
from jacopy.proof import ExplicitAssumption
import jacopy.central.tangent as tg
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)
P2, Q2 = jacopy.p_vectors("P Q", degree=2)
pi = jacopy.bivector("pi")
(T,) = jacopy.tensors("T", upper=1, lower=2)
g = jacopy.metric("g")
nabla = jacopy.connection()
e = jacopy.frame("e")
E = algebroid("E", declare=("leibniz",))
u, v, w = E.sections("u v w")
(mu,) = jacopy.forms("mu", degree=1, bundle=E.bundle)
eng = tangent_engine(registry=reg)
engE = algebroid_engine(E, registry=reg)
engX = tangent_engine(registry=reg) # an engine for extra assumptions
chain = jacopy.show_equal(jacopy.lie_derivative(X)(f), X(f), registry=reg, engine=eng)
res = prove_result(eng, jacopy.lie_derivative(X)(Y), jacopy.lie_bracket(X, Y), registry=reg)
Objects¶
See Defining objects.
Mathematics |
JacoPy |
|---|---|
property registry |
|
functions \(f_1,f_2\in C^\infty(M)\) |
|
real constant \(\lambda\) |
|
rational number \(\tfrac12\) |
|
vector fields \(X,Y,Z\) |
|
1-forms \(\alpha,\beta\) |
|
form of symbolic degree \(p\) |
|
2-vectors \(P,Q\) |
|
\((1,2)\)-tensor \(T\) |
|
metric \(g\) |
|
inverse metric \(g^{-1}\) |
|
\(TM\) with \(\dim M=3\) |
|
connection \(\nabla\) |
|
frame \(e_a\) and coframe \(e^a\) |
|
Algebraic operations¶
See Algebraic operations.
Mathematics |
JacoPy |
|---|---|
\(fX+Y\) |
|
\(\alpha\wedge\beta\) |
|
\(\langle\alpha,X\rangle=\alpha(X)\) |
|
\(\omega(X,Y)\) |
|
\((\alpha\wedge\beta)(X,Y)\) |
|
\(X(f)\) |
|
\(g(X,Y)\) |
|
\(T(\alpha,X,Y)\) |
|
\(P(\alpha,\beta)\) |
|
\(g^\flat(X)\) |
|
\(\pi^\sharp(\alpha)\) |
|
\(\star_g\omega\) |
|
\(\langle e^a,e_b\rangle\) |
|
normal form of \(\omega(Y,X)+\omega(X,Y)\) |
|
Differential operators and brackets on \(TM\)¶
See Cartan calculus.
Mathematics |
JacoPy |
|---|---|
\(d\) (operator) |
|
\(df\), \(d\omega\) |
|
\(\iota_X\omega\) |
|
\(\mathcal L_X\omega\) |
|
\(\mathcal L_Xf\) |
|
\([X,Y]\) |
|
\([X,Y](f)\) |
|
\([P,Q]_{SN}\) |
|
\([\pi,\pi]_{SN}\) |
|
\(\nabla_XY\) |
|
\(\nabla_XT\) |
|
\((d\alpha)(X,Y)\) |
|
Algebroids¶
See Algebroids.
Mathematics |
JacoPy |
|---|---|
Leibniz algebroid \((E,\rho,[\cdot,\cdot]_E)\) |
|
algebroid with no axioms |
|
sections \(u,v,w\) |
|
\(\rho(u)\) |
|
\(\rho(u)(f)\) |
|
\([u,v]_E\) |
|
\(Df\) |
|
\(d_E\mu\) |
|
\(\mathcal L^E_uv\) |
|
\(J^E(u,v,w)\) |
|
Declaring axioms¶
See Defining objects and Algebroids.
Mathematics |
JacoPy |
|---|---|
algebroid axioms |
|
add an axiom later |
|
\(d\omega=0\) (recorded) |
|
is \(\omega\) closed? |
|
a single assumption \([X,Y]=0\) |
|
Asking for a proof¶
See Running proofs.
Mathematics |
JacoPy |
|---|---|
prove \(\mathcal L_Xf=X(f)\) |
|
shortest proof |
|
status and assumptions |
|
proof on an algebroid |
|
normal form |
|
ready-made theorem \(\mathcal L_Xf=\iota_Xdf+d\iota_Xf\) |
|
ready-made theorem \((d\,df)(X,Y)=0\) |
|
Reading the result¶
Mathematics |
JacoPy |
|---|---|
number of steps |
|
rule of the first step |
|
status ( |
|
assumptions used |
|
residual of an open proof |
|
summary |
|
Display and LaTeX¶
See Output.
Mathematics |
JacoPy |
|---|---|
LaTeX string |
|
plain text |
|
print a proof |
|
Jupyter display |
|
Packages¶
See Poisson, Drinfel’d doubles, generalized geometry, metric-affine geometry and your own structure. The imports for this group are:
from jacopy.packages.poisson import poisson_structure, koszul_bracket, prove_poisson_jacobi
from jacopy.packages.drinfeld import dorfman_double
from jacopy.packages.generalized import courant_bracket_std
import jacopy.packages.metric_affine as MA
from jacopy.research import SectionType
(k,) = jacopy.functions("k", registry=reg)
Ps = poisson_structure("pi", declare=("poisson",))
gm = MA.metric("g")
TT = SectionType.generalized_tangent()
Mathematics |
JacoPy |
|---|---|
Poisson structure with \([\pi,\pi]_{SN}=0\) |
|
\(\{f,h\}\) |
|
Hamiltonian vector field \(X_f\) |
|
\([\alpha,\beta]_\pi\) |
|
Jacobi identity for \(\{\cdot,\cdot\}\) |
|
Dorfman bracket \([X+\alpha,Y+\beta]\) |
|
Courant bracket on \(TM\oplus T^*M\) |
|
torsion \(T(X,Y)\) |
|
curvature \(R(X,Y)Z\) |
|
non-metricity \(Q(X,Y,Z)\) |
|
Koszul formula |
|
section \(X\oplus\alpha\) of \(TM\oplus T^*M\) |
|