Mathematical content table

This page collects the mathematical content of each of the 186 Python files under jacopy/ in a single table. It is written for readers who know the mathematics but do not read code: the answer to “where is \(X\) defined, where is it proved?” is found here as a file path.

Note

This table describes the repository at commit 9a11e9b. The file descriptions were written for commit 8b46a5d; between 8b46a5d and 9a11e9b no file under jacopy/ was added, removed or renamed (63 files were modified). Every name in the “Key items” column was checked to still occur in its file at 9a11e9b. Line references and numbers in the text may have drifted; the code is authoritative.

How to read

There are two ways in:

  1. By folder (“what is in this folder?”). Each folder section starts with a summary paragraph, followed by a “Where to look” box that links the most frequent questions directly to a file, and then by one table row for each file in the folder.

  2. From the concept index (“where is the thing I am looking for?”). The concept index lists the concepts alphabetically, giving for each concept a one-line mathematical definition and the full paths of the files in which it occurs, linked to the folder section.

All tables have the same columns:

Column

Meaning

File

Full path relative to the repository root

Mathematical content

What the file does mathematically (1-2 sentences)

Key items → mathematical counterpart

Class/function name in the code → the corresponding mathematical object or identity

Concepts

Labels in the concept index

Source

Citation of a paper/equation (abbreviations below); “—” if none

Type

mathematics (the main content is mathematics), partial (infrastructure carrying a mathematical contract), infrastructure (re-exporting, formatting, assembly; no mathematics)

Reading notes

  • Two notions of degree. JacoPy has two separate gradings. Operator degree (degree_of): \(|d|=1\), \(|\iota_X|=-1\), \(|\mathcal L_X|=0\), a vector field (as a derivation) 0. Exterior degree (exterior_degree): function 0, \(p\)-form \(p\), \(p\)-vector \(p\), vector field 1. Each row states which one is meant. \(|a|\) is the degree of \(a\).

  • Koszul sign. When two elements of degrees \(|a|\), \(|b|\) are interchanged, the sign \((-1)^{|a||b|}\) appears.

  • Conventions fixed in the code.

    • Wedge determinant convention: \((\alpha\wedge\beta)(X,Y)=\alpha(X)\beta(Y)-\alpha(Y)\beta(X)\) (no \(1/p!\)).

    • \(d\) is defined by the Palais formula, without a combinatorial prefactor.

    • \(\iota_X\) puts \(X\) into the first slot.

    • (Anti)symmetrization \(\mathrm{Sym}/\mathrm{Alt}\) is normalized by \(1/k!\).

  • General principle (central). Every object is defined over a vector bundle \(E\); taking \(E=TM\), \(\rho=\mathrm{id}\), \([\cdot,\cdot]_E=[\cdot,\cdot]_{\mathrm{Lie}}\), the algebroid version reduces to the ordinary version.

  • *Definition / *Declaration / prove_*.

    • A *Definition class is a rewrite rule (left-hand side → right-hand side): it applies a definition or a linearity property that follows directly from a definition. Some are “THEOREM-classified”: they use a proved theorem as a rule.

    • A *Declaration class is an axiom explicitly declared by the user (e.g. \([\pi,\pi]_{SN}=0\), the fundamental identity, \(d\omega=0\), \(d_\theta R=0\)); none is assumed silently. “Under declaration” = closes only once the corresponding declaration is registered; “undeclared” = no additional axiom is needed.

    • A prove_* function is a theorem builder: it reduces both sides to the same normal form with rules coming from the definitions and the declared axioms, and returns a step-by-step proof chain. The proofs are symbolic and instance-level (generic sections, concrete \(p\)).

  • “(according to the docstring)” marker: the claim rests only on the file’s docstring and was not traced separately in the code.

  • Source column. In the packages (packages/), the citations were taken from the files’ docstrings. In the central/ rows, the bracketed citations in the content text ([MC …], [B …], etc.) were collected. In the core layers, the source column is “—” (citations, if any, are in the content text). Equation numbers were not re-checked against the papers on this page; full references are in the bibliography.

Source abbreviations (APA 7)

  • MC: Dereli, T., & Doğan, K. (2020). Metric-connection geometries on pre-Leibniz algebroids (arXiv:2006.05957).

  • ADM: Dereli, T., & Doğan, K. (2023). ‘Anti-commutable’ local pre-Leibniz algebroids and admissible connections. J. Geom. Phys., 186, 104752.

  • B: Çatal-Özer, A., Dereli, T., & Doğan, K. (2022). Pre-metric-Bourbaki algebroids: Cartan calculus for M-theory (arXiv:2210.00548).

  • DD: Çatal-Özer, A., Doğan, K., & Yetişmişoğlu, C. (2024). Drinfel’d double of bialgebroids for string and M theories. JHEP, 2024(7), 030 (arXiv:2312.06584).

  • TW: Çatal-Özer, A., Doğan, K., & Yetişmişoğlu, C. (2025). Drinfel’d doubles, twists and all that… JHEP, 2025(1), 192 (arXiv:2409.11973).

  • U: Uchino, K. (2002). Remarks on the definition of a Courant algebroid (arXiv:math/0204010).

  • LWX: Liu, Z.-J., Weinstein, A., & Xu, P. (1997). Manin triples for Lie bialgebroids. J. Differential Geom., 45, 547–574.

  • Roy: Roytenberg, D. (1999). Courant algebroids, derived brackets and even symplectic supermanifolds (PhD thesis; arXiv:math/9910078).

  • GM: Grabowski, J., & Marmo, G. (2001). Non-antisymmetric versions of Nambu-Poisson and algebroid brackets. J. Phys. A, 34.

  • Šev: Ševera, P. (2017). Letters to Alan Weinstein about Courant algebroids (arXiv:1707.00265).

  • AMSW (Watamura): Asakawa, T., Muraki, H., Sasa, S., & Watamura, S. (2015). Poisson-generalized geometry and R-flux. IJMPA, 30 (arXiv:1408.2649). Equation numbers cited from it have not been verified.

  • Kosmann-Schwarzbach (2004). Derived brackets (bibliography.py; some files mark the year as “1996 — AMBIGUOUS”).

  • E6 paper (reference to be verified): a source referred to in the code as “E6 paper” whose bibliographic data has not yet been identified; the numbers (4.10)–(4.15) refer to it, not to TW, and have not been verified.

Layer order

core → algebra / algorithms / brackets → central → packages → research → proof → display; oracle is an independent numerical tester (it re-implements the engine’s definitions in coordinates and does not use the engine). A lower layer has no knowledge of the layers above it: core nodes are inert (they apply no signs and no axioms); the rules live in the algorithms/ and central/ layers, and the geometry packages under packages/.

Folders

Section

Files

mathematics

partial

infrastructure

core

15

10

3

2

algebra

5

4

0

1

algorithms

12

9

1

2

brackets

3

2

0

1

central (root)

1

0

0

1

central/objects

17

13

3

1

central/calculus

9

6

1

2

central/tangent

10

7

0

3

central/algebroid

11

8

0

3

packages (root)

1

0

0

1

packages/metric_affine

20

13

3

4

packages/poisson

9

6

1

2

packages/drinfeld

11

10

0

1

packages/generalized

19

16

1

2

research

9

4

2

3

proof

16

3

10

3

display

5

0

0

5

oracle

11

7

0

4

root files

2

0

0

2

Total

186

jacopy/core/

This folder contains the carrier structure of the symbolic mathematics. The nodes of the expression tree live here: sum, (noncommutative) product, negation, power, rational number, \(\wedge\), \(\otimes\), Hodge \(\star\), the duality pairing \(\langle\alpha,X\rangle\), multilinear evaluation \(\omega(Y_1,\dots,Y_p)\), the indexed sum \(\Sigma_d\), and the symmetrization/antisymmetrization operations. Alongside these are the symbolic degree algebra as polynomials with \(\mathbb Z\) coefficients, the registry that attaches properties such as “scalar”, “graded”, “graded-antisymmetric”, “closed form”, and “Poisson” to objects, and pattern matching (wildcards). The nodes are deliberately inert: sign rules, the Leibniz rule, and the axioms are applied not here but in the algorithms/ and central/ layers.

Tip

Where to look

  • Where is the \(\wedge\) node defined? → core/wedge.py

  • Evaluation \(\omega(Y_1,\dots,Y_p)\) and the alternating property? → core/multi_eval.py

  • The pairing \(\langle\alpha,X\rangle\)? → core/pairing.py

  • Symbolic degree and the parity of the Koszul sign? → core/symbolic_degree.py (Degree.parity)

  • Declarations “x is a scalar”, “π is Poisson”, “ω is closed”? → core/properties.py + core/registry.py

  • \(\sum_a\) (sum over a frame index)? → core/indexed_sum.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/core/__init__.py

No mathematics. Re-exports the core classes.

—

—

—

infrastructure

jacopy/core/expr.py

The foundation of the expression tree: the free, noncommutative sum/product algebra over \(\mathbb Q\). Sums are flattened associatively and zeros are dropped. The product is associative; the order of the factors is preserved, 0 is absorbing, 1 is the unit.

Expr → abstract expression (immutable tree)
Symbol → named variable
Integer, Rational → \(\mathbb Z\), \(\mathbb Q\) constants (\(p/q\) in lowest terms)
Sum → n-ary sum (order preserved, commutativity rule not applied)
Product → n-ary noncommutative product. Used both for scalar multiplication \(f\cdot g\) and for operator composition \(D_1\circ D_2\).
Neg → \(-x\) (the sign is a separate node)
Power → \(b^e\) (not evaluated)
substitute_atom → substitution \(x\mapsto t\)

scalar multiplication, linearity, normal form/simplification, expression tree

—

mathematics

jacopy/core/symbolic_degree.py

The algebra of the grading. Degrees are elements of the ring \(\mathbb Z[\,\lvert\alpha\rvert,\lvert\beta\rvert,\dots]\) over named degree variables. Since the Koszul sign \((-1)^{d}\) depends only on \(d \bmod 2\), the parity can be determined even for a symbolic degree. For example \(2\lvert\alpha\rvert\lvert\beta\rvert\) is always even.

Degree → commutative polynomial with \(\mathbb Z\) coefficients (\(+,-,\times\))
Degree.const(n), Degree.var(ad) → constant degree / degree variable
Degree.parity → \(d \bmod 2\). A monomial with even coefficient contributes 0. None if it cannot be determined.
as_degree → converting an int to a Degree

graded algebra, Koszul sign

—

mathematics

jacopy/core/properties.py

Mathematical properties attached to expressions, and their provenance (axiom or derived). Concepts defined here by contract: ℝ-constant scalar, graded element, (graded) symmetry/antisymmetry, closed form, non-degenerate form, Poisson bivector, and Koszul commutativity.

Scalar → ℝ-constant. Not a smooth function. Commutes with every ℝ-linear operator and produces no Koszul sign.
Graded(degree) → \(\lvert x\rvert\)
Symmetric → \(B(a,b)=B(b,a)\)
Antisymmetric → \(B(a,b)=-B(b,a)\)
GradedAntisymmetric → \(B(a,b)=-(-1)^{\lvert a\rvert\lvert b\rvert}B(b,a)\)
Closed → \(d\omega=0\)
NonDegenerate → \(\iota_{(\cdot)}\omega\): VF → 1-form injective
Poisson → \([\pi,\pi]_{SN}=0\)
AntiCommuting → \(ab=-ba\) (ungraded)
GradedCommutative → \(ab=(-1)^{\lvert a\rvert\lvert b\rvert}ba\)
Provenance.AXIOM/DERIVED, ProofRef → whether the property was declared or derived
scalar_contract_clash → contradictory declarations such as “Scalar + Graded(k≠0)” are rejected

assumption/declaration, graded algebra, Koszul sign, differential form, Poisson structure, Schouten–Nijenhuis bracket

—

mathematics

jacopy/core/registry.py

Holds the expression ↔ property links. Lookup order: exact expression → class (MRO) → predicate. Scopes and the axiom whitelist restrict a proof to a given set of axioms. Every answer the registry gives can be recorded as a hypothesis of the proof.

PropertyRegistry.declare / declare_for_class / declare_for_predicate → declarations such as “x is a scalar”, “all elements of this class have degree 1”
get → property query
axioms(allowed) → working only with the permitted axiom kinds (“custom” axiom mode)
scope → hypothetical (retracted) declaration
track_reads → record of the answers the proof read from the registry

assumption/declaration

—

partial

jacopy/core/equality.py

Three notions of equality for expressions: structural (\(==\)), α-equivalence (bijective renaming of wildcard names; the dummy index of Σ is renamed capture-free), and comparison of the top-level sum as a multiset.

structural_equal → syntactic equality
alpha_equal → equality up to renaming of bound variables / pattern variables
sum_bag_equal → unordered comparison of the terms of a \(\sum\)

normal form/simplification, rewrite rule

—

partial

jacopy/core/wedge.py

The exterior product node \(\alpha_1\wedge\dots\wedge\alpha_p\). Its mathematical laws are in the docstring: graded antisymmetry \(\alpha\wedge\beta=(-1)^{\lvert\alpha\rvert\lvert\beta\rvert}\beta\wedge\alpha\) and \(\lvert\alpha\wedge\beta\rvert=\lvert\alpha\rvert+\lvert\beta\rvert\). The constructor only flattens associatively, absorbs 0, and drops 1. Reordering and signs are in the algorithms/ layer.

Wedge → \(\wedge\) (graded-antisymmetric, separate from Product)
Wedge.make, wedge → associative \(\wedge\), 0/1 unit rules
Docstring: \((\alpha\wedge\beta)(U,V)=\alpha(U)\beta(V)-\alpha(V)\beta(U)\) (determinant convention, no \(1/p!\); the axiom is in central/)

wedge product, differential form, graded algebra, Koszul sign

—

mathematics

jacopy/core/tensor_product.py

Tensor product \(a_1\otimes\dots\otimes a_n\): noncommutative and without symmetry; degrees and \((q,r)\) types add up.

TensorProduct → \(\otimes\) (associative, noncommutative)
tensor_product → constructor

tensor

—

mathematics

jacopy/core/hodge.py

The Hodge star \(\star:\Lambda^p\to\Lambda^{n-p}\) with respect to a metric. Since the degree map \(\lvert\star\omega\rvert=n-\lvert\omega\rvert\) is not linear, it is modeled as a separate node rather than as an operator application (Act). The dimension \(n\) may be symbolic.

HodgeStar(arg, dim, metric) → \(\star_g\omega\)
hodge_star → constructor
The content of the Hodge star (e.g. \(\star\star=\pm1\)) is not here; only the structure (according to the docstring the metric comes from the central layer)

Hodge ⋆, metric, differential form

—

mathematics

jacopy/core/pairing.py

The duality pairing \(\langle\alpha,X\rangle\): the value of a 1-form on a vector field, which is a scalar. Bilinear, degree 0. The meaning of the slots (1st slot form, 2nd slot vector) is left to the caller.

Pairing → \(\langle\alpha,X\rangle=\alpha(X)\in C^\infty(M)\)
pairing → constructor

pairing, differential form, vector field

—

mathematics

jacopy/core/multi_eval.py

Multilinear evaluation: the value \(\omega(Y_1,\dots,Y_p)\) of a \(p\)-form on \(p\) vector fields; dually, the value \(\pi(\alpha,\beta)\) of a bivector on covectors, or the value of a \((q,r)\)-tensor on mixed slots. With alternating=True it is alternating: swapping two arguments gives \(-1\), a repeated argument gives 0.

MultiEval(head, *args) → \(\omega(Y_1,\dots,Y_p)\), result scalar (degree 0)
swapped(i,j) → transposition, sign \(-1\)
has_repeated_arg → the condition \(\omega(\dots,Y,\dots,Y,\dots)=0\)
admits_alternation → alternation is refused by default; only explicitly certified heads (form/multivector classes) count as alternating
validate_arity → check that the number of slots equals the degree of the head

differential form, multivector, tensor, linearity

—

mathematics

jacopy/core/indexed_sum.py

Bound indexed sum \(\Sigma_d\,\mathrm{body}\), e.g. \(\sum_a\) over a local frame. Equality is defined by α-equivalence (the dummy index can be renamed). Nested binders are handled correctly.

IndexedSum(dummy, range_, body) → \(\sum_{d\in\text{range}}\text{body}(d)\)
with_dummy → renaming the dummy index (\(\sum_a=\sum_b\))
substitute_dummy_with → \(\text{body}[d\mapsto t]\) (for the Kronecker contraction \(\sum_b\delta_{ab}f(b)=f(a)\); the rule itself is in the central layer)
dummy_in → whether a free index occurs (takes shadowing into account)

frame/coframe, indexed sum

—

mathematics

jacopy/core/symmetrize.py

The symmetric and antisymmetric part operators \(T_{(ab)}=\tfrac12(T_{ab}+T_{ba})\), \(T_{[ab]}=\tfrac12(T_{ab}-T_{ba})\). Inert in this layer: the permutation expansion is not yet defined, only the degree is preserved.

Symmetrization → \(\mathrm{Sym}(T)\)
Antisymmetrization → \(\mathrm{Alt}(T)\)
\(\lvert\mathrm{Sym}\,T\rvert=\lvert\mathrm{Alt}\,T\rvert=\lvert T\rvert\)

tensor, (anti)symmetrization

—

mathematics

jacopy/core/wildcards.py

Pattern matching, i.e. the left-hand sides of rewrite rules. Rules can be written with patterns such as “\(d(?A+?B)\to d?A+d?B\)” (linearity), “\(d(?A\,?B)\to\dots\)” (Leibniz), “\([?X,[?Y,?Z]]+\)cyclic\(\to0\)” (Jacobi). Matching is structural and order-preserving; it does not match up to commutativity. Substitutions crossing a Σ binder boundary are rejected (no variable capture).

Wildcard → a single hole \(?A\) (may be property/type constrained, e.g. “scalar only”)
SeqWildcard → a run of consecutive terms inside a sum/product
match → pattern ↔ expression unification (bindings)
substitute → plugging the bindings into the right-hand side
binder_violation → capture of the Σ dummy index is prevented

rewrite rule

—

partial

jacopy/core/traverse.py

No mathematics. Read-only tree walker; it also descends into the hidden slots of operator atoms (e.g. the \(X\) inside \(\iota_X\)).

iter_nodes, iter_atoms, contains → tree traversal

—

—

infrastructure

jacopy/algebra/

This folder contains the tools for graded derivations and the graded commutator. The application \(D(x)\) of an operator to an argument, operator composition, \([A,B]=AB-(-1)^{\lvert A\rvert\lvert B\rvert}BA\), and the Lie bracket \([X,Y]\) of vector fields are here. Both gradings are defined here: the operator degree (degree_of) and the exterior algebra degree (exterior_degree). The Leibniz expansion itself is in algorithms/product_rule.py.

Tip

Where to look

  • Graded derivation and the application \(D(x)\)? → algebra/derivation.py (Derivation, Act)

  • Graded commutator \([A,B]=AB-(-1)^{\lvert A\rvert\lvert B\rvert}BA\)? → algebra/commutator.py

  • Lie bracket \([X,Y]\) of vector fields? → algebra/lie_bracket_vf.py

  • Exterior degree of a form / multivector? → algebra/grading.py (exterior_degree)

  • Operator degree (\(\lvert d\rvert=1\), \(\lvert\iota_X\rvert=-1\))? → algebra/derivation.py (degree_of)

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/algebra/__init__.py

No mathematics. Re-exports the classes Derivation, Act, Commutator etc.

—

—

—

infrastructure

jacopy/algebra/derivation.py

Graded derivation operators and their applications. A \(D\) of degree \(k\) satisfies, by the Koszul rule, \(D(ab)=D(a)b+(-1)^{k\lvert a\rvert}aD(b)\) (the rule is in the docstring; its application is in product_rule). The operator grading is computed here.

Derivation(name, degree) → graded derivation of degree \(k\) (\(d\): 1, \(\iota_X\): −1, …)
Act(op, arg) → \(D(x)\) (inert application)
degree_of → operator degree: \(\lvert D_1\circ D_2\rvert=\lvert D_1\rvert+\lvert D_2\rvert\), \(\lvert D(x)\rvert=\lvert D\rvert+\lvert x\rvert\), \(\lvert[A,B]\rvert=\lvert A\rvert+\lvert B\rvert\), \(\lvert[a,b]_B\rvert=\lvert a\rvert+\lvert b\rvert+\deg B\), numbers 0, a sum is graded only if homogeneous, for \(\wedge\) the exterior degrees add up
compose → \(D_1\circ D_2\) (as a Product)
leibniz / section_value → certificate of “is this operator a derivation, or a value”

graded algebra, Leibniz rule, Koszul sign

—

mathematics

jacopy/algebra/commutator.py

Graded commutator \([A,B]=AB-(-1)^{\lvert A\rvert\lvert B\rvert}BA\). In the expansion, even parity gives \(AB-BA\), odd parity gives \(AB+BA\) (anticommutator); if the parity cannot be determined, it raises an error. The fact that the commutator of two graded derivations is again a derivation is used here as a certificate (left to the proof layer as a theorem).

Commutator(a,b) → \([A,B]\) (inert)
expand_commutator → \(AB\mp BA\) (Koszul sign folded in)
is_certified_derivation → Leibniz can be applied if \(D\) is a derivation or \([D_1,D_2]\) is the commutator of two derivations

graded algebra, Koszul sign, Leibniz rule

—

mathematics

jacopy/algebra/grading.py

The exterior degree contract: on \(\Lambda^\bullet T^*M\oplus\Lambda^\bullet TM\), function 0, vector field 1, \(p\)-form \(p\), \(p\)-vector \(p\). \(\wedge\) adds degrees; \(d\): +1, \(\iota_X\): −1, \(\iota_P\): −p, \(\mathcal L\) and \(\nabla\): 0; \(\flat/\sharp\) convert between vectors and 1-forms. Unknown and symbolic degrees are kept as separate answers.

exterior_degree → degree in the exterior algebra (may be symbolic)
Unknown → “could not be determined” (not confused with 0)
exterior_parity → the parity governing the commutativity of \(\wedge\)

graded algebra, differential form, multivector, interior product ι, exterior derivative d

—

mathematics

jacopy/algebra/lie_bracket_vf.py

The Lie bracket \([X,Y]\) of vector fields, again a vector field, i.e. a derivation of degree 0 on functions. It is deliberately not expanded as \(XY-YX\), so that after the folding \(\mathcal L_X\mathcal L_Y-\mathcal L_Y\mathcal L_X=\mathcal L_{[X,Y]}\) the result behaves like a single \(\mathcal L_W\).

LieBracketVF(X,Y) → \([X,Y]\in\mathfrak X(M)\), operator degree 0, exterior degree 1 (wedge_degree)
section_value → not counted as a derivation if one of the operands is not a section of \(TM\)
lie_bracket_vf → constructor

Lie bracket, vector field, Lie derivative L

—

mathematics

jacopy/algorithms/

This folder contains the transformations used for the algebraic normal form of expressions: associativity, distributivity, collecting like terms, folding numerical coefficients, graded-commutative sorting with Koszul signs, sorting alternating multilinear evaluations, and the graded Leibniz (product) rule. All of these steps can be read as reducing an expression to a chosen representative of its equivalence class. At every step, which rules are permitted is defined explicitly: in a noncommutative product the order is preserved, and a sign is folded only if the degrees are known.

Tip

Where to look

  • Where is the graded Leibniz rule \(D(ab)=D(a)b\pm aD(b)\) applied? → algorithms/product_rule.py

  • Koszul sign rule (interchange of factors)? → algorithms/sort_product.py

  • The cancellation \(\omega(X,Y)+\omega(Y,X)=0\)? → algorithms/normalize_alternating.py

  • Full simplification pipeline? → algorithms/simplify.py

  • Collecting like terms / factoring out a common factor? → algorithms/collect_terms.py, algorithms/factor_terms.py

  • Pattern → right-hand side rewrite rules? → algorithms/rewrite.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/algorithms/__init__.py

No mathematics. Re-exports.

—

—

—

infrastructure

jacopy/algorithms/base.py

No mathematics. Common interface and result record for a single rewrite step.

Algorithm.can_apply/apply/run, StepResult

—

—

infrastructure

jacopy/algorithms/flatten.py

Associativity: \((x+y)+z\to x+y+z\), \((ab)c\to abc\). A singleton sum reduces to its single term, the empty sum becomes 0, the empty product 1.

flatten → associative normal form for sums and products

normal form/simplification

—

mathematics

jacopy/algorithms/distribute.py

Noncommutative distribution: \(A(B+C)D\to ABD+ACD\), the order of the factors is preserved. Multilinear expansion \((a+b)(c+d)=ac+ad+bc+bd\). The same is done for \(\wedge\).

distribute → distribution of a product over a sum (two-sided)
_distribute_wedge → multilinearity of \(\wedge\) with respect to addition

linearity, wedge product, normal form/simplification

—

mathematics

jacopy/algorithms/canonicalize.py

Simple algebraic normal form: folds constants (\(\mathbb Q\) arithmetic), \(-(-x)=x\), combines like terms (\(2x+3x=5x\)), moves numerical factors to the front, \(x^0=1\), \(x^1=x\). It does not reorder non-numerical factors (noncommutativity is preserved).

canonicalize → idempotent normal form
semantically_equal → equality with respect to this normal form (without using Koszul information)
_coeff_and_core → term = (rational coefficient) × (core)

normal form/simplification

—

mathematics

jacopy/algorithms/collect_terms.py

Combines structurally equal terms in a sum: \(x+x\to2x\), \(x-x\to0\).

collect_terms → adding the coefficients of the same \(t\) in \(\sum c_i t_i\)

normal form/simplification

—

mathematics

jacopy/algorithms/factor_terms.py

The reverse direction: factors out the common factor on the left, \(fA+fB\to f(A+B)\). Only the leftmost factor is taken out, since in a noncommutative product this is always sound. For pairing and evaluation, multilinearity is also applied in the summing direction.

factor_common → inverse of left distribution
collect_pairings → \(\sum s_i\langle\alpha,V_i\rangle\to\langle\alpha,\sum s_iV_i\rangle\), \(\sum s_i\,\eta(Y,\dots,V_i)\to\eta(Y,\dots,\sum s_iV_i)\) (linearity in the last slot)

normal form/simplification, linearity, pairing

—

mathematics

jacopy/algorithms/sort_product.py

The Koszul sign rule is here. The factors of a product are sorted graded-commutatively; each time neighbors \(a,b\) are interchanged, \(\lvert a\rvert\lvert b\rvert\) is added to the exponent. The sign is returned as a Degree polynomial so that it can remain symbolic. ℝ-constants (Scalar) commute with everything without a sign; a factor of unknown degree raises an error.

sort_product → \((\text{sorted product},\ e)\), result \(=(-1)^e\cdot\) sorted product
apply_sign → folds \((-1)^e\) if the parity of \(e\) is known
_swap_behavior → which pairs may be interchanged (scalar/value/element/operator classification; operators do not commute)

Koszul sign, graded algebra, normal form/simplification

—

mathematics

jacopy/algorithms/normalize_alternating.py

Canonical representative of alternating multilinear evaluations: the arguments are sorted, the sign of the permutation is pulled out, a repeated argument gives 0. Thus \(\omega(X,Y)+\omega(Y,X)\) cancels automatically. For \(\wedge\): factors of degree 0 are moved to the front as coefficients (\(f\wedge X=fX\)); if all factors have odd exterior degree, antisymmetric sorting is performed.

normalize_alternating → \(\omega(Y_{\sigma(1)},\dots)=\operatorname{sgn}\sigma\cdot\omega(Y_1,\dots)\), \(\omega(\dots,Y,\dots,Y,\dots)=0\)
_permutation_parity → \(\operatorname{sgn}\sigma\)
_normalize_wedge → multilinearity of \(\wedge\) + antisymmetric sorting of odd-degree factors

differential form, wedge product, Koszul sign, normal form/simplification

—

mathematics

jacopy/algorithms/product_rule.py

The graded Leibniz rule and linearity: \(D(a+b)=Da+Db\); \(D(a_1\cdots a_n)=\sum_i(-1)^{\lvert D\rvert(\lvert a_1\rvert+\dots+\lvert a_{i-1}\rvert)}a_1\cdots D(a_i)\cdots a_n\). For \(\wedge\) the same formula is applied with the exterior degree. Only certified derivations are split. For \(C^\infty\)-linear operators (\(\text{leibniz}=\)False), scalars are pulled out. A composition \(D_1\circ D_2\) is unfolded into nested applications from right to left.

product_rule → Leibniz + linearity for all Act nodes
_expand_leibniz → \(\sum_i \pm\, a_1\cdots Da_i\cdots a_n\) (with Koszul signs)
_expand_wedge_leibniz → expansion of \(D(a_1\wedge\dots\wedge a_n)\)
_pull_out → \(C^\infty\)-linearity: \(\mathrm{op}(c\,r)=c\,\mathrm{op}(r)\)
_distribute_sum_factor → fallback to ℝ-bilinearity
_leibniz_term → a product formed next to a vector/multivector is rebuilt as \(\wedge\)

Leibniz rule, linearity, Koszul sign, wedge product, scalar multiplication

—

mathematics

jacopy/algorithms/rewrite.py

Term rewriting system: rule = (left pattern → right-hand side, optional side condition). It can be applied at the root, bottom-up, top-down, or up to a fixed point; it raises an error if it diverges.

Rule(lhs, rhs, guard) → conditional rewrite rule
apply_bottomup/topdown/once_at_root → strategy
normalize / rewrite_to_fixpoint → fixed point (normal form)

rewrite rule, normal form/simplification

—

partial

jacopy/algorithms/simplify.py

Full simplification: flatten → distribute → canonicalize → sort_product → collect_terms, up to a fixed point. If a registry is given, Koszul sorting is switched on; products with symbolic signs are left unsorted. In the last stage, factoring out a common factor is accepted only if it makes the expression smaller.

simplify → fixed point of the composite of these passes
_sort_all_products → folding the determinable Koszul signs

normal form/simplification, Koszul sign

—

mathematics

jacopy/brackets/

This folder contains the graded bracket abstraction and the derived bracket construction. Defined here are the degree of a bracket; the graded antisymmetry, Leibniz, and Jacobi axioms in the shifted grading; and, for each axiom, the obstruction expression that “must vanish”. The concrete brackets (Lie, Schouten–Nijenhuis, Koszul, Dorfman, Courant…) are under central/ and packages/; this folder holds only the framework and the structure \(\{a,b\}_Q=[[a,Q],b]\).

Tip

Where to look

  • Antisymmetry / Leibniz / Jacobi signs of a general graded bracket? → brackets/base.py

  • Jacobi obstruction expression (cyclic sum)? → brackets/base.py (graded_jacobi_obstruction)

  • Derived bracket \(\{a,b\}_Q=[[a,Q],b]\) and the condition \([Q,Q]=0\)? → brackets/derived.py

  • The form of the Koszul bracket built with the anchor? → brackets/derived.py (acting_on mode)

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/brackets/__init__.py

No mathematics. Exports the classes GradedBracket, BracketApply, DerivedBracket, VanishingCondition.

—

—

—

infrastructure

jacopy/brackets/base.py

A bilinear bracket \([\cdot,\cdot]\) of degree \(k\) on a graded module: \(\lvert[a,b]\rvert=\lvert a\rvert+\lvert b\rvert+k\). Signs are computed with the shifted degree \(s(x)=\lvert x\rvert+k\) (for SN \(s=m-1\), \(m\) the multivector degree). Axioms: antisymmetry \([a,b]=-(-1)^{s(a)s(b)}[b,a]\); Leibniz \([a,bc]=[a,b]c+(-1)^{s(a)\lvert b\rvert}b[a,c]\); cyclic graded Jacobi \(\sum_{cyc}(-1)^{s(a)s(c)}[a,[b,c]]=0\).

GradedBracket → abstract graded bracket (axiom flags: antisymmetry, Leibniz, Jacobi = True/False/None (conditional))
BracketApply(B,a,b) → \([a,b]_B\) (inert)
operand_degree → \(s(x)=\lvert x\rvert+k\)
claimed_swap_sign → \(\varepsilon=-(-1)^{s(a)s(b)}\)
jacobi_term_sign, leibniz_term_sign → Jacobi and Leibniz signs
graded_antisymmetry_obstruction → \([a,b]+(-1)^{s(a)s(b)}[b,a]\)
graded_jacobi_obstruction → cyclic Jacobi sum
leibniz_obstruction → \([a,bc]-[a,b]c-(-1)^{s(a)\lvert b\rvert}b[a,c]\)
expand_bracket → expanding the bracket to its definition

Jacobi identity, Leibniz rule, Koszul sign, graded algebra, Schouten–Nijenhuis bracket

—

mathematics

jacopy/brackets/derived.py

Derived bracket \(\{a,b\}_Q:=[[a,Q],b]\). For every \(Q\), it gives a graded Leibniz bracket. With a graded Lie base and an odd (shifted) degree \(Q\), the condition \([Q,Q]=0\) turns it into a Loday (left Leibniz–Jacobi) bracket. The cyclic Lie-type Jacobi holds only on slots with additional antisymmetry. Shift \(k=\lvert Q\rvert+2k_{\text{base}}\). In Koszul mode (with anchor \(\rho\)), \(\{a,b\}=\mathcal L_{\rho a}b-\mathcal L_{\rho b}a-d\langle\rho a,b\rangle\), on 1-forms.

DerivedBracket(base, Q) → \(\{a,b\}_Q=[[a,Q],b]\)
expand_definition → \([[a,Q],b]\) without expanding the base
jacobi_obstruction → \([Q,Q]_{\text{base}}\) (the remaining hypothesis for Jacobi)
VanishingCondition → the claim “obstruction \(=0\)” (holds: whether it is 0 after simplification)
generator_degree → \(\lvert Q\rvert\), validated against the registry
koszul_well_typed → Koszul mode only for a bivector \(Q\) and 1-forms
Source note: the docstring marks Kosmann-Schwarzbach’s year as “1996 — ambiguous”; the bibliography lists the 2004 paper

derived bracket, Jacobi identity, Koszul bracket, anchor ρ, Lie derivative L

—

mathematics

jacopy/central/ (root)

The root package is only a facade. It documents the common design principle of the three subfolders: the algebroid version gives the ordinary version at \(E=TM\). Subfolders: objects, tangent, algebroid. calculus is the common engine for the TM, algebroid, and Poisson cases.

Tip

Where to look

  • The principle that the algebroid version reduces to the ordinary version when \(E=TM\), \(\rho=\mathrm{id}\)? → jacopy/central/__init__.py (docstring)

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/central/__init__.py

No mathematics; only a docstring defining the design principle and the subpackages.

—

vector bundle, anchor ρ, Lie algebroid

—

infrastructure

jacopy/central/objects/

This folder contains the basic objects of differential geometry. All of them are attached to a bundle \(E\) (default \(TM\)):

  • functions \(C^\infty(M)\), vector fields and sections \(\Gamma(E)\);

  • \(p\)-forms \(\Gamma(\Lambda^pE^*)\), \(p\)-vectors \(\Gamma(\Lambda^pE)\), \((q,r)\)-tensors;

  • the metric and the Hodge star, the connection \(\nabla\), frame and coframe;

  • interior products \(\iota_X\), \(\tilde\iota_\omega\), \(\iota_P\); musical isomorphisms \(\sharp/\flat\);

  • partial evaluation of multilinear maps.

This layer mostly sets up the objects and the degree/type algebra (\(\deg\iota_X=-1\), \(\nabla_X\) preserves type, etc.). The calculus rules are largely in calculus/ and tangent/. The exceptions are these: endomorphism.py and multivector_interior.py carry their own definition rules, and kind.py is the common “type query”.

Tip

Where to look

  • What is a vector field (section), and how does it act on a function? → objects/vector_field.py (VectorField, \(U(f)\))

  • A \(p\)-form and its evaluation on vectors? → objects/form.py (Form.__call__)

  • Into which slot does the interior product \(\iota_X\) put its argument, and what is its degree? → objects/interior.py (first slot, degree \(-1\)). Its rules are in calculus/interior_rules.py.

  • \(\sharp/\flat\) and general lowering/raising of indices? → objects/musical.py, objects/partial_eval.py

  • Metric, Hodge \(\star\), connection \(\nabla\), frame \((e_a)\) with \(\delta^a_b\)? → objects/metric.py, objects/connection.py, objects/frame.py

  • How are the degree and type of an expression determined? → objects/kind.py (kind_of)

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/central/objects/__init__.py

Exports the basic objects. Wedge, tensor product, (anti)symmetrization, Hodge, and pairing are in fact re-exported from jacopy/core.

—

function (C^∞), vector field, differential form, multivector, tensor, metric, connection, frame/coframe, wedge product, interior product ι, Hodge ⋆, pairing

—

infrastructure

jacopy/central/objects/bundle.py

Context of the vector bundle \(E\) on which the objects live (name + optional rank). If no rank is given, a symbolic dimension is used (abstract proof mode).

Bundle → vector bundle \(E\to M\) (carries no anchor or bracket in this layer)
TangentBundle, TM → \(TM\) (the ordinary case; a single symbolic \(TM\) for the whole process)

vector bundle

—

partial

jacopy/central/objects/function.py

Smooth functions \(C^\infty(M)\) on the base manifold. They are independent of the bundle and have degree 0.

functions → declares \(f,g,\dots\in C^\infty(M)\) (degree 0)

function (C^∞), graded algebra

—

partial

jacopy/central/objects/vector_field.py

Vector fields, i.e. sections of the bundle, are defined as derivations on functions: \(U(f)\) is the directional derivative. A section of a bundle other than \(TM\) acts on a function only through the anchor: \(u(f):=\rho(u)(f)\).

VectorField → element of \(\Gamma(E)\). On \(TM\) it is a derivation of \(C^\infty(M)\) (operator degree 0, multivector degree 1).
apply_to_function → \(U(f)\) (directional derivative)
section_value → if \(E\neq TM\), the section is a “value”, not a derivation

vector field, vector bundle, anchor ρ, Leibniz rule, graded algebra

—

mathematics

jacopy/central/objects/form.py

\(p\)-forms \(\Gamma(\Lambda^pE^*)\) and the canonical pairing of a 1-form with a vector. Full evaluation: \(\langle\omega,X\rangle\) for \(p=1\), alternating multilinear evaluation (determinant convention) for \(p\ge2\).

Form → \(p\)-form (\(p\) may also be symbolic), alternating
Form.__call__ → \(\omega(X_1,\dots,X_p)\). The arity must be exactly \(p\); partial contraction is done with \(\iota_X\).
form_on_vector, vector_on_form → \(\omega(X)=\langle\omega,X\rangle\)

differential form, pairing, wedge product, vector bundle

—

mathematics

jacopy/central/objects/interior.py

Interior product \(\iota_X\). Definition: \((\iota_X\omega)(X_1,\dots,X_{p-1}):=\omega(X,X_1,\dots,X_{p-1})\), i.e. \(X\) enters the first slot. It is a graded anti-derivation of degree \(-1\). The docstring states: \(\iota_X(\alpha\wedge\beta)=\iota_X\alpha\wedge\beta+(-1)^{\deg\alpha}\alpha\wedge\iota_X\beta\), \(\iota_X\iota_X=0\). This file only sets up the operator and the degree law; the slot rules are in calculus/interior_rules.py.

Interior → \(\iota_X\) (degree \(-1\))
contract → \(\iota_X\omega\) (degree \(\deg\omega-1\))
contract_all → iterated contraction \(\iota_{X_k}\cdots\iota_{X_1}\omega = \omega(X_1,\dots,X_k,\cdot,\dots)\)

interior product ι, differential form, graded algebra, Koszul sign

—

mathematics

jacopy/central/objects/multivector.py

\(p\)-vector fields \(\Gamma(\Lambda^pE)\). They are the contravariant counterpart of forms: alternating multilinear on 1-forms, \(\pi(\alpha,\beta)=-\pi(\beta,\alpha)\). There are two separate gradings: VectorField carries operator degree 0, while PVector carries multivector degree \(p\).

PVector → \(P\in\Gamma(\Lambda^pE)\)
PVector.__call__ → \(P(\alpha_1,\dots,\alpha_p)\) (alternating)
bivector → 2-vector, e.g. the Poisson bivector \(\pi\)

multivector, Poisson structure, graded algebra, pairing

—

mathematics

jacopy/central/objects/tilde_interior.py

Tilde interior product: \((\tilde\iota_\omega\pi)(\omega_1,\dots,\omega_{p-1}):=\pi(\omega,\omega_1,\dots)\). It has degree \(-1\) on multivectors. On a plain vector field, \(\tilde\iota_\omega X=\langle\omega,X\rangle\).

TildeInterior → \(\tilde\iota_\omega\) (degree \(-1\); \(\tilde d\), \(\tilde{\mathcal L}\) in the Poisson layer are built from it)
tilde_contract → \(\tilde\iota_\omega\pi\)

interior product ι, multivector, tilde calculus, Poisson structure

—

mathematics

jacopy/central/objects/tensor.py

Tensors of type \((q,r)\): the multilinear map \(T:(E^*)^q\times E^r\to C^\infty(M)\). Scaling by a function, \(fT\), is the \(C^\infty(M)\)-module structure. Type preservation is tracked by the signature \((q,r)\).

Tensor → \((q,r)\)-tensor; __call__ → \(T(\alpha^1,\dots,\alpha^q,X_1,\dots,X_r)\) (covector slots first)
scale → \(f\cdot T\) (\(C^\infty(M)\)-module multiplication)
signature_of → the signature \((q,r)\); preserved under \(\nabla_X\), \(fT\), \(-T\), and Sym/Alt

tensor, scalar multiplication, linearity

—

mathematics

jacopy/central/objects/metric.py

Metric \(g\): a symmetric, non-degenerate \((0,2)\)-tensor. The inverse metric \(g^{-1}\) is a \((2,0)\)-tensor. The Hodge star \(\star_g\) takes a \(p\)-form to an \((n-p)\)-form (\(n\) is the rank of the bundle).

Metric → \(g(X,Y)\) (symmetric); flat → \(g^\flat\); inverse → \(g^{-1}\)
InverseMetric → \(g^{-1}(\alpha,\beta)\); sharp → \(g^\sharp\)
hodge → \(\star_g\omega\). For concrete values \(0\le p\le n\) is enforced.

metric, Hodge ⋆, tensor

—

mathematics

jacopy/central/objects/musical.py

Musical isomorphisms. One slot of a bilinear map is left open: \(g^\flat(X)=g(X,\cdot)\) (\(TM\to T^*M\), degree \(+1\)) and \(\pi^\sharp(\alpha)=\pi(\alpha,\cdot)\) (\(T^*M\to TM\), degree \(-1\)). Both are \(C^\infty\)-linear (tensorial); there is no Leibniz rule.

Flat → \(g^\flat\)
Sharp → \(\pi^\sharp\)
flat, sharp → constructors

metric, Poisson structure, linearity, musical isomorphism ♯/♭

—

mathematics

jacopy/central/objects/partial_eval.py

When \(j\) slots of a \(k\)-linear map are fixed, a \((k-j)\)-linear map in the open slots remains. This is the general form of coordinate-free lowering/raising of indices (with arbitrarily many slots). The type is derived: the open part of an alternating head with vector slots is a \((k-j)\)-form.

PartialEval → \(T(a_1,\cdot,a_3,\cdot,\dots)\); __call__ → \(T(a,\cdot)(b)=T(a,b)\)
PartialEval.degree → the form degree of the open map
partial_eval → slot-by-slot specification
musical_view → the leading \(j\) slots fixed: \(T(a_1..a_j,\cdot,\dots)\)

tensor, differential form, interior product ι, musical isomorphism ♯/♭, partial evaluation

—

mathematics

jacopy/central/objects/multivector_interior.py

Interior product with a multivector \(\iota_P:\Lambda^qT^*M\to\Lambda^{q-p}T^*M\), \(P\in\Lambda^pTM\). For decomposable \(P\), \(\iota_{X_1\wedge\dots\wedge X_p}:=\iota_{X_p}\circ\cdots\circ\iota_{X_1}\), then extended \(C^\infty\)-linearly. The result is a form (partial contraction). The cited “E6 paper” (4.13)-(4.14) is not in the repo; the labels are not verified (according to the docstring).

MultivectorInterior → \(\iota_P\) (degree \(-p\))
MultivectorInteriorLinearityDefinition → \(\iota_{fP+Q}=f\iota_P+\iota_Q\)
MultivectorInteriorDecomposableDefinition → \(\iota_{X_1\wedge\dots\wedge X_p}\omega=\iota_{X_p}(\cdots\iota_{X_1}\omega)\)
MultivectorInteriorDecomposableFormDefinition → \(\iota_P(\alpha_1\wedge\dots\wedge\alpha_q)=\sum_{\lvert I\rvert=p}\mathrm{sgn}(I,I^c)\,P(\alpha_I)\,\alpha_{I^c}\) (\(q\ge p\ge2\); sign consistent with the previous rule, compared against tests)
MultivectorWedgeEvalDefinition → \((X_1\wedge\dots\wedge X_p)(\alpha_1..\alpha_p)=\sum_\sigma\mathrm{sgn}\sigma\prod_i\langle\alpha_i,X_{\sigma(i)}\rangle\)

interior product ι, multivector, wedge product, exceptional geometry (E6), linearity, rewrite rule

—

mathematics

jacopy/central/objects/endomorphism.py

A pair of invertible bundle endomorphisms: \(m\) on the vector side, \(\tilde m\) on the form side. It is the basic building block of the change-of-frame twist \(\Psi_m=\mathrm{diag}(m,\tilde m)\) [TW (7.11), arXiv:2409.11973]. The conjugated brackets are in packages/drinfeld/twist.

EndoVF → \(m(X)\) or \(m^{-1}(X)\) (again a vector field)
EndoForm → \(\tilde m(\omega)\) or \(\tilde m^{-1}(\omega)\) (degree preserved)
EndoLinearityDefinition → \(m(X+Y)=mX+mY\), \(m(fX)=f\,m(X)\) (tensoriality)
EndoInverseDefinition → \(m^{-1}(m(x))=x\), \(m(m^{-1}(x))=x\)

twist (Ψ, B, Π, R), Drinfeld double, linearity, rewrite rule, bundle endomorphism

TW (7.11), arXiv:2409.11973

mathematics

jacopy/central/objects/frame.py

Local frame \((e_a)\) and dual coframe \((e^a)\), \(\langle e^a,e_b\rangle=\delta^a_b\). This file defines the Kronecker delta as a constant scalar: every derivation kills it. Here \(\delta^a_a=1\) is the fixed-index reading; no summation is implied. The duality rule is in tangent/definitions.py.

Frame, FrameField → \((e_a)\), \(e_a\in\Gamma(E)\)
Coframe, CoframeField → \((e^a)\), 1-forms
Frame.pairing → the \(\langle e^a,e_b\rangle\) node
KroneckerDelta, kronecker_delta → \(\delta^a_b\) (constant, \(X(\delta)=0\))
FrameIndex → the bound index in the sum \(\sum_s\)

frame/coframe, pairing, Kronecker delta

—

mathematics

jacopy/central/objects/kind.py

The common type query. It structurally determines the kind of an expression (function / vector / form / multivector / tensor / operator / zero / unknown / incompatible), its exterior degree, and its bundle. Operators shift the degree (\(d\): \(+1\), \(\iota\): \(-1\), \(\mathcal L\) and \(\nabla\): \(0\), \(\iota_P\): \(-p\)). No guessing is done; what is unknown stays “unknown”.

kind_of, Kind → type and grading judgment
wedge_factor_degree → exterior degree used in Leibniz signs
is_section_valued → test for “valued in a bundle other than \(TM\)”

graded algebra, type system

—

partial

jacopy/central/objects/connection.py

Affine connection \(\nabla\) and \(\nabla_X\). It takes a \((q,r)\)-tensor to the same type (degree 0). This layer contains only the type and degree algebra. \(\nabla_Xf=X(f)\) and the Leibniz rule are in tangent/definitions.py; the evaluation rule on a tensor is in calculus/tensor_calculus.py.

CovariantOp → \(\nabla_X\) (degree 0 derivation)
Connection → the \(\nabla\) context; __call__ → \(\nabla_XT\)
covariant_derivative → \(\nabla_XT\)

connection, covariant derivative ∇, tensor, Leibniz rule

—

mathematics

jacopy/central/calculus/

This folder contains the tools of the general Cartan calculus derived from an (anchor, bracket) pair. BracketCalculus takes a pair \((\rho,[\cdot,\cdot])\):

  • it defines the operator \(d\) by the intrinsic Palais formula;

  • it defines the operator \(\mathcal L_X\) by core cases and an evaluation formula;

  • everything else, such as \(d^2=0\) and the Cartan formula, is proved as a theorem from these definitions.

The TM case \((\mathrm{id},\mathrm{Lie})\), the algebroid case \((\rho_E,[\cdot,\cdot]_E)\), and the Poisson case \((\pi^\sharp,\mathrm{Koszul})\) are instantiated through the same code. The rest of the folder consists of calculus-independent definition rules: placement of \(\iota\) into slots, multilinearity, the determinant evaluation of the wedge, the expansion of Sym/Alt, indexed sums, partial evaluation, \(\mathcal L\) and \(\nabla\) on tensors. There is no prove_* in this folder.

Tip

Where to look

  • The definition of \(d\) (Palais formula)? → calculus/bracket_calculus.py (IntrinsicDDefinition)

  • The definition of \(\mathcal L_X\) (\(\mathcal L_Xf\), \(\mathcal L_XY=[X,Y]\), evaluation formula)? → calculus/bracket_calculus.py (IntrinsicLDefinition)

  • How is the same \(d\) shared between TM / algebroid / Poisson? → calculus/bracket_calculus.py (BracketCalculus; flags skew, right_leibniz)

  • The evaluation convention of wedge (determinant)? → calculus/indexed_rules.py (WedgeEvalDefinition)

  • The \(1/k!\) normalization of Sym/Alt? → calculus/symmetrize_rules.py

  • \(\mathcal L_X\) and \(\nabla_X\) on tensors? → calculus/tensor_calculus.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/central/calculus/__init__.py

Exports the general bracket calculus. Examples according to the docstring: TM \((\mathrm{id},\mathrm{Lie})\), algebroid \((\rho_E,[\cdot,\cdot]_E)\), Poisson \((\pi^\sharp,\mathrm{Koszul})\).

—

exterior derivative d, Lie derivative L, anchor ρ

—

infrastructure

jacopy/central/calculus/bracket_calculus.py

Derivation of the exterior derivative from the bracket. The intrinsic Palais formula is taken as the definition: \(d\omega(X_0..X_p)=\sum_i(-1)^i\rho(X_i)\,\omega(..\hat X_i..)+\sum_{i<j}(-1)^{i+j}\omega([X_i,X_j],..\hat X_i..\hat X_j..)\). The Lie derivative is also given by definition: \(\mathcal L_Xf=\rho(X)f\), \(\mathcal L_XY=[X,Y]\), \((\mathcal L_X\omega)(Y_1..Y_k)=\rho(X)\omega(Y..)-\sum_i\omega(..,[X,Y_i],..)\). The Cartan formula is not a definition here but a theorem. Axiom flags: without skew, \(d\omega\) is only an ordered multilinear map, not alternating, because \(d\alpha(u,u)=-\alpha([u,u])\). Without right_leibniz, \(\mathcal L_X(fY)\) is not split by the product rule.

BracketCalculus → the pair \((\rho,[\cdot,\cdot])\) and the derived \(d\), \(\mathcal L\)
ExteriorDerivative → \(d\) (degree \(+1\))
LieDerivative → \(\mathcal L_X\) (degree 0)
IntrinsicDDefinition → expansion of \(d\) by the Palais formula; \(\langle d f,X\rangle=\rho(X)f\)
IntrinsicLDefinition → canonical definition of \(\mathcal L_X\) (three cases)
HeadSumDefinition, HeadScalarDefinition → evaluation is additive and \(C^\infty\)-linear in the form slot: \(\langle f\alpha,Y\rangle=f\langle\alpha,Y\rangle\)
SlotNegDefinition, SlotZeroDefinition, MultiEvalArgLinearityDefinition, PairingVectorScalarDefinition → multilinearity of evaluation in the argument slots
ActExpansionDefinition → product rule (\(\mathbb R\)-linearity + graded Leibniz)
HeadFormProductLiftDefinition → \(\alpha\cdot\beta=\alpha\wedge\beta\) at the head of an evaluation
OperatorSlotAdditivityDefinition → \(\mathcal L_{X+Y}=\mathcal L_X+\mathcal L_Y\); not \(C^\infty\)-linearity, \(\mathcal L_{fX}\ne f\mathcal L_X\)
belongs_to → test of which calculus a rule belongs to (infrastructure)

exterior derivative d, Lie derivative L, anchor ρ, Lie bracket, derived bracket, linearity, Leibniz rule, pairing, wedge product, rewrite rule, Palais formula

—

mathematics

jacopy/central/calculus/interior_rules.py

The rule form of the definition of \(\iota_X\); independent of the anchor and the bracket.

InteriorActDefinition → \(\iota_Xf=0\), for a 1-form \(\iota_X\omega=\langle\omega,X\rangle\)
InteriorEvalDefinition → \((\iota_X\omega)(Y_1..Y_k)=\omega(X,Y_1..Y_k)\)
InteriorVectorLinearityDefinition → \(\iota_{fX+Y}=f\iota_X+\iota_Y\) (tensorial in the vector slot)

interior product ι, linearity, pairing, rewrite rule

—

mathematics

jacopy/central/calculus/symmetrize_rules.py

Expansion of (anti)symmetrization under evaluation into a sum over permutations, with \(1/k!\) normalization: \(\mathrm{Sym}(T)(Y..)=\frac1{k!}\sum_\sigma T(Y_\sigma..)\) and \(\mathrm{Alt}(T)(Y..)=\frac1{k!}\sum_\sigma\mathrm{sgn}\sigma\,T(Y_\sigma..)\).

SymAltEvalDefinition → the two expansions above

tensor, (anti)symmetrization, rewrite rule

—

mathematics

jacopy/central/calculus/indexed_rules.py

The finite indexed sum \(\sum_s\) and the meaning of the wedge: linearity of the sum, evaluation commuting with the sum, determinant evaluation of the wedge of \(n\) 1-forms, and Kronecker contraction.

IndexedSumLinearityDefinition → \(\sum_s(a+b)=\sum_sa+\sum_sb\); factors independent of the bound index are pulled out (the product is not commutative; order is preserved)
IndexedSumEvalPushInDefinition → \((\sum_s\omega_s)(X..)=\sum_s\omega_s(X..)\)
WedgeEvalDefinition → \((\alpha_1\wedge..\wedge\alpha_n)(X_1..X_n)=\sum_\sigma\mathrm{sgn}\sigma\prod_i\langle\alpha_i,X_{\sigma(i)}\rangle\)
KroneckerContractionDefinition → \(\sum_s\delta^s_c\,t(s)=t(c)\)

wedge product, frame/coframe, linearity, rewrite rule, indexed sum

—

mathematics

jacopy/central/calculus/partial_eval_rules.py

The meaning of partial evaluation (a multilinear map with \(j\) slots fixed).

PartialEvalCollapseDefinition → \(T(a,\cdot)(b)=T(a,b)\)
PartialEvalLinearityDefinition → multilinearity in the fixed slots
AlternatingPartialEvalAsInteriorDefinition → \(\omega(X_1..X_j,\cdot..)=\iota_{X_j}\cdots\iota_{X_1}\omega\) (non-leading slots with the permutation sign)
MusicalAsPartialEvalDefinition → \(g^\flat(X)=g(X,\cdot)\), \(\pi^\sharp(\alpha)=\pi(\alpha,\cdot)\)

interior product ι, tensor, musical isomorphism ♯/♭, linearity, rewrite rule, partial evaluation

—

mathematics

jacopy/central/calculus/tensor_calculus.py

The evaluation law of \(\mathcal L_X\) and \(\nabla_X\) on a general \((q,r)\)-tensor. According to the docstring, both are derivations of the contraction algebra.

TensorLieEvalDefinition → \((\mathcal L_XT)(a_1..)=\rho(X)(T(a_1..))-\sum_iT(..,\mathcal L_Xa_i,..)\)
TensorCovariantEvalDefinition → \((\nabla_XT)(a_1..)=X(T(a_1..))-\sum_iT(..,\nabla_Xa_i,..)\)

Lie derivative L, covariant derivative ∇, tensor, rewrite rule

—

mathematics

jacopy/central/calculus/slot_rules.py

Structureless “hygiene” rules that can reach inside operator slots: pairing, wedge, and sum laws.

PairingArgSplitDefinition → \(\langle\alpha,X+Y\rangle=\langle\alpha,X\rangle+\langle\alpha,Y\rangle\)
FormProductToWedgeDefinition → \(\alpha\cdot\beta=\alpha\wedge\beta\)
WedgeSumScalarDefinition → distribution of the wedge over sums; \(\alpha\wedge f=f\alpha\)
WedgeZeroNegDefinition → \(0\wedge\alpha=0\), \((-\alpha)\wedge\beta=-(\alpha\wedge\beta)\)
TrivialZeroSumDefinition → \(0+(-0)+\dots=0\)

pairing, wedge product, linearity, normal form/simplification, rewrite rule

—

partial

jacopy/central/calculus/scalars.py

Tests “Is this expression definitely a \(C^\infty(M)\) function?” and “Is this definitely an \(\mathbb R\)-constant?”. Conservative: when in doubt, it answers “no”.

is_scalar_function → test for \(f\in C^\infty(M)\)
is_real_constant → test for \(c\in\mathbb R\)
annihilates → \(D(c)=0\) (a derivation kills a constant)

function (C^∞), normal form/simplification

—

infrastructure

jacopy/central/tangent/

This folder contains the tools of the \(TM\) case:

  • The Lie bracket, defined as a commutator.

  • \(d\) and \(\mathcal L\), instantiated by the general calculus \((\mathrm{id},[\cdot,\cdot]_{\mathrm{Lie}})\).

  • The anholonomy coefficients \(\gamma^c_{ab}\) of a frame.

  • The Schouten–Nijenhuis bracket.

  • The Cartan relations.

Antisymmetry, Jacobi, Leibniz, the Cartan formula, \([\mathcal L,d]=0\), \([\mathcal L,\iota]=\iota_{[\cdot,\cdot]}\), \(d^2=0\), and the like are theorems proved from the definitions; they are not added as axioms. Residuals of bracket identities (Jacobi) are closed by a “repair loop”: the residual is proved separately on a generic function and then cited. The explicit prove_* functions in this folder prove \(d^2=0\) and the Cartan formula for 0- and 1-forms. Higher degrees: for \(p=1,\dots,5\) each degree is a separate concrete proof (tests: TestTMHigherDegrees::test_magic and ::test_d_squared_zero; on the algebroid side only the Cartan formula, TestAlgebroidHigherDegrees). There is no proof for symbolic (general) \(p\), and within central there is no separate prove_* for \(p\ge2\) either.

Tip

Where to look

  • The proof of \(d^2=0\)? → on functions tangent/exterior.py (prove_d_squared_zero_on_functions), on 1-forms tangent/cartan.py (prove_d_squared_zero_on_one_forms). \(p=1,\dots,5\): each degree a separate concrete proof, test tests/test_higher_degree_audit.py; no proof for symbolic \(p\).

  • The Cartan formula \(\mathcal L_X=d\iota_X+\iota_Xd\)? → proof tangent/cartan.py (prove_cartan_magic_*); rule form tangent/cartan_rules.py (MagicFormulaDefinition)

  • The definition of the Lie bracket, Jacobi and Leibniz? → tangent/lie_bracket.py (prove_jacobi, prove_leibniz_second_slot)

  • \([\mathcal L_X,\iota_Y]=\iota_{[X,Y]}\), \([\mathcal L_X,\mathcal L_Y]=\mathcal L_{[X,Y]}\)? → tangent/cartan.py

  • The Schouten–Nijenhuis bracket and its signs? → tangent/schouten.py

  • Anholonomy \(\gamma^c_{ab}\) and \(de^c=-\gamma^c_{ab}\)? → tangent/anholonomy.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/central/tangent/__init__.py

No mathematics; the package docstring and re-exports.

—

Lie bracket, exterior derivative d, Lie derivative L, Schouten–Nijenhuis bracket, Cartan relations

—

infrastructure

jacopy/central/tangent/engine.py

Compatibility alias for the old module path (redirects to tangent_expansion).

—

—

—

infrastructure

jacopy/central/tangent/tangent_expansion.py

Assembles the TM engine with definitional rules only. List: action of the Lie bracket; action of a scalar as multiplication; \(\nabla_Xf=X(f)\); frame duality; Palais \(d\); canonical \(\mathcal L\); \(\iota\) rules; multilinearity; definition of \(\gamma\); Sym/Alt; bracket and SN orientation; SN expansion; \(\mathcal L\) on multivectors; \(\mathcal L\) on tensors; partial evaluation. Holonomic frames are added on request.

tangent_engine → “the set of definitions on TM”; proofs run with this set

rewrite rule, normal form/simplification

—

infrastructure

jacopy/central/tangent/lie_bracket.py

Definition of the Lie bracket \([U,V]:=U\circ V-V\circ U\), i.e. \([U,V](f)=U(V(f))-V(U(f))\). Antisymmetry, Jacobi, Leibniz, and \(\mathbb R\)-linearity follow from this definition as theorems. Operator equality is witnessed by equality on a generic \(f\) (agreement on generators).

lie_bracket → \([X,Y]\) (again a vector field)
LieBracketActionDefinition → \([X,Y](f)\to X(Y(f))-Y(X(f))\)
ScalarActAsMultiplicationDefinition → \((f\cdot V)(g)=f\,V(g)\) (\(C^\infty\)-module structure of vector fields)
BracketOrientationDefinition → \([B,A]\to-[A,B]\), \([A,A]\to0\) (canonical form based on the antisymmetry theorem)
LieBracketLeibnizDefinition → \([fX,Y]=f[X,Y]-Y(f)X\), \([X,fY]=f[X,Y]+X(f)Y\), additivity (theorem; not registered in the TM engine; packages enable it optionally)
prove_antisymmetry → \([X,Y]f=-[Y,X]f\) (from the commutator definition alone, non-circular)
prove_jacobi → \([X,[Y,Z]]f+[Y,[Z,X]]f+[Z,[X,Y]]f=0\)
jacobi_combination_theorems → theorem that the Jacobi combination is \(=0\) at the level of sections (with both signs)
prove_leibniz_second_slot → \([X,fY](g)=X(f)Y(g)+f[X,Y](g)\)
prove_additivity_second_slot → \([X,Y+Z]=[X,Y]+[X,Z]\)
prove_scalar_homogeneity → \([cX,Y]=c[X,Y]\) (\(c\) a numerical constant)
prove_first_slot_function_linearity → \([fX,Y](g)=f[X,Y](g)-Y(f)X(g)\)

Lie bracket, vector field, Jacobi identity, Leibniz rule, linearity, scalar multiplication, theorem builder, rewrite rule, normal form/simplification

—

mathematics

jacopy/central/tangent/definitions.py

Two definition rules, left inert (unexpanded): \(\nabla_Xf=X(f)\) and \(\langle e^a,e_b\rangle=\delta^a_b\). With these, the module property of the connection is obtained as a theorem.

CovariantScalarActionDefinition → \(\nabla_Xf=X(f)\) (only for the connection on \(TM\))
FrameDualityDefinition → \(\langle e^a,e_b\rangle=\delta^a_b\)
prove_covariant_scalar_action → \(\nabla_Xf=X(f)\) (one step)
prove_covariant_leibniz → \(\nabla_X(fT)=X(f)T+f\nabla_XT\) (theorem)
prove_frame_duality → \(\langle e^a,e_b\rangle=\delta^a_b\)

covariant derivative ∇, connection, frame/coframe, pairing, Leibniz rule, theorem builder, rewrite rule

—

mathematics

jacopy/central/tangent/exterior.py

On \(TM\), \(d\) is the \((\mathrm{id},\mathrm{Lie})\) instance of the general calculus (there is no separate code path). Special cases: \(df(X)=X(f)\) and \(d\omega(X,Y)=X(\omega(Y))-Y(\omega(X))-\omega([X,Y])\).

CARTAN_TM → \((\mathrm{id},[\cdot,\cdot]_{\mathrm{Lie}})\); skew=True, right_leibniz=True
cartan_calculus, exterior_d, d → the operator \(d\) / the node \(d\omega\)
prove_df_on_vector → \(\langle df,X\rangle=X(f)\)
prove_one_form_intrinsic → Palais formula for a 1-form
prove_d_squared_zero_on_functions → \((d\,df)(X,Y)=0\) (\(d^2=0\), \(p=0\); reading the definition of the Lie bracket backwards)
register_d_squared_zero → registers this theorem as citable

exterior derivative d, d²=0, Lie bracket, theorem builder, Palais formula

—

mathematics

jacopy/central/tangent/cartan.py

The \(TM\) Lie derivative and the Cartan relations, all proved theorems. The Cartan formula is not an axiom: it is derived here from the definitions. “Repair loop”: if the residual has the form \(\langle\omega,V\rangle\), then \(V=0\) is proved on a generic \(f\) (Jacobi/antisymmetry), registered as a theorem, and cited.

lie_derivative, L → \(\mathcal L_X\), \(\mathcal L_XT\)
prove_with_bracket_identities → general prover + bracket-identity repair
prove_d_squared_zero_on_one_forms → \((d\,d\omega)(X,Y,Z)=0\) (1-form; Jacobi is cited)
prove_cartan_magic_on_functions → \(\mathcal L_Xf=\iota_X df+d(\iota_Xf)\)
prove_cartan_magic_on_one_forms → \(\langle\mathcal L_X\omega,Y\rangle=\langle\iota_Xd\omega+d\iota_X\omega,Y\rangle\) (“the theorem of this architecture”)
prove_L_commutes_with_d_on_functions → \(\mathcal L_X(df)=d(\mathcal L_Xf)\)
prove_L_commutes_with_d_on_one_forms → \((\mathcal L_Xd\omega)(Y,Z)=(d\mathcal L_X\omega)(Y,Z)\)
prove_L_iota_commutator → \(\mathcal L_X\iota_Y\omega-\iota_Y\mathcal L_X\omega=\iota_{[X,Y]}\omega\) (1-form)
prove_L_L_commutator_on_functions → \([\mathcal L_X,\mathcal L_Y]f=\mathcal L_{[X,Y]}f\)
prove_L_L_commutator_on_one_forms → the same on a 1-form
prove_iota_anticommute → \(\iota_X\iota_Y\omega+\iota_Y\iota_X\omega=0\) (2-form)
prove_L_d_iota_commutation → \(\mathcal L_Ud\iota_W\eta-d\iota_{[U,W]}\eta-d\iota_W\mathcal L_U\eta=0\)
prove_L_d_iota_exact → \(\mathcal L_Wd\iota_V\omega-d\iota_Wd\iota_V\omega=0\) (Cartan formula + \(d^2=0\))
register_cartan_theorems → registers the core Cartan theorems

Lie derivative L, exterior derivative d, interior product ι, Cartan relations, d²=0, Jacobi identity, theorem builder, proof chain

—

mathematics

jacopy/central/tangent/cartan_rules.py

The operator-level rule form of the proved Cartan relations. Packages (twist, Nambu) use them inside non-evaluation slots. They are not in the always-on engines; they are enabled optionally.

MagicFormulaDefinition → \(\mathcal L_X\omega\to\iota_Xd\omega+d\iota_X\omega\) (\(\deg\omega\ge1\); \(p=1..5\) each degree a separate concrete proof, test: tests/test_higher_degree_audit.py::TestTMHigherDegrees::test_magic; no proof for symbolic \(p\))
LieIotaCommutatorDefinition → \(\iota_{[X,Y]}=\mathcal L_X\iota_Y-\iota_Y\mathcal L_X\)
DSquaredZeroDefinition → \(d(dx)\to0\) (\(p=1..5\) each degree a separate concrete proof, test: tests/test_higher_degree_audit.py::TestTMHigherDegrees::test_d_squared_zero; no proof for symbolic \(p\))
DWedgeLeibnizDefinition → \(d(\alpha_1\wedge..\wedge\alpha_n)=\sum_i(-1)^{\deg\alpha_1+..+\deg\alpha_{i-1}}\alpha_1\wedge..d\alpha_i..\wedge\alpha_n\)

Cartan relations, d²=0, Lie derivative L, interior product ι, exterior derivative d, wedge product, Leibniz rule, Koszul sign, rewrite rule

—

mathematics

jacopy/central/tangent/anholonomy.py

Anholonomy coefficients of a frame, \([e_a,e_b]=\gamma^c_{ab}e_c\). The definition is the coefficient itself: \(\gamma^c_{ab}:=\langle e^c,[e_a,e_b]\rangle\) (also works in symbolic dimension). Canonical index order \(\gamma^c_{ba}=-\gamma^c_{ab}\), \(\gamma^c_{aa}=0\). In a holonomic (coordinate) frame \(\gamma=0\). \(\gamma\) is not a constant but a genuine function.

AnholonomyCoefficient, anholonomy_coefficient → \(\gamma^c_{ab}\)
FrameBracketCoefficientDefinition → \(\langle e^c,[e_a,e_b]\rangle\to\gamma^c_{ab}\)
HolonomicFrameDefinition → \([e_a,e_b]=0\)
prove_gamma_antisymmetry → \(\gamma^c_{ab}=-\gamma^c_{ba}\)
prove_coframe_differential → \(de^c(e_a,e_b)=-\gamma^c_{ab}\) (Maurer–Cartan type)
prove_frame_jacobi → \(\langle e^e,[e_a,[e_b,e_c]]+\text{cyclic}\rangle=0\)
prove_holonomic_gamma_vanishes → \(\gamma=0\) in a holonomic frame

frame/coframe, Lie bracket, Cartan structure equations, Jacobi identity, exterior derivative d, theorem builder, anholonomy γ

—

mathematics

jacopy/central/tangent/schouten.py

Schouten–Nijenhuis bracket. The shifted degree \(s=m-1\) is used (\(m\) is the multivector degree). Base cases: \([X,Y]_{SN}=[X,Y]_{\mathrm{Lie}}\), \([f,g]=0\), \([X,f]=X(f)\), \([f,X]=-X(f)\). Wedge-Leibniz recursion: \([X\wedge Y,Z]=X\wedge[Y,Z]+(-1)^{s(Z)m(Y)}[X,Z]\wedge Y\) and \([Z,X\wedge Y]=[Z,X]\wedge Y+(-1)^{s(Z)m(X)}X\wedge[Z,Y]\). Degree \(m([a,b])=m(a)+m(b)-1\). Graded antisymmetry \([A,B]=-(-1)^{s(A)s(B)}[B,A]\), graded Jacobi, and Leibniz are obligations to be proved as theorems.

SchoutenBracket, SN, sn_bracket → \([\cdot,\cdot]_{SN}\)
multivector_degree → \(m\)
SNExpansionDefinition → the definitional expansion above
SNOrientationDefinition → \([a,b]\to-(-1)^{(p-1)(q-1)}[b,a]\) (graded antisymmetry; mechanically verified in degrees \((1,1),(2,1),(2,2),(3,2),(3,3)\))
LieOnMultivectorDefinition → \(\mathcal L_XP=[X,P]_{SN}\) for \(\deg P\ge2\)
prove_reduces_to_lie → \([X,Y]_{SN}=[X,Y]_{\mathrm{Lie}}\)
prove_sn_vector_function → \([X,f]_{SN}+[f,X]_{SN}=0\), \([X,f]=X(f)\)
prove_sn_wedge_leibniz → \([X,Y\wedge Z]=[X,Y]\wedge Z+Y\wedge[X,Z]\)
prove_sn_graded_antisymmetry → \([X\wedge Y,Z]_{SN}=-[Z,X\wedge Y]_{SN}\)

Schouten–Nijenhuis bracket, multivector, Lie bracket, Lie derivative L, wedge product, Koszul sign, graded algebra, Leibniz rule, theorem builder, rewrite rule

—

mathematics

jacopy/central/algebroid/

This folder contains the tools of the algebroid case.

  • The basic structure is an anchored bundle \((E,\rho)\): \(\rho\) is a \(C^\infty\)-linear anchor, \(u(f):=\rho(u)f\), and the coboundary \(D=\rho^*\circ d\) is defined.

  • The bracket is only \(\mathbb R\)-bilinear and opaque.

  • The hierarchy axioms are declared: right/left-Leibniz, anchor morphism, Leibniz–Jacobi, antisymmetry, metric invariance, symmetric part. Levels: almost-Leibniz, local, pre-Leibniz, Leibniz, Lie, almost-Courant, metric, pre-Courant, Courant.

  • The defect operators are defined: Jacobiator, Derivator, Predator.

  • The locality projector is defined.

  • The algebroid Cartan calculus is built with \((\rho_E,[\cdot,\cdot]_E)\).

  • Theorems between axioms are proved, e.g. “right-Leibniz + Jacobi ⇒ anchor morphism”.

Sources: B = arXiv:2210.00548, MC = arXiv:2006.05957; for the defect formulas TW = arXiv:2409.11973 App. A.

Tip

Where to look

  • The anchor \(\rho\), the coboundary \(D\), and the algebroid context? → algebroid/context.py

  • Which axioms exist, and what do the Lie/Courant levels contain? → algebroid/context.py (DECLARATIONS, LEVELS); their rules are in algebroid/declarations.py

  • The proof of the theorem “Leibniz ⇒ anchor morphism”? → algebroid/theorems.py (prove_anchor_morphism)

  • Definitions of the Jacobiator, Derivator, and Predator? → algebroid/operators.py

  • \(d_E^2=0\) and the Cartan formula on the algebroid? → algebroid/calculus.py; the defect formulas (in terms of the Predator/Jacobiator) are in algebroid/defect_formulas.py

  • Locality projector? → algebroid/locality.py

  • The locality operator \(L(\omega,u,v)\) (an object distinct from the projector \(\mathcal P\))? → algebroid/context.py (LocalityOperator, locality_term); multilinearity rule in algebroid/rules.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/central/algebroid/__init__.py

No mathematics; a docstring stating the source keys.

—

Lie algebroid, anchor ρ, citation/bibliography

—

infrastructure

jacopy/central/algebroid/engine.py

Compatibility alias for the old module path (redirects to algebroid_expansion).

—

—

—

infrastructure

jacopy/central/algebroid/algebroid_expansion.py

Assembles the algebroid engine: general structural rules, anchored-bundle definitions, the rules of the declared axioms, and the optional locality projectors. For \(E=TM\) it returns the TM engine directly (the reduction is carried out literally).

algebroid_engine → rule set “the definitions + assumptions of this algebroid”

rewrite rule, assumption/declaration, locality projector 𝒫

—

infrastructure

jacopy/central/algebroid/context.py

Anchored vector bundle and algebroid context \((E,\rho,[\cdot,\cdot]_E)\). \(\rho:E\to TM\) is a bundle morphism, hence \(C^\infty\)-linear by definition. Sections act on functions by \(u(f):=\rho(u)(f)\). Coboundary \(D:=\rho^*\circ d\), \(\langle Df,u\rangle=\rho(u)f\) [MC Def 3.5]. The bracket is only \(\mathbb R\)-bilinear [B Def 4.1]. The E-metric (symmetric, non-degenerate), \(g^{-1}\), the locality operator \(L(\omega,u,v)\), and the list of declarable axioms with the hierarchy levels are also defined here.

Algebroid, algebroid → \((E,\rho,[\cdot,\cdot]_E)\) + declarations
tangent_algebroid → \((TM,\mathrm{id},[\cdot,\cdot]_{\mathrm{Lie}})\); it has no declarations, everything is a theorem
AnchoredVF, Algebroid.anchor → \(\rho(u)\) (a vector field)
AlgebroidBracket, Algebroid.bracket → \([u,v]_E\) (does not act on functions directly)
Algebroid.act → \(u(f)=\rho(u)(f)\)
CoboundaryForm, Algebroid.D → \(Df\), \(D=\rho^*d\)
LocalityOperator, locality_term → \(L(\omega,u,v)\) and \(L(Df,u,v)\) [MC Def 3.5]
EMetric, Algebroid.metric → \(g(u,v)\) [MC Def 3.1]
MetricSharp, Algebroid.sharp → \(g^{-1}(\omega)\)
DECLARATIONS, LEVELS → list of axioms and levels. Examples: leibniz = right-Leibniz + jacobi; lie = + antisymmetric; courant = symmetric-part + metric-invariance + jacobi. Derivable axioms are deliberately left out of the levels. regular, bourbaki-invariance, courant-invariance, exact carry no rules; they are only permission flags.

vector bundle, anchor ρ, Lie algebroid, almost-Lie algebroid, Courant algebroid, metric, assumption/declaration, citation/bibliography, coboundary D, locality operator L

MC Def 3.5; B Def 4.1; MC Def 3.1

mathematics

jacopy/central/algebroid/rules.py

Rules that hold by definition on every anchored bundle; they contain nothing from the hierarchy.

AnchorLinearityDefinition → \(\rho(fu+v)=f\rho(u)+\rho(v)\)
BracketBilinearityDefinition → \([\cdot,\cdot]_E\) is \(\mathbb R\)-bilinear: sums and numerical coefficients come out, \(C^\infty\) coefficients do not
CoboundaryPairingDefinition → \(\langle Df,u\rangle=\rho(u)(f)\)
LocalityMultilinearityDefinition → \(L\) is \(C^\infty\)-multilinear in all three slots
MetricBilinearityDefinition, MetricSymmetryDefinition → \(g\) is \(C^\infty\)-bilinear, \(g(v,u)=g(u,v)\)
MetricSharpEvaluationDefinition → \(g(g^{-1}\omega,w)=\langle\omega,w\rangle\)
MetricSharpLinearityDefinition → \(g^{-1}\) is \(C^\infty\)-linear
CoboundaryLinearityDefinition → \(D(f+g)=Df+Dg\), \(D(c)=0\), \(D(fg)=fDg+gDf\) (theorem-classified; its proof is by matching with a generic section, non-circular)

anchor ρ, linearity, metric, pairing, Leibniz rule, rewrite rule, coboundary D, locality operator L

—

mathematics

jacopy/central/algebroid/declarations.py

Declared axioms: each enters the engine only when it is declared. An undeclared axiom cannot be used, and the proof fails honestly. Every proof step carries the name of the axiom it uses.

RightLeibnizDeclaration → \([u,fv]_E=\rho(u)(f)v+f[u,v]_E\) [B (4.4)/MC (3.10)]
LeftLeibnizDeclaration → \([fu,v]_E=-\rho(v)(f)u+f[u,v]_E+L(Df,u,v)\) [MC (3.11)]
AnchorMorphismDeclaration → \(\rho([u,v]_E)=[\rho u,\rho v]_{\mathrm{Lie}}\) [B (4.5)/MC (3.19)]
JacobiDeclaration → \(J^E(u,v,w)=0\) (Leibniz–Jacobi [B (4.6)], carried by the Jacobiator node)
AntisymmetryDeclaration → \([v,u]_E=-[u,v]_E\), \([u,u]=0\)
MetricInvarianceDeclaration → \(\rho(u)g(v,w)=g([u,v],w)+g(v,[u,w])\) (C1, [B (4.10)])
SymmetricPartDeclaration → \([u,v]_E+[v,u]_E=g^{-1}Dg(u,v)\) (C2, [B Def 4.2-4.3]; applied only in the summing direction, to avoid a loop)
declaration_rules → ordered list of the declared rules

assumption/declaration, Leibniz rule, anchor ρ, Jacobi identity, Jacobiator, Courant algebroid, Dorfman bracket, metric, rewrite rule, citation/bibliography

B (4.4)/MC (3.10); MC (3.11); B (4.5)/MC (3.19); B (4.6); B (4.10); B Def 4.2-4.3

mathematics

jacopy/central/algebroid/operators.py

Defect operators: each measures the failure of a structural property, and its vanishing identically (\(\equiv0\)) is the property itself. \(C^\infty\)-linear bundle maps \(\Phi\) are also modeled here. Sign note: the Predator in this file is defined as \(P_\Phi=\Phi[u,v]-[\Phi u,\Phi v]\) [DD footnote 5]. TW, by contrast, uses the opposite sign \([\rho u,\rho v]-\rho[u,v]\) (the docstring states this explicitly).

SectionMap, MappedSection → \(C^\infty\)-linear \(\Phi:E\to E\) or \(E\to TM\); \(\Phi(u)\)
MappedSectionLinearityDefinition → \(\Phi(fu+v)=f\Phi(u)+\Phi(v)\)
Jacobiator, JacobiatorExpansionDefinition → \(J^E(u,v,w)=[u,[v,w]]-[[u,v],w]-[v,[u,w]]\) (Leibniz form)
Derivator, DerivatorExpansionDefinition → \(D^E_\Phi(u,v)=\Phi[u,v]-[\Phi u,v]-[u,\Phi v]\) [DD (4.39), arXiv:2312.06584]
Predator, PredatorExpansionDefinition → \(P^E_\Phi(u,v)=\Phi[u,v]_E-[\Phi u,\Phi v]_{\mathrm{Lie}}\)
anchor_predator → \(P^E_\rho\); \(P^E_\rho\equiv0\iff\) anchor morphism

Jacobiator, anchor ρ, Lie bracket, linearity, rewrite rule, Derivator, Predator

DD footnote 5; DD (4.39), arXiv:2312.06584

mathematics

jacopy/central/algebroid/locality.py

Locality projector [MC Def 3.10]. On a regular anchored bundle (\(\ker\rho\) a subbundle) it is a \(C^\infty\)-linear map \(\mathcal P:\Gamma(E)\to\Gamma(E)\) with two properties. Absorption: \(\mathcal P(L(Df,u,v))=L(Df,u,v)\). Kernel: \(\rho(\mathcal P(L(\omega,u,v)))=0\). The option admissible=True adds idempotence as an extra condition [ADM Def 3.8].

LocalityProjector, locality_projector → \(\mathcal P\) (requires the regular declaration)
LocalityProjectorAbsorptionDefinition → \(\mathcal P L(Df,u,v)=L(Df,u,v)\) (\(\hat L\in[\tilde L]\))
LocalityProjectorKernelDefinition → \(\mathrm{im}\,\hat L\subset\ker\rho\)
LocalityProjectorIdempotenceDefinition → \(\mathcal P\mathcal P L=\mathcal P L\)

locality projector 𝒫, anchor ρ, linearity, rewrite rule

MC Def 3.10; ADM Def 3.8

mathematics

jacopy/central/algebroid/calculus.py

Algebroid Cartan calculus: the instance of the general BracketCalculus with \((\rho_E,[\cdot,\cdot]_E)\); operators \(d_E\), \(\mathcal L^E\), \(\iota\). \(d_E\) is alternating only when antisymmetric is declared; otherwise it is ordered multilinear. Conditional Cartan structure: the Cartan formula requires no axiom. On functions, \(d_E^2=0\) is equivalent to the anchor morphism axiom. On 1-forms, \(d_E^2=0\) requires anchor morphism + Jacobi + antisymmetry, i.e. a Lie algebroid.

algebroid_calculus → the \((\rho_E,[\cdot,\cdot]_E)\) calculus
d_E, lie_E, evaluate → \(d_E\omega\), \(\mathcal L^E_u\), evaluation
prove_d_on_functions → \(\langle d_Ef,u\rangle=\rho(u)f\)
prove_d_coincides_with_coboundary → \(\langle d_Ef,u\rangle=\langle Df,u\rangle\)
prove_palais_on_one_forms → \((d_E\alpha)(u,v)=\rho(u)\alpha(v)-\rho(v)\alpha(u)-\alpha([u,v]_E)\)
prove_lie_core_cases → \(\mathcal L^E_uf=\rho(u)f\), \(\mathcal L^E_uv=[u,v]_E\)
prove_cartan_magic_on_functions → \(\mathcal L^E_uf=(d_E\iota_u+\iota_ud_E)f\) (axiom-free)
prove_cartan_magic_on_one_forms → the same on 1-forms (axiom-free)
prove_d_squared_zero_on_functions → \((d_Ed_Ef)(u,v)=0\); obstruction \([\rho u,\rho v]f-\rho([u,v])f\), closes with anchor-morphism
jacobi_combination_theorem → example theorem \([u,[v,w]]-[[u,v],w]-[v,[u,w]]=0\)
prove_d_squared_zero_on_one_forms → \((d_Ed_E\alpha)(u,v,w)=0\) (anchor-morphism + jacobi + antisymmetric)

exterior derivative d, Lie derivative L, interior product ι, Cartan relations, d²=0, anchor ρ, Jacobi identity, Lie algebroid, almost-Lie algebroid, theorem builder

—

mathematics

jacopy/central/algebroid/theorems.py

Theorems between axioms [B §4, (4.11); MC §3]. Flagship theorem: right-Leibniz + Leibniz–Jacobi ⇒ anchor morphism, i.e. every Leibniz algebroid is pre-Leibniz. The proof uses an auxiliary-section argument: \(J(u,v,fw)=0\) is expanded, \(A\cdot w=0\) is obtained, and \(A=0\) follows by agreement on generators. In the metric family, C1 + non-degeneracy ⇒ right-Leibniz; C1 + C2 ⇒ left-Leibniz with an explicit locality term.

prove_anchor_morphism → \(\rho([u,v])=[\rho u,\rho v]\) (from right-Leibniz + jacobi)
prove_right_leibniz_from_metric → \([u,fv]=\rho(u)(f)v+f[u,v]\) (from C1 + non-degeneracy) [B (4.11)-1]
prove_left_leibniz_from_metric → \([fu,v]=f[u,v]-\rho(v)(f)u+g(u,v)\,g^{-1}(Df)\), i.e. \(L(Df,u,v)=g(u,v)g^{-1}(Df)\) [B (4.11)-2]
prove_locality_anchor_annihilation → on a local pre-Leibniz algebroid \(\rho(L(Df,u,v))=0\) [MC §3]
prove_anchor_predator_vanishes → on a Leibniz algebroid \(P_\rho(u,v)=0\)

anchor ρ, Leibniz rule, Jacobi identity, Courant algebroid, metric, locality projector 𝒫, theorem builder, proof chain, Predator, locality operator L

B §4, (4.11); MC §3; B (4.11)-1; B (4.11)-2; MC §3

mathematics

jacopy/central/algebroid/defect_formulas.py

Exact defect formulas of the broken Cartan relations [TW App. A, (A.5)/(A.7)/(A.8)]. This file uses the paper’s sign \(\mathcal P(u,v)=[\rho u,\rho v]-\rho[u,v]\); this is the negative of the \(P_\rho\) node in operators.py (code: _P = Neg(Act(anchor_predator…))). The Jacobiator \(\mathcal J\) is in Leibniz form. The Predator and the Jacobiator become the “curvature” of the calculus. Seven of the eight identities hold for every \(\mathbb R\)-bilinear bracket. (A.5)-2, however, requires antisymmetry; its general form is given with the symmetric-part correction \(S(a,b)=[a,b]+[b,a]\).

prove_defect_lie_lie_on_functions → \([\mathcal L_u,\mathcal L_v]f-\mathcal L_{[u,v]}f=\mathcal P(u,v)f\) (A.7-1)
prove_defect_d_squared_on_functions → \((d_Ed_Ef)(u,v)=\mathcal P(u,v)f\) (A.7-2)
prove_defect_lie_d_on_functions → \((\mathcal L_ud_Ef-d_E\mathcal L_uf)(v)=\mathcal P(u,v)f\) (A.7-3)
prove_defect_lie_lie_on_one_forms → \(([\mathcal L_u,\mathcal L_v]-\mathcal L_{[u,v]})\mu(w)=\mathcal P(u,v)(\iota_w\mu)-\mu(\mathcal J(u,v,w))\) (A.5-1)
prove_defect_d_squared_on_one_forms → \((d_E^2\mu)(u,v,w)=\mathcal P(u,v)\iota_w\mu-\mathcal P(u,w)\iota_v\mu+\mathcal P(v,w)\iota_u\mu-\mu(\mathcal J)\) (A.5-2; antisymmetric bracket only)
prove_defect_d_squared_on_one_forms_general → the same with \(+\mu(S(u,[v,w])-S(v,[u,w]))\) added, axiom-free
prove_defect_lie_d_on_one_forms → \((\mathcal L_ud_E\mu-d_E\mathcal L_u\mu)(v,w)=\mathcal P(u,v)\iota_w\mu-\mathcal P(u,w)\iota_v\mu-\mu(\mathcal J)\) (A.5-3)
prove_defect_calculus_condition_two → \((\mathcal L_ud_E\iota_w\eta-d_E\iota_{[u,w]}\eta-d_E\iota_w\mathcal L_u\eta)(v)=\mathcal P(u,v)(\iota_w\eta)\) (A.8-1)
prove_defect_calculus_condition_three → \((\mathcal L_wd_E\iota_v\omega-d_E\iota_wd_E\iota_v\omega)(u)=\mathcal P(w,u)(\iota_v\omega)\) (A.8-2)

Cartan relations, d²=0, Lie derivative L, exterior derivative d, Jacobiator, anchor ρ, almost-Lie algebroid, curvature, theorem builder, Predator

TW App. A, (A.5)/(A.7)/(A.8)

mathematics

jacopy/packages/ (root)

This folder contains the four geometry packages built on top of the central layer (TM Cartan calculus, abstract algebroid, Schouten–Nijenhuis): metric-affine geometry, symplectic/Poisson/Nambu–Poisson, algebroid calculus and Drinfel’d doubles, generalized geometry and Courant algebroids. Each package has a facade (__init__), which exports the object/bracket constructors, the prove_* theorem functions, and the package’s own rules.

Tip

Where to look

  • Where is metric-affine geometry (torsion, curvature, Levi-Civita)? → metric_affine/.

  • Where are the Poisson bracket, the Koszul bracket, and the symplectic form? → poisson/.

  • Where are the Drinfel’d double, the twists, and the Roytenberg bracket? → drinfeld/.

  • Where are the Courant/Dorfman brackets and the Courant axioms? → generalized/.

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/packages/__init__.py

List of the four subpackages; no mathematical content of its own.

—

—

—

infrastructure

jacopy/packages/metric_affine/

This package contains the metric-affine geometry tools. On the tangent bundle (TM) it provides the connection \(\nabla\), torsion \(T\), curvature \(R\), and non-metricity \(Q=\nabla g\), together with their tensoriality, Bianchi I/II (form with torsion), the Ricci identity, the generalized Koszul formula (Schouten decomposition), existence and uniqueness of the Levi-Civita connection, and frame components (\(\Gamma^a_{bc}\), Cartan structure equations, Ricci, Ricci scalar, Einstein). The same framework is carried over to an algebroid \(E\): the E-connection, pseudo-torsion/curvature, the torsion \(^{L}T\) modified by the locality operator \(L\) and the projected curvature \(^{L}\hat R\), admissible connections, the derived algebroid \(E^\nabla\) and the two exterior derivatives \(d(\nabla)\), \(\hat d(\nabla)\), the E-Koszul formula, and the E-Bianchi and E-Cartan equations. Main sources: MC (2020) and ADM (2023).

Tip

Where to look

  • Where are the definition and tensoriality of torsion and curvature? → torsion_curvature.py (prove_torsion_tensorial, prove_curvature_tensorial).

  • Where are the Koszul formula and uniqueness of Levi-Civita? → metric_koszul.py (prove_koszul_formula, prove_levi_civita_unique); algebroid version: e_koszul.py.

  • Where are Bianchi I/II with torsion proved? → bianchi.py; algebroid (E-Bianchi) version: e_bianchi.py.

  • Where are the Cartan structure equations and the Ricci/Einstein components? → frame_components.py; algebroid version: e_cartan.py.

  • Where are the locality-corrected torsion \(^{L}T\) and the projected curvature \(^{L}\hat R\)? → modified.py.

  • Where is the equivalence admissible connection ⟺ metric compatibility (almost-Courant)? → admissible.py.

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/packages/metric_affine/__init__.py

Package facade: exported names of the torsion, curvature, non-metricity, Ricci, Einstein, Bianchi, Cartan, Koszul, Schouten and E-connection layer.

Bridge as_metric_context between Metric (package context) and the central \(g\) atom

—

—

infrastructure

jacopy/packages/metric_affine/rules.py

Definitional structure of an affine connection: \(C^\infty\)-linearity in the direction slot, Leibniz in the argument.

ConnectionDirectionLinearityDefinition → \(\nabla_{fX+Y}T=f\nabla_XT+\nabla_YT\)
ConnectionArgumentLeibnizDefinition → \(\nabla_X(fT)=X(f)\,T+f\,\nabla_XT\)

connection, covariant derivative ∇, linearity, Leibniz rule, rewrite rule

—

partial

jacopy/packages/metric_affine/metric_affine_expansion.py

The package engine: TM engine + connection rules.

metric_affine_engine → tangent Cartan calculus + \(\nabla\) rules

connection, rewrite rule

—

infrastructure

jacopy/packages/metric_affine/engine.py

Legacy path of metric_affine_expansion.py (alias).

—

—

—

infrastructure

jacopy/packages/metric_affine/torsion_curvature.py

Canonical definitions of torsion and curvature and the classical properties derived from them (tensoriality, antisymmetry, tensoriality of the difference of two connections).

TorsionExpansionDefinition → \(T(X,Y)=\nabla_XY-\nabla_YX-[X,Y]\)
CurvatureExpansionDefinition → \(R(X,Y)Z=\nabla_X\nabla_YZ-\nabla_Y\nabla_XZ-\nabla_{[X,Y]}Z\)
prove_torsion_tensorial → \(T(fX,Y)=T(X,fY)=fT(X,Y)\)
prove_torsion_antisymmetry → \(T(X,Y)=-T(Y,X)\)
prove_curvature_tensorial → \(R\) is \(C^\infty\)-linear in all three slots
prove_curvature_antisymmetry → \(R(X,Y)=-R(Y,X)\)
prove_connection_difference_tensorial → \(\nabla-\nabla'\) is a (1,2)-tensor

torsion, curvature, connection, covariant derivative ∇, tensor, linearity, Lie bracket, vector field

MC Prop 3.1 (difference tensor pattern)

mathematics

jacopy/packages/metric_affine/metric.py

(Pseudo-)Riemannian metric context and the definition of non-metricity; declarations of metric compatibility and torsion-freeness.

Metric, MetricValue → symmetric, non-degenerate (0,2)-tensor \(g(X,Y)\)
NonMetricityExpansionDefinition → \(Q(X,Y,Z)=X\,g(Y,Z)-g(\nabla_XY,Z)-g(Y,\nabla_XZ)\)
MetricCompatibilityDefinition → declaration \(\nabla g=0\)
TorsionFreeDefinition → declaration \(T=0\), i.e. \([X,Y]=\nabla_XY-\nabla_YX\)
InverseMetricComponent, MetricInverseContractionDefinition → \(g^{ab}\), \(\sum_s g^{as}g_{sc}=\delta^a_c\)

metric, non-metricity, tensor, connection, torsion, frame/coframe, assumption/declaration

—

mathematics

jacopy/packages/metric_affine/metric_koszul.py

The Koszul formula family: the generalized Koszul identity for an arbitrary connection (Schouten decomposition), the classical Koszul formula for Levi-Civita, and uniqueness.

prove_generalized_koszul → \(2g(\nabla_XY,Z)=Xg(Y,Z)+Yg(X,Z)-Zg(X,Y)+g([X,Y],Z)-g([X,Z],Y)-g([Y,Z],X)-Q(X,Y,Z)-Q(Y,X,Z)+Q(Z,X,Y)+g(T(X,Y),Z)-g(T(X,Z),Y)-g(T(Y,Z),X)\) (Q-block: disformation; T-block: contorsion)
prove_koszul_formula → classical Koszul formula under the declaration \(Q=0\), \(T=0\)
prove_levi_civita_unique → two metric-compatible torsion-free connections are equal (using non-degeneracy)

Koszul formula, Levi-Civita, metric, non-metricity, torsion, connection

—

mathematics

jacopy/packages/metric_affine/koszul.py

Legacy path of metric_koszul.py (alias); not the Poisson Koszul bracket.

—

—

—

infrastructure

jacopy/packages/metric_affine/bianchi.py

Bianchi I/II with torsion (metric-affine) and the Ricci identity on functions; the only external input consists of section-level Lie–Jacobi instances.

prove_bianchi_first → \(\mathfrak S\,R(X,Y)Z=\mathfrak S\,[T(T(X,Y),Z)+(\nabla_XT)(Y,Z)]\)
prove_bianchi_second → \(\mathfrak S\,[(\nabla_XR)(Y,Z)W+R(T(X,Y),Z)W]=0\)
prove_ricci_identity_on_functions → \(\nabla_X\nabla_Yf-\nabla_Y\nabla_Xf-\nabla_{[X,Y]}f=0\)
covariant_torsion_derivative, covariant_curvature_derivative → explicit expansion of \((\nabla_XT)\), \((\nabla_XR)\)

Bianchi identity, curvature, torsion, covariant derivative ∇, Jacobi identity, Lie bracket

—

mathematics

jacopy/packages/metric_affine/frame_components.py

Frame components of a connection and the component formulas derived from them: torsion, curvature, Cartan structure equations, Ricci, Ricci scalar, Einstein.

ConnectionCoefficient → \(\Gamma^a_{bc}=\langle e^a,\nabla_{e_b}e_c\rangle\)
ConnectionForm → connection 1-form \(\omega^a{}_b(X)=\langle e^a,\nabla_Xe_b\rangle\)
prove_torsion_components → \(T^a{}_{bc}=\Gamma^a_{bc}-\Gamma^a_{cb}-\gamma^a_{bc}\) (γ: anholonomy)
prove_connection_form_on_frame → \(\omega^a{}_b(e_c)=\Gamma^a_{cb}\)
prove_cartan_first_structure, prove_cartan_first_evaluated → \(T^a=de^a+\omega^a{}_b\wedge e^b\) (on the frame)
prove_cartan_second_structure → \(R^a{}_b=d\omega^a{}_b+\omega^a{}_c\wedge\omega^c{}_b\) (on the frame)
prove_curvature_components → formula for \(R^a{}_{bcd}\) in terms of \(\Gamma,\gamma\)
ricci_component, prove_ricci_components → component formula of the trace \(Ric_{bd}=\sum_s R^s{}_{dsb}\)
ricci_scalar, prove_ricci_scalar_components → \(R=g^{st}Ric_{st}\)
einstein_component → \(G_{bd}=Ric_{bd}-\tfrac12 R\,g_{bd}\)

frame/coframe, connection, torsion, curvature, Cartan structure equations, Ricci/Einstein, wedge product, differential form, metric

—

mathematics

jacopy/packages/metric_affine/decomposition.py

Completeness axioms of the frame (opt-in) and commutation of linear operators with finite indexed sums.

ConnectionFrameDecompositionDefinition → \(\nabla_{e_b}e_c=\sum_s\Gamma^s_{bc}e_s\)
BracketFrameDecompositionDefinition → \([e_a,e_b]=\sum_s\gamma^s_{ab}e_s\)
IndexedSumOperatorPushDefinition, MetricIndexedSumPushDefinition → \(D(\sum_s t_s)=\sum_s D(t_s)\), \(g(\sum_s V_s,W)=\sum_s g(V_s,W)\)

frame/coframe, connection, Lie bracket, linearity, rewrite rule

—

partial

jacopy/packages/metric_affine/nonmetricity_forms.py

Non-metricity 1-forms \(Q_{ab}\) and their properties; relation to the connection 1-forms.

NonMetricityForm → \(Q_{ab}(v)=Q(\nabla,g)(v,e_a,e_b)\)
prove_nonmetricity_form_symmetric → \(Q_{ab}=Q_{ba}\)
prove_nonmetricity_form_tensorial → \(Q_{ab}(fX)=fQ_{ab}(X)\)
prove_nonmetricity_form_components → \(Q_{ab}(e_c)=e_c(g_{ab})-\sum_s\Gamma^s_{ca}g_{sb}-\sum_s\Gamma^s_{cb}g_{as}\)
prove_nonmetricity_form_cartan → \(Q_{ab}=dg_{ab}-\omega_{ba}-\omega_{ab}\) (on the frame)

non-metricity, differential form, frame/coframe, connection, metric, Cartan structure equations

ADM (2.4), (2.5), (2.12), (2.13)

mathematics

jacopy/packages/metric_affine/component_workflow.py

Substituting concrete component data supplied by the user (\(\Gamma^a_{bc}\), \(g_{ab}\), \(\gamma^c_{ab}\), \(\theta^{ab}\)) into symbolic component expressions and evaluating them.

ComponentInput → component data (\(g\) stored symmetric, \(\theta\) antisymmetric)
ConcreteDeltaDefinition → \(\delta^a_b=0\) for distinct concrete indices
IndexedSumUnrollDefinition → unrolling \(\sum_s\) over a finite frame

frame/coframe, connection, metric, Poisson structure, normal form/simplification

—

partial

jacopy/packages/metric_affine/e_connection.py

Linear E-connection on an anchored bundle \((E,\rho)\) and the pseudo-tensorial E-torsion/E-curvature; the tensoriality defect in the first slot caused by the locality operator.

EConnectionScalarActionDefinition → \(\nabla_uf=\rho(u)(f)\)
ETorsionExpansionDefinition → \(T^{(0)}(u,v)=\nabla_uv-\nabla_vu-[u,v]_E\)
ECurvatureExpansionDefinition → \(R^{(0)}(u,v)w=\nabla_u\nabla_vw-\nabla_v\nabla_uw-\nabla_{[u,v]_E}w\)
prove_e_connection_anchored_leibniz → \(\nabla_u(fv)=\rho(u)(f)v+f\nabla_uv\)
prove_e_torsion_second_slot_tensorial → \(T^{(0)}(u,fv)=fT^{(0)}(u,v)\)
prove_pseudo_torsion_first_slot_defect → \(T^{(0)}(fu,v)=fT^{(0)}(u,v)-L(Df,u,v)\)
prove_e_curvature_last_slot_conditional → \(R^{(0)}(u,v)(fw)=fR^{(0)}(u,v)w\) ⟺ the anchor is a bracket morphism

connection, covariant derivative ∇, anchor ρ, torsion, curvature, Leibniz rule, vector bundle, locality operator L

MC Def 3.2, (3.8)–(3.9), (3.19), Prop 3.3

mathematics

jacopy/packages/metric_affine/modified.py

Locality-corrected (modified) E-torsion and projected E-curvature; tensoriality of both and the generalized Ricci identity. The locality projector \(\mathcal P\) is used here.

modified_torsion → \(^{L}T(u,v)=T^{(0)}(u,v)+\sum_sL(e^s,\nabla_{e_s}u,v)\)
projected_curvature → \(^{L}\hat R(u,v)w=R^{(0)}(u,v)w+\sum_s\nabla_{\mathcal P L(e^s,\nabla_{e_s}u,v)}w\)
CoframeRecombinationDefinition → \(\sum_s\rho(e_s)(f)\,E(e^s)=E(Df)\)
prove_modified_torsion_tensorial → \(^{L}T\) is a tensor in both slots
prove_projected_curvature_first_slot, prove_projected_curvature_last_slot → \(^{L}\hat R\) is a tensor in the first and last slots (with the absorption and kernel rules of \(\mathcal P\))
prove_generalized_ricci_identity → \(\nabla^2_{u,v}w-\nabla^2_{v,u}w={}^{L}\hat R(u,v)w-\nabla_{^{L}T(u,v)}w+\sum_s\nabla_{(1-\mathcal P)L(e^s,\nabla_{e_s}u,v)}w\)

torsion, curvature, connection, tensor, locality projector 𝒫, locality operator L, frame/coframe

MC Cor 3.2, Def 3.7, Prop 3.3–3.4, Cor 3.3, Def 3.11; ADM Prop 3.8, (3.36)

mathematics

jacopy/packages/metric_affine/admissible.py

Admissible E-connections on a local almost-Leibniz algebroid: generation of the symmetric part of the bracket by \(L\) and \(\nabla\); relation to torsion-freeness and metric compatibility; the modified bracket.

AdmissibilityDeclaration → declaration \([u,v]+[v,u]=\sum_sL(e^s,\nabla_{e_s}u,v)+\sum_sL(e^s,\nabla_{e_s}v,u)\)
modified_bracket → \([u,v]^\nabla=[u,v]_E-\sum_sL(e^s,\nabla_{e_s}u,v)\)
prove_torsion_free_implies_admissible → \(^{L}T=0\Rightarrow\) admissible
prove_modified_torsion_symmetric_part_vanishes → if admissible then \(^{L}T(u,v)+{}^{L}T(v,u)=0\)
prove_courant_locality_generator → in the almost-Courant case \(S(fu,v)=fS(u,v)+{}^{g}L(Df,u,v)\), \({}^{g}L(\Omega,u,v)=g(u,v)\,g^{-1}(\Omega)\)
prove_metric_compatible_implies_admissible, prove_admissible_implies_metric_compatible → in the almost-Courant case, admissible ⟺ metric-compatible
prove_modified_bracket_left_leibniz → \([fu,v]^\nabla=f[u,v]^\nabla-\rho(v)(f)u\) (the modified pair is almost-dull)

connection, torsion, metric, non-metricity, Courant algebroid, Leibniz rule, locality operator L, assumption/declaration

ADM Def 3.3–3.4, Prop 3.2, Cor 3.2, Prop 3.3, Prop 3.5, (3.12); MC Prop 4.1; B (4.8)

mathematics

jacopy/packages/metric_affine/derived.py

The derived algebroid \(E^\nabla\) (whose bracket is the modified or the projected modified bracket) and the two exterior derivatives \(d(\nabla)\), \(\hat d(\nabla)\) attached to it; the Cartan magic formula and \(\hat d^2\).

derived_algebroid → \([u,v]_{E^\nabla}=[u,v]_E-\Lambda(u,v)\) (or \(-\hat\Lambda\)), \(\rho_{E^\nabla}=\rho_E\)
d_derived, lie_derived → \(d(\nabla)\) / \(\hat d(\nabla)\) and \(\mathcal L^\nabla_u\) (Palais type)
prove_derived_magic_on_functions, prove_derived_magic_on_forms → \(\mathcal L^\nabla_u=d(\nabla)\iota_u+\iota_u d(\nabla)\)
prove_projected_d_squared_on_functions → \((\hat d(\nabla)^2f)(u,v)=0\) under the anchor-morphism declaration
prove_projected_d_squared_associator → on 1-forms \((\hat d^2\alpha)(u,v,w)=\langle\alpha,\hat b(\hat b(u,v),w)-\hat b(\hat b(u,w),v)+\hat b(\hat b(v,w),u)\rangle\) (associator)

exterior derivative d, Lie derivative L, interior product ι, Cartan relations, d²=0, Jacobiator, anchor ρ, locality projector 𝒫

ADM Def 3.14–3.16, (3.41)–(3.45)

mathematics

jacopy/packages/metric_affine/e_bianchi.py

E-Bianchi I and II (identity form) for an arbitrary E-connection; the simplified form of I for an admissible connection.

prove_e_bianchi_first_identity → \(\mathfrak S\,{}^{L}\hat R(u,v)w=\mathfrak S[(\nabla_u{}^{L}T)(v,w)+{}^{L}T({}^{L}T(u,v),w)]-\mathfrak S\nabla_{(1-\mathcal P)\Lambda(u,v)}w-\mathfrak S\,b(b(u,v),w)-\mathfrak S[b(v,\nabla_uw)+b(\nabla_vu,w)]\) (if admissible, the last block drops out)
prove_e_bianchi_second_identity → identity for \(\mathfrak S[(\nabla_u{}^{L}\hat R)(v,w)x+{}^{L}\hat R({}^{L}T(u,v),w)x]\) with correction blocks (according to the docstring)
anomaly_direction → \((1-\mathcal P)\Lambda(u,v)\)
projected_modified_bracket → \(\hat b=[\cdot,\cdot]_E-\hat\Lambda\)

Bianchi identity, curvature, torsion, connection, Jacobiator, locality projector 𝒫

ADM Prop 3.7, (3.35)

mathematics

jacopy/packages/metric_affine/e_cartan.py

E-Cartan structure equations with two exterior derivatives on an anti-commutable local pre-Leibniz algebroid, evaluated on a frame.

prove_e_cartan_first → \(T^a(\nabla)=d(\nabla)e^a+\omega^a{}_b\wedge e^b\) (undeclared)
prove_e_cartan_second → \(R^a{}_b(\nabla)=\hat d(\nabla)\omega^a{}_b+\omega^a{}_c\wedge\omega^c{}_b\) (with the frame decomposition declaration)
e_cartan_engine → derived algebroid engine + frame layer

Cartan structure equations, torsion, curvature, exterior derivative d, wedge product, frame/coframe

ADM Prop 3.9, (3.38)–(3.42), (3.48)

mathematics

jacopy/packages/metric_affine/e_koszul.py

The Koszul formula family on an algebroid: the E-generalized Koszul identity with locality correction \(K\), the E-Koszul connection, its relation to admissibility, uniqueness under null locality, and the fundamental theorem in components.

e_nonmetricity → \(Q(u,v,w)=\rho(u)g(v,w)-g(\nabla_uv,w)-g(v,\nabla_uw)\)
koszul_correction → \(K(u,v,w)=-g(\sum_sL(e^s,\nabla_{e_s}v,w),u)-g(\sum_sL(e^s,\nabla_{e_s}u,w),v)+g(\sum_sL(e^s,\nabla_{e_s}u,v),w)\)
prove_e_generalized_koszul → \(2g(\nabla_uv,w)+K\) = Koszul right-hand side + \(Q\)-block + \(^{L}T\)-block (any connection)
prove_e_koszul_formula → clean E-Koszul formula under \(^{L}T=0\), \(Q=0\)
prove_e_koszul_admissible_implies_compatible, prove_e_koszul_admissible_implies_torsion_free → E-Koszul + admissible ⇒ \(Q=0\) and \(^{L}T=0\)
prove_metric_lie_derivative_identity → \((\mathcal L^\nabla_vg)(u,w)=g(\nabla_uv,w)+g(u,\nabla_wv)\)
prove_koszul_reference_decomposition → deviation of an arbitrary \(\nabla\) from the E-Koszul reference = \(Q\) and \(^{L}T\) blocks (E-Schouten)
prove_e_koszul_unique_under_null_locality → for \(L=0\) the E-Koszul connection is unique
prove_fundamental_theorem_components → \(\Gamma_{dbc}=\Gamma(K\nabla)_{dbc}+\tfrac12[-Q_{bcd}-Q_{cbd}+Q_{dbc}+{}^0T_{dbc}-{}^0T_{cbd}-{}^0T_{bcd}]\)
prove_projectors_agree_on_coboundary_values → two locality projectors coincide on the values \(L(Df,u,v)\)

Koszul formula, Levi-Civita, metric, non-metricity, torsion, frame/coframe, locality projector 𝒫, locality operator L

MC Prop 3.7–3.8, Def 3.14, Prop 3.10, Thm 3.2, (3.36), (3.44), Prop 4.2; ADM Prop 3.12–3.14

mathematics

jacopy/packages/poisson/

This package contains the symplectic, Poisson, and Nambu–Poisson tools: the Poisson bracket \(\{f,g\}=\pi(df,dg)\) defined by the Poisson bivector \(\pi\), the Hamiltonian vector field, and the sharp map \(\pi^\sharp\); the Koszul bracket \([\alpha,\beta]_\pi\) on 1-forms and the cotangent Lie algebroid \((T^*M,\pi^\sharp,[\cdot,\cdot]_\pi)\); the Jacobi identities under the declaration \([\pi,\pi]_{SN}=0\) (including Koszul–Jacobi on general 1-forms); the symplectic form \(\omega\) and the bridge \(\pi=\omega^{-1}\); the tilde calculus \((\tilde d,\tilde{\mathcal L},\tilde\iota)\) with the roles interchanged; and the Nambu–Poisson \((p+1)\)-vector with the higher Koszul bracket. Jacobi-type identities are always proved under the declaration \([\pi,\pi]_{SN}=0\) (or the fundamental identity).

Tip

Where to look

  • Where are the definition, antisymmetry and Leibniz rule of the Poisson bracket? → core.py.

  • Where is the Jacobi identity of the Poisson bracket proved? → showcase.py (prove_poisson_jacobi, under the declaration \([\pi,\pi]_{SN}=0\)).

  • Where is the Jacobi identity of the Koszul bracket on general 1-forms? → koszul_jacobi.py (prove_general_koszul_jacobi).

  • Where are the symplectic form and the preservation of \(\omega\) by the Hamiltonian flow? → symplectic.py.

  • Where are the tilde calculus (\(\tilde d\), \(\tilde{\mathcal L}\), \(\tilde\iota\)) and \(\tilde d^2=0\)? → tilde.py.

  • Where are the Nambu–Poisson structure and the higher Koszul bracket? → nambu.py.

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/packages/poisson/__init__.py

Package facade: Poisson core, Koszul, cotangent algebroid, tilde calculus, Nambu–Poisson.

—

—

—

infrastructure

jacopy/packages/poisson/core.py

Poisson structure and canonical definitions; antisymmetry, the Leibniz rule, the bracket with constants, and sharp/Hamiltonian compatibility, proved as theorems.

PoissonStructure, poisson_structure → \((M,\pi)\); opt-in declaration \([\pi,\pi]_{SN}=0\) (PoissonSNDeclaration)
PoissonBracketDefinition → \(\{f,g\}=\pi(df,dg)\)
HamiltonianActionDefinition → \(X_f(g)=\{f,g\}\)
SharpEvaluationDefinition → \(\langle\beta,\pi^\sharp\alpha\rangle=\pi(\alpha,\beta)\)
prove_poisson_antisymmetry → \(\{f,g\}=-\{g,f\}\)
prove_poisson_leibniz → \(\{f,gh\}=g\{f,h\}+h\{f,g\}\)
prove_poisson_constant → \(\{f,c\}=0\)
prove_hamiltonian_is_sharp → \(\langle dg,\pi^\sharp df\rangle=X_f(g)\)

Poisson structure, Poisson bracket, Hamiltonian vector field, multivector, Schouten–Nijenhuis bracket, Leibniz rule, assumption/declaration

—

mathematics

jacopy/packages/poisson/koszul_forms.py

The Koszul bracket on 1-forms; its antisymmetry, and on exact forms its value as the differential of the Poisson bracket.

KoszulBracketDefinition → \([\alpha,\beta]_\pi=\mathcal L_{\pi^\sharp\alpha}\beta-\mathcal L_{\pi^\sharp\beta}\alpha-d\,\pi(\alpha,\beta)\)
SharpVFLinearityDefinition → \(\pi^\sharp(f\alpha+\beta)=f\pi^\sharp\alpha+\pi^\sharp\beta\)
prove_koszul_antisymmetry → \([\alpha,\beta]_\pi=-[\beta,\alpha]_\pi\)
prove_koszul_on_exact_forms → \([df,dg]_\pi=d\{f,g\}\)

Koszul bracket, Lie derivative L, exterior derivative d, differential form, Poisson bracket

—

mathematics

jacopy/packages/poisson/koszul.py

Legacy path of koszul_forms.py (alias).

—

—

—

infrastructure

jacopy/packages/poisson/showcase.py

Cotangent algebroid showcase: right-Leibniz for the Koszul bracket, Poisson–Jacobi under \([\pi,\pi]_{SN}=0\), and the Hamiltonian anchor morphism; evaluation view of the Schouten square.

SNBivectorExactEvalDefinition → \([\pi,\pi](df,dg,dh)=2\sum_{cyc}\pi(df,d\pi(dg,dh))\)
SNBivectorGeneralEvalDefinition → \([\pi,\pi](\alpha,\beta,\gamma)=2(\langle\gamma,[\pi^\sharp\alpha,\pi^\sharp\beta]\rangle-\langle\gamma,\pi^\sharp[\alpha,\beta]_\pi\rangle)\)
prove_koszul_right_leibniz → \([\alpha,f\beta]_\pi=f[\alpha,\beta]_\pi+(\pi^\sharp\alpha)(f)\beta\) (undeclared)
prove_poisson_jacobi → \(\{f,\{g,h\}\}+\{g,\{h,f\}\}+\{h,\{f,g\}\}=0\) (under declaration)
prove_hamiltonian_morphism → \(X_{\{f,g\}}=[X_f,X_g]\)
prove_sn_eval_views_agree_on_exacts → the two evaluation views coincide on exact forms

cotangent algebroid, Lie algebroid, Koszul bracket, Jacobi identity, Schouten–Nijenhuis bracket, Hamiltonian vector field, anchor ρ, Leibniz rule

—

mathematics

jacopy/packages/poisson/koszul_jacobi.py

Jacobi identity of the Koszul bracket on general (non-exact) 1-forms, under the declaration \([\pi,\pi]_{SN}=0\); the proof is built with a certificate, as a rational linear combination of “seeds” known to vanish.

prove_general_koszul_jacobi → \(\langle[\alpha,[\beta,\gamma]_\pi]_\pi+[\beta,[\gamma,\alpha]_\pi]_\pi+[\gamma,[\alpha,\beta]_\pi]_\pi,X\rangle=0\)
koszul_jacobi_certificate, KoszulJacobiCertificate, ZeroSeed → \(\mathrm{Jac}=\sum_ic_iS_i\), each \(S_i=0\) proved (found by Gaussian elimination, then checked)
prove_koszul_zero_by_certificate → replayable proof chain from the certificate

Koszul bracket, Jacobi identity, Schouten–Nijenhuis bracket, proof chain, assumption/declaration

—

partial

jacopy/packages/poisson/symplectic.py

The symplectic special case: closed, non-degenerate \(\omega\); preservation of \(\omega\) by the Hamiltonian flow; the bracket chain through the bridge \(\pi=\omega^{-1}\) (convention: interior product into the first slot).

SymplecticHamiltonianDefinition → \(\iota_{X_f}\omega=df\)
SymplecticClosedDeclaration → declaration \(d\omega=0\)
SharpFlatIdentityDeclaration → \(\pi^\sharp(\iota_X\omega)=X\)
PoissonOmegaBridgeDeclaration → \(\pi(df,dg)=\omega(X_g,X_f)\)
prove_hamiltonian_flow_invariance → \((\mathcal L_{X_f}\omega)(Y,Z)=0\)
prove_bracket_via_omega, prove_bracket_via_iota, prove_bracket_via_double_iota → \(\{f,g\}=\omega(X_g,X_f)=\iota_{X_f}dg=\iota_{X_f}\iota_{X_g}\omega\)
prove_sharp_flat_identity → \(\langle\beta,\pi^\sharp(\iota_X\omega)\rangle=\langle\beta,X\rangle\)

symplectic form, Hamiltonian vector field, Poisson bracket, interior product ι, Lie derivative L, exterior derivative d, assumption/declaration

—

mathematics

jacopy/packages/poisson/tilde.py

The tilde calculus applied to the cotangent algebroid: sections are 1-forms, “forms” are multivectors; \(\tilde d\), \(\tilde{\mathcal L}\), \(\tilde\iota\), the Cartan magic formula, \(\tilde d^2=0\), and tilde anholonomy.

tilde_calculus, d_tilde, lie_tilde → \(\tilde d:\mathfrak X^p\to\mathfrak X^{p+1}\), \(\tilde{\mathcal L}_\alpha\), \(\tilde\iota_\alpha\)
prove_d_tilde_on_functions → \(\langle\tilde df,\alpha\rangle=\pi(\alpha,df)\)
prove_d_tilde_palais_on_vectors → \((\tilde dX)(\alpha,\beta)=(\pi^\sharp\alpha)\langle X,\beta\rangle-(\pi^\sharp\beta)\langle X,\alpha\rangle-\langle X,[\alpha,\beta]_\pi\rangle\)
prove_tilde_magic_on_functions, prove_tilde_magic_on_vectors → \(\tilde{\mathcal L}_\alpha=\tilde d\tilde\iota_\alpha+\tilde\iota_\alpha\tilde d\)
prove_lie_tilde_iota_commutator_on_vectors → \([\tilde{\mathcal L}_\alpha,\tilde\iota_\beta]=\tilde\iota_{[\alpha,\beta]_\pi}\)
prove_d_tilde_squared_on_exacts → \((\tilde d\tilde df)(dg,dh)=0\) (under declaration)
prove_lie_tilde_commutator_on_exacts, prove_lie_tilde_d_iota_commutation_on_exacts/_general, prove_lie_tilde_d_iota_exact_on_exacts/_general → the three calculus conditions in the tilde setting (on exact and general 1-forms)
TildeAnholonomyCoefficient, prove_tilde_gamma_antisymmetry → \(\tilde\gamma_c{}^{ab}=\langle[e^a,e^b]_\pi,e_c\rangle\), antisymmetric in \(a\leftrightarrow b\)
LieDCommutationDefinition → \(\mathcal L_X(df)=d(Xf)\)

tilde calculus, cotangent algebroid, Koszul bracket, Cartan relations, d²=0, multivector, frame/coframe, Jacobi identity

—

mathematics

jacopy/packages/poisson/nambu.py

Nambu–Poisson structure of order \(p\) (\((p+1)\)-vector \(\Pi\)), the Nambu bracket, and the Dorfman-type higher Koszul bracket on \(p\)-forms; reduction to the Koszul bracket at \(p=1\), right-Leibniz, exactness of the symmetric part, and Leibniz–Jacobi under the fundamental identity.

NambuPoissonStructure, nambu_structure → \((M,\Pi)\); opt-in fundamental identity
NambuSharpActionDefinition → \((\Pi\omega)(f)=\Pi(\alpha_1,\dots,\alpha_p,df)\)
nambu_koszul_bracket → \([\omega,\eta]_\Pi=\mathcal L_{\Pi\omega}\eta-\iota_{\Pi\eta}d\omega\)
prove_nambu_right_leibniz → \([\omega,f\eta]_\Pi=f[\omega,\eta]_\Pi+(\Pi\omega)(f)\eta\)
prove_nambu_symmetric_part_exact → \([\omega,\eta]_\Pi+[\eta,\omega]_\Pi=d(\iota_{\Pi\omega}\eta+\iota_{\Pi\eta}\omega)\)
prove_dorfman_form_reduces_to_koszul_at_p1 → at \(p=1\), \([\cdot,\cdot]_\Pi=[\cdot,\cdot]_\pi\)
NambuFIDeclaration → fundamental identity, bracket-morphism form \([\Pi\omega,\Pi\eta]=\Pi[\omega,\eta]\) (on exact generators)
prove_nambu_leibniz_jacobi_on_exacts → Leibniz–Jacobi on exact wedge generators
NambuToPoissonSharpDefinition, poisson_view → bridge \(\Pi(\omega)=\pi^\sharp\omega\) at \(p=1\)

Nambu–Poisson, Koszul bracket, multivector, Leibniz rule, Jacobi identity, Dorfman bracket, assumption/declaration

DD §6, (6.8), (6.9), remark after (6.13); GM (context of Leibniz-type Nambu brackets)

mathematics

jacopy/packages/drinfeld/

This package contains the tools for calculus on algebroids and for Drinfel’d doubles. It contains: the calculus \((\mathcal L,\iota,d)\) induced on \(Z\) by an algebroid \(A\), and the second action \(\mathcal K_V=-\mathcal L_V+d\iota_V\); the bialgebroid compatibility conditions; the double bracket on \(E=A\oplus Z\) (standard double = Dorfman bracket, Poisson/LWX double, Nambu double); metric invariance; and the fact that the anchor is a bracket morphism. It also contains the twist automorphisms \(\Psi\) (\(\Psi_\Pi\), \(\Psi_B\), \(\Psi_m\)) and \([u,v]_\Psi=\Psi^{-1}[\Psi u,\Psi v]\), the R-twist \(R'(\omega,\eta)=[\Pi\omega,\Pi\eta]-\Pi[\omega,\eta]\), the H-twist, and the general 8-component Roytenberg bracket, as well as the \(B_n\) and exceptional (\(TM\oplus\Lambda^2\oplus\Lambda^5\)) examples. Main sources: DD (2024) and TW (2025).

Tip

Where to look

  • Where are “standard double = Dorfman bracket” and its Leibniz–Jacobi identity? → double.py (dorfman_double, prove_dorfman_jacobi_form).

  • Where are the calculus conditions and the \(\mathcal K\)-operator? → calculus_conditions.py; tilde (Nambu) version: tilde_calculus.py.

  • Where are the twist \(\Psi\) (\(\Psi_\Pi\), \(\Psi_B\), \(\Psi_m\)) and the R-twist \(R'\)? → twist.py.

  • Where is “H-twisted Dorfman is Courant ⟺ \(dH=0\)”? → roytenberg.py (prove_h_twisted_jacobi_measures_dh).

  • Where is it proved that the total anchor is a bracket morphism? → bracket_morphism.py.

  • Where are the E6 exceptional Courant bracket (\(TM\oplus\Lambda^2\oplus\Lambda^5\)) and the \(\Psi_\Pi\) twist? → examples.py.

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/packages/drinfeld/__init__.py

Package facade; states that the DD and TW equation numbers are labeled separately.

—

—

DD; TW

infrastructure

jacopy/packages/drinfeld/calculus_conditions.py

The three conditions of the calculus on Z induced by A, and the \(\mathcal K\)-operator; proof that the ordinary Cartan calculus (\(A=TM\), \(Z=\Lambda^pT^*M\)) satisfies these conditions.

kappa → \(\mathcal K_X=-\mathcal L_X+d\iota_X\) (\(=-\iota_Xd\) in Cartan)
prove_calculus_condition_one → \(\mathcal L_U\mathcal L_V-\mathcal L_V\mathcal L_U=\mathcal L_{[U,V]}\)
prove_calculus_condition_two → \(\mathcal L_Ud\iota_W\eta=d\iota_{[U,W]}\eta+d\iota_W\mathcal L_U\eta\)
prove_calculus_condition_three → \(\mathcal L_Wd\iota_V\omega=d\iota_Wd\iota_V\omega\)
prove_kappa_kappa → \(\mathcal K_U\mathcal K_V\omega=-\mathcal K_U\mathcal L_V\omega\)
prove_kappa_bracket → \(\mathcal K_{[U,V]}\omega=\mathcal K_V\mathcal K_U\omega+\mathcal L_U\mathcal K_V\omega\)

Cartan relations, Lie derivative L, interior product ι, exterior derivative d, bialgebroid, Jacobi identity

DD §4, (4.4)–(4.5), (4.14), (4.18), (4.32)–(4.34), App A

mathematics

jacopy/packages/drinfeld/poisson_bialgebroid.py

Compatibility conditions for the Poisson Lie bialgebroid \((TM,T^*M_\pi)\) (including the derivation/derivator condition).

kappa_cartan → \(\mathcal K_W\omega=-\iota_Wd\omega\)
kappa_tilde → \(\tilde{\mathcal K}_\eta V=[V,\pi^\sharp\eta]-\pi^\sharp(\mathcal L_V\eta)\)
lie_tilde_vf → \(\tilde{\mathcal L}_\omega V=[\pi^\sharp\omega,V]+\pi^\sharp(\iota_Vd\omega)\)
prove_compat_condition_one → \(\mathcal D^Z_{\mathcal L_U}(\eta,\mu)=\mathcal L_{\tilde{\mathcal K}_\eta U}\mu+\mathcal K_{\tilde{\mathcal K}_\mu U}\eta\)
prove_compat_condition_two → \(\mathcal L_{\tilde d\tilde\iota_\eta U}\mu=-[d\iota_U\eta,\mu]_\pi\)
prove_compat_condition_three_p1 → the third condition at \(p=1\) (\(g_Z\) vanishes by alternation)

bialgebroid, Poisson structure, Koszul bracket, tilde calculus, Cartan relations

DD (4.36)–(4.38), (4.41), (6.6)–(6.7), (6.17)

mathematics

jacopy/packages/drinfeld/double.py

The Drinfel’d double bracket on \(E=A\oplus Z\), component by component: standard double = Dorfman bracket; Poisson (LWX/triangular) double; Nambu double. Right-Leibniz, symmetric part \(=\mathcal D\langle\cdot,\cdot\rangle_+\), and Leibniz–Jacobi.

dorfman_double → \([U+\omega,V+\eta]=[U,V]\oplus(\mathcal L_U\eta-\mathcal L_V\omega+d\iota_V\omega)\)
canonical_pairing → \(\langle U+\omega,V+\eta\rangle_+=\iota_U\eta+\iota_V\omega\)
prove_dorfman_right_leibniz_form → \([e_1,fe_2]=f[e_1,e_2]+(Uf)e_2\), \(\rho(U+\omega)=U\)
prove_dorfman_symmetric_part → \([e_1,e_2]+[e_2,e_1]=(0,d\langle e_1,e_2\rangle_+)\)
prove_dorfman_jacobi_form → \([e_1,[e_2,e_3]]=[[e_1,e_2],e_3]+[e_2,[e_1,e_3]]\) (form component)
poisson_double → \(\tilde{\mathcal L}_\omega V-\tilde{\mathcal L}_\eta U+\tilde d\tilde\iota_\eta U\) is added to the vector component, \([\omega,\eta]_\pi\) to the form component; anchor \(U+\pi^\sharp\omega\)
prove_poisson_double_symmetric_part_form/_vec, prove_poisson_double_right_leibniz_form/_vec → symmetric part (\(\mathcal D=d+\tilde d\)) and right-Leibniz for any bivector
lie_tilde_nambu, nambu_double → \(\tilde{\mathcal L}_\omega W=[\Pi\omega,W]+\Pi(\iota_Wd\omega)\); Nambu double on \(TM\oplus\Lambda^pT^*M\)
prove_nambu_double_symmetric_part_vec/_form, prove_nambu_double_right_leibniz_vec/_form → the same properties for the Nambu double (undeclared)

Drinfeld double, Dorfman bracket, pairing, anchor ρ, Leibniz rule, Jacobi identity, Poisson structure, Nambu–Poisson, tilde calculus

DD (4.8), (4.11), (4.17), (6.6)–(6.7), (6.25), (D.1)–(D.4); LWX

mathematics

jacopy/packages/drinfeld/abstract_double.py

The standard double \(A\oplus\Lambda^pA^*\) over an abstract algebroid \(A\) with its own Cartan calculus; a finite scan of which subset of declared properties transfers to the double.

abstract_double → \([u+\alpha,v+\beta]=[u,v]_A\oplus(\mathcal L^E_u\beta-\mathcal L^E_v\alpha+d_E\iota_v\alpha)\)
abstract_pairing → \(\langle e_1,e_2\rangle_+=\iota_u\beta+\iota_v\alpha\)
prove_abstract_double_right_leibniz → the right-Leibniz defect is exactly the locality term \(\langle\alpha,L(df,v,w)\rangle\) (i.e. the “local” condition is needed)
prove_abstract_double_symmetric_part → form component \(d_E\langle e_1,e_2\rangle_+\) (undeclared); vector component needs the antisymmetry declaration
prove_abstract_double_jacobi_form → Leibniz–Jacobi in the form component under the jacobi + anchor-morphism declarations

Drinfeld double, Lie algebroid, Cartan relations, Leibniz rule, Jacobi identity, locality operator L, assumption/declaration

TW §3 (after (3.17))

mathematics

jacopy/packages/drinfeld/metric_invariance.py

Metric-invariance compatibility conditions for the Nambu double; at the level of the double, the operator of metric invariance is the Lie derivative along the total anchor.

prove_z_metric_invariance → \(g_Z([\omega,\eta],\mu)+g_Z(\eta,[\omega,\mu])=\mathcal L_{\Pi\omega}g_Z(\eta,\mu)\)
prove_a_mixing_condition → \(\mathcal L_U\iota_V\mu=\iota_{[U,V]}\mu+\iota_V\mathcal L_U\mu\)
prove_a_invariance_of_gz → \(\mathcal L_Ug_Z(\eta,\mu)=g_Z(\mathcal L_U\eta,\mu)+g_Z(\eta,\mathcal L_U\mu)+\iota_{\tilde{\mathcal K}_\eta U}\mu+\iota_{\tilde{\mathcal K}_\mu U}\eta\)
prove_dual_mixing_condition → \(\mathcal L_{\Pi\omega}\iota_W\eta=\iota_W\mathcal L_{\Pi\omega}\eta+\iota_{\tilde{\mathcal L}_\omega W}\eta-\iota_{\Pi(\iota_Wd\omega)}\eta\)
double_metric → \(g_E(e_2,e_3)=\iota_{U_2}\eta_3+\iota_{U_3}\eta_2+g_Z(\eta_2,\eta_3)\)
prove_double_metric_invariance → \(\mathcal L_{U_1+\Pi\omega_1}g_E(e_2,e_3)=g_E([e_1,e_2],e_3)+g_E(e_2,[e_1,e_3])\) (with the FI declaration)

Drinfeld double, pairing, Nambu–Poisson, tilde calculus, Lie derivative L, anchor ρ

DD (D.14)–(D.19), (4.44)–(4.50), (6.20); TW (5.22)

mathematics

jacopy/packages/drinfeld/bracket_morphism.py

Bracket-morphism compatibility conditions for \(\varphi=\mathrm{id}\oplus\Pi\) (total anchor \(\rho(U+\omega)=U+\Pi\omega\)); the total anchor is a bracket morphism of the double.

prove_morphism_compat_condition → \(\tilde{\mathcal K}_\eta U+\Pi(\mathcal L_U\eta)=[U,\Pi\eta]\)
prove_morphism_compat_condition_dual → \(\tilde{\mathcal L}_\omega V+\Pi(\mathcal K_V\omega)=[\Pi\omega,V]\)
prove_phi_z_is_morphism → \(\Pi[\omega,\eta]=[\Pi\omega,\Pi\eta]\) (FI declaration)
prove_total_anchor_is_bracket_morphism → \(\rho([e_1,e_2])=[\rho e_1,\rho e_2]\) (FI declaration)

anchor ρ, Drinfeld double, Nambu–Poisson, tilde calculus, Lie bracket

TW (4.18)–(4.20); DD (4.51)–(4.52)

mathematics

jacopy/packages/drinfeld/tilde_calculus.py

Proof that the Nambu tilde calculus built from the \((p+1)\)-vector \(\Pi\) is indeed a calculus (under the bracket-morphism form of the fundamental identity); the Jacobi compatibility conditions.

iota_tilde, d_tilde, kappa_tilde_nambu → \(\tilde\iota_\eta U=\iota_U\eta\), \(\tilde d=-\Pi d\), \(\tilde{\mathcal K}_\eta=-\tilde{\mathcal L}_\eta+\tilde d\tilde\iota_\eta\)
NambuMorphismDeclaration → declaration \([\Pi\omega,\Pi\eta]=\Pi[\omega,\eta]\) (i.e. \(R'=0\))
prove_tilde_calculus_condition_one/two/three → \(\tilde{\mathcal L}_\omega\tilde{\mathcal L}_\eta-\tilde{\mathcal L}_\eta\tilde{\mathcal L}_\omega=\tilde{\mathcal L}_{[\omega,\eta]}\) and two analogues with \(\tilde{\mathcal K}\)
prove_jacobi_compat_d8 … d13 → the Jacobi compatibilities DD (D.8)–(D.13) (some undeclared, via \(d^2=0\) / Cartan relations)
g_z_pairing → \(g_Z(a,b)=\iota_{\Pi a}b+\iota_{\Pi b}a\) (the code’s normalization)
InteriorAnticommuteDefinition → \(\iota_X\iota_Y=-\iota_Y\iota_X\)

tilde calculus, Nambu–Poisson, Cartan relations, Jacobi identity, bialgebroid, assumption/declaration

DD (C.1)–(C.3), (4.16), (4.34), (4.36)–(4.40), (6.7), (6.9), (6.17), (D.5)–(D.13)

mathematics

jacopy/packages/drinfeld/twist.py

Twist automorphisms \(\Psi\in\mathrm{Aut}(A\oplus Z)\) and the brackets they induce: \(\Psi_\Pi\) turns the Dorfman bracket into the Nambu double (\(+R'\)); \(\Psi_B\) produces the Ševera H-twist (\(H=dB\)); \(\Psi_m\) is a change of frame; the linearity defect of the R-twist; the Jacobi identity of the Nambu double via the twist argument.

pi_twist, pi_twist_inverse → \(\Psi_\Pi(U\oplus\omega)=(U+\Pi\omega)\oplus\omega\)
b_twist, b_twist_inverse → \(\Psi_B(U\oplus\omega)=U\oplus(\omega+\iota_UB)\)
m_twist → \(\Psi_m=m\oplus\tilde m\)
twisted_dorfman → \([e_1,e_2]_\Psi=\Psi^{-1}[\Psi e_1,\Psi e_2]\)
r_twist → \(R'(\omega,\eta)=[\Pi\omega,\Pi\eta]-\Pi[\omega,\eta]\)
prove_pi_twist_form_is_nambu, prove_pi_twist_vec_is_nambu_plus_r → \(\Psi_\Pi\)-twisted Dorfman = Nambu double \(+(R',0)\) (undeclared)
prove_twisted_lie_tilde, prove_twisted_kappa_tilde, prove_twisted_z_bracket_is_koszul → twisted components \(=\tilde{\mathcal L}\), \(\tilde{\mathcal K}\), higher Koszul
prove_b_twist_vec_unchanged, prove_b_twist_severa, prove_b_twist_severa_h → \(\Psi_B\) shifts the H-twist by \(H\mapsto H+dB\)
h_term, dorfman_double_h → \(H(U,V)=\iota_V\iota_UH\), H-twisted Dorfman
prove_pi_twist_h_form, prove_pi_twist_h_vec → \(\Psi_\Pi\) on Dorfman with H
prove_r_twist_second_entry_linear → \(R'(\omega,f\eta)=fR'(\omega,\eta)\)
prove_r_twist_first_entry_obstruction → \(R'(f\omega,\eta)=fR'(\omega,\eta)-\Pi(df\wedge(\iota_{\Pi\omega}\eta+\iota_{\Pi\eta}\omega))\)
prove_m_is_bracket_morphism, prove_m_twist_right_leibniz_vec/_form, prove_m_twist_symmetric_part_form → properties of the bracket twisted by \(\Psi_m\), anchor \(\rho'=m\)
prove_b_twists_compose_additively → \(\Psi_{B_1}\circ\Psi_{B_2}\) and \(\Psi_{B_1+B_2}\) give the same bracket
prove_nambu_double_jacobi_via_twist → Leibniz–Jacobi of the Nambu double under FI (form component), via the twist

twist (Ψ, B, Π, R), Dorfman bracket, Drinfeld double, Nambu–Poisson, H-flux, Jacobi identity, linearity

TW §7, (7.3), (7.7), (7.11)–(7.20), (7.24)–(7.26); DD (4.17), (6.6)–(6.7); Šev

mathematics

jacopy/packages/drinfeld/roytenberg.py

The general 8-component Roytenberg bracket on \(A=TM\), \(Z=\Lambda^pT^*M\) (the tilde side, the R-twist, and the H-twist can each be switched on or off); the H-closure condition measures exactly \(dH\); twisted FI declarations.

roytenberg_bracket → \([U+\omega,V+\eta]_E=[U,V]+\tilde{\mathcal L}_\omega V+\tilde{\mathcal K}_\eta U+R(\omega,\eta)\ \oplus\ [\omega,\eta]_Z+\mathcal L_U\eta+\mathcal K_V\omega+H(U,V)\)
prove_h_bilinearity → \(H(U,V)=\iota_V\iota_UH\) is \(C^\infty\)-linear in both slots
prove_h_closure_measures_dh → H-closure defect \(=\iota_W\iota_V\iota_U\,dH\)
prove_h_closure_for_exact_h → if \(H=dB\) the condition holds (\(d^2=0\))
prove_h_twisted_jacobi_measures_dh → Leibniz–Jacobi defect of H-twisted Dorfman \(=\iota_W\iota_V\iota_U\,dH\) (“twisted Courant ⟺ \(dH=0\)”)
prove_fi_collapses_twisted_compat → under FI \(H(U,R(\eta,\mu))=0\)
TwistedFIDeclaration, r_twist_h, prove_twisted_fi_kills_r_twist_h → declaration \([\Pi\omega,\Pi\eta]=\Pi[\omega,\eta]+\Pi(\iota_{\Pi\eta}\iota_{\Pi\omega}H)\) and \(R'_H=0\)
prove_r_twist_h_correction_bilinear → the correction \(\Pi H(\Pi\omega,\Pi\eta)\) is \(C^\infty\)-bilinear
r_twist_psi, PsiTwistedFIDeclaration, prove_r_twist_psi_properties, prove_psi_twisted_fi_consistency → \(R_\psi(\omega,\eta)=\psi^\sharp(\omega\wedge\eta)\); quasi-Poisson declaration \([\pi^\sharp\omega,\pi^\sharp\eta]=\pi^\sharp[\omega,\eta]_\pi+\psi^\sharp(\omega\wedge\eta)\)
sn_compat_node → node carrying \([\pi,\psi]_{SN}\) (4-vector)

twist (Ψ, B, Π, R), H-flux, Dorfman bracket, tilde calculus, Jacobi identity, Nambu–Poisson, Schouten–Nijenhuis bracket

TW (3.12), (3.15), (5.2), (5.4)–(5.16), (7.25)–(7.26); DD (D.8); Roy; Šev

mathematics

jacopy/packages/drinfeld/examples.py

Three concrete doubles from the literature: \(B_n\)-generalized geometry, the exceptional Courant bracket (\(TM\oplus\Lambda^2\oplus\Lambda^5\), M-theory cross term), and the exceptional \(\Psi_\Pi\) twist; also the calculus items of the \(B_n\) splittings.

bn_bracket, bn_pairing → \(E=TM\oplus C^\infty M\oplus T^*M\), \([e_1,e_2]=[U,V]\oplus(U(g)-V(f))\oplus(\mathcal L_U\eta-\mathcal L_V\omega+d\iota_V\omega+g\,df)\), \(g_E=\iota_U\eta+\iota_V\omega+fg\) (\(SO(n+1,n)\))
prove_bn_symmetric_part, prove_bn_right_leibniz → symmetric part \((0,0,dg_E)\), right-Leibniz
exceptional_courant_bracket → \([U,V]\oplus(\mathcal L_U\eta_2-\iota_Vd\omega_2)\oplus(\mathcal L_U\eta_5-\iota_Vd\omega_5-\eta_2\wedge d\omega_2)\)
exceptional_pairing_two/_five → \(\iota_U\eta_2+\iota_V\omega_2\) and \(\iota_U\eta_5+\iota_V\omega_5-\omega_2\wedge\eta_2\)
prove_exceptional_symmetric_part, prove_exceptional_right_leibniz → symmetric part = \(d\) of the pairing; right-Leibniz
prove_top_slot_jacobi, prove_exceptional_jacobi_five → Leibniz–Jacobi of the top slot in the family \(TM\oplus\Lambda^p\oplus\Lambda^{2p+1}\) (\(p=2\): E6)
exceptional_h_reading, prove_exceptional_h_second_entry_linear, prove_exceptional_h_first_entry_symbol → reading of the cross term as an H-twist: \(H(U+\omega_2,V+\eta_2)=-\eta_2\wedge d\omega_2\)
bn_scalar_twist, prove_bn_twist_symmetric_part, bn_split1_z_bracket, prove_bn_split1_z_symmetric_part → \(g\,df+f\,dg=d(fg)\)
boxtimes → \((\Pi_3\circledast\Pi_3)(\omega_5)=\tfrac12\Pi_3(\iota_{\Pi_3}\omega_5)\)
exceptional_pi_twist, _inverse, prove_exceptional_twist_linear, prove_exceptional_twist_inverse → \(\Psi_\Pi(U\oplus\omega_2\oplus\omega_5)=(U+\Pi_3\omega_2+(\Pi_6+\Pi_3\circledast\Pi_3)\omega_5)\oplus\omega_2\oplus\omega_5\); linearity and \(\Psi^{-1}\Psi=\mathrm{id}\)

exceptional geometry (E6), generalized geometry, Dorfman bracket, pairing, twist (Ψ, B, Π, R), H-flux, Jacobi identity, multivector

TW §8, (5.6)–(5.7), (5.21), (8.1)–(8.3), (8.10)–(8.28); E6 paper (reference to be verified) (4.10)–(4.14)

mathematics

jacopy/packages/generalized/

This package contains the tools for generalized geometry and Courant algebroids: the LWX Courant axioms [C1]–[C5] and Uchino’s redundancy theorems (some axioms follow from the others) and the alternative axioms [C’1]–[C’5] in Dorfman/Roytenberg form; the standard and H-twisted Dorfman/Courant brackets on \(TM\oplus T^*M\) and their axiom sets; Poisson-generalized \((TM)_0\oplus(T^*M)_\theta\) and R-flux; identification of Courant structures from the Roytenberg bracket; (pre-)Bourbaki algebroids with an R-valued metric, Bourbaki pre-calculus, exact structures and the Ševera-type classification; transport of properties by a general \(\Psi\)-twist; and the exceptional double and the \(\Psi_\Pi\) rotation. Sources: U, LWX, Roy, B (2022), AMSW, TW, MC, E6 paper (reference to be verified).

Tip

Where to look

  • Where are the LWX Courant axioms [C1]–[C5] and the Uchino redundancies? → courant_axioms.py; Dorfman form [C’1]–[C’5]: dorfman_axioms.py.

  • Where are the standard Courant bracket on \(TM\oplus T^*M\) and [C1] (the \(D\,T\) term)? → standard_courant.py.

  • Where are H-flux and “Courant ⟺ \(dH=0\)” (concrete, \(p=1\))? → twisted_courant.py.

  • Where are R-flux and \(d_\theta R=0\)? → r_twisted.py; Poisson-based \((TM)_0\oplus(T^*M)_\theta\): poisson_generalized.py.

  • Where is the transport of properties by a general \(\Psi\)-twist? → general_twist.py.

  • Where are the Bourbaki algebroids and the Ševera-type classification? → bourbaki_structure.py, bourbaki_precalculus.py, bourbaki_exact.py, bourbaki_severa.py.

  • Where are the E6 exceptional double and its rotation? → exceptional_double.py, exceptional_rotation.py.

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/packages/generalized/__init__.py

Package facade: Courant axiomatics, Uchino redundancies, standard/H/general-twist brackets, Roytenberg–Courant, Bourbaki, Poisson-generalized/R-twist, exceptional double/rotation, Nambu↔Poisson bridge.

—

—

—

infrastructure

jacopy/packages/generalized/_cited_rule.py

Infrastructure for rules that use a proved theorem as a rewrite rule (carrying the theorem’s assumptions over to the result).

CitedTheoremMixin → rule = citation of a proved theorem
fire_declared → sourced application of a declared rule

rewrite rule, theorem builder, proof chain, assumption/declaration

—

infrastructure

jacopy/packages/generalized/courant_axioms.py

The LWX definition of a Courant algebroid and Uchino’s redundancy theorems: [C3], [C4], and the \(D\) formula follow from [C2], [C5], and the Leibniz rule (L) for \(D\).

CourantD, DLeibnizDefinition → \(D:C^\infty(M)\to\Gamma E\), (L) \(D(fg)=fDg+gDf\)
CourantInvarianceDeclaration → [C5] \(\rho(x)(y,z)=([x,y]+D(x,y),z)+(y,[x,z]+D(x,z))\)
courant_context → skew bracket, [C2] anchor morphism, symmetric non-degenerate pairing
prove_left_leibniz_c3 → [C3] \([x,fy]=f[x,y]+\rho(x)(f)y-(x,y)Df\)
prove_anchor_annihilates_d → [C4] \(\rho\circ D=0\)
prove_d_pairing_formula → \((Df,y)=\tfrac12\rho(y)(f)\) (i.e. \(D=\tfrac12\beta^{-1}\rho^*d\))
prove_d_numeric_homogeneity → \(D(cf)=cD(f)\)
prove_leibniz_from_c3 → identity (i) ⇒ (L)
prove_bracket_with_d → \([x,Df]+D((x,Df))=D(\rho(x)f)\); also \([x,Df]=D((x,Df))\)

Courant algebroid, Courant bracket, anchor ρ, pairing, Leibniz rule, assumption/declaration

U §1, Prop 2.1(i)–(ii), Prop 2.2, Rem 2.1–2.2; LWX; Roy

mathematics

jacopy/packages/generalized/dorfman_axioms.py

The non-skew (Dorfman) definition of a Courant algebroid [C’1]–[C’5] and its redundancies: [C’3] and [C’2] follow from the others. ℝ-additivity for the \(D\)-formula is left open.

dorfman_axiom_context → non-skew bracket ∘, [C’5] \(\rho(x)(y,z)=(x\circ y,z)+(y,x\circ z)\)
prove_dorfman_c3_redundant → [C’3] \(x\circ(fy)=f(x\circ y)+\rho(x)(f)y\)
prove_dorfman_c2_redundant → [C’2] \(\rho(x\circ y)=[\rho x,\rho y]\)

Courant algebroid, Dorfman bracket, pairing, anchor ρ, Leibniz rule, Jacobi identity

U Rem 2.3; Roy; GM; B (4.10)–(4.11)

mathematics

jacopy/packages/generalized/standard_courant.py

The standard Courant algebroid on \(TM\oplus T^*M\), component by component: the remaining axioms of the Dorfman bracket, the Courant (skew) bracket, the Dorfman↔Courant relation, LWX [C3], and [C1].

d_operator_std → \(D(h)=(0,\tfrac12dh)\)
courant_bracket_std → \([x,y]_C=[x,y]_D-D\langle x,y\rangle_+\)
prove_anchor_morphism_std → [C’2]
prove_dorfman_invariance_std → [C’5] \(\rho(x)\langle y,z\rangle_+=\langle x\circ y,z\rangle_++\langle y,x\circ z\rangle_+\)
prove_courant_dorfman_relation → \([x,y]_C=[x,y]_D-D\langle x,y\rangle_+\)
prove_courant_skew_std → \([x,y]_C+[y,x]_C=0\)
prove_courant_c3_lwx_std → \([x,fy]_C=f[x,y]_C+(\rho(x)f)y-\langle x,y\rangle_+Df\)
courant_t_scalar_std, prove_courant_jacobi_dt_std → [C1] \(\sum_{cyc}[[x,y]_C,z]_C=D\,T(x,y,z)\), \(T=\tfrac13\sum_{cyc}\langle[x,y]_C,z\rangle_+\)

Courant algebroid, Dorfman bracket, Courant bracket, pairing, anchor ρ, Jacobi identity, generalized geometry

U §1, Rem 1, Prop 2.2, Rem 2.2; LWX

mathematics

jacopy/packages/generalized/twisted_courant.py

The H-twisted Courant algebroid on \(TM\oplus T^*M\): since the H-term is tensorial and antisymmetric, [C’2]–[C’5] are unchanged; the defect of [C’1] is \(dH\); if \(H=dB\), it is a Courant algebroid.

courant_bracket_h → H-twisted skew bracket
prove_twisted_anchor_morphism, prove_twisted_right_leibniz, prove_twisted_symmetric_part → [C’2], [C’3], [C’4] (\(D\) unchanged)
prove_twisted_invariance → [C’5] (\(\iota_W\iota_V\iota_UH+\iota_V\iota_W\iota_UH=0\))
prove_twisted_courant_dorfman_relation → \([x,y]_{C,H}=[x,y]_{D,H}-D\langle x,y\rangle_+\)
prove_twisted_jacobi_dh_defect → defect of [C’1] \(=\iota_W\iota_V\iota_U\,dH\) (according to the function docstring)
prove_severa_twist_is_courant → \(H=dB\) ⇒ Jacobi closes

H-flux, Courant algebroid, Dorfman bracket, Courant bracket, twist (Ψ, B, Π, R), Jacobi identity

Šev; B §4 (after (4.12)); TW (5.13) context

mathematics

jacopy/packages/generalized/general_twist.py

For any bracket and any invertible \(C^\infty\)-linear \(\Psi:E\to E\), \([u,v]'=\Psi^{-1}[\Psi u,\Psi v]\); transport of all algebroid properties with primed data.

PsiInverseDefinition, PsiLinearityDefinition → \(\Psi^{-1}\Psi=\Psi\Psi^{-1}=\mathrm{id}\), linearity
twisted_bracket, twisted_anchor, twisted_metric, twisted_d → \([u,v]'\), \(\rho'=\rho\circ\Psi\), \(g'(u,v)=g(\Psi u,\Psi v)\), \(\mathbb D'=\Psi^{-1}\circ\mathbb D\)
prove_general_twist_bilinearity → ℝ-bilinearity
prove_general_twist_right_leibniz → right-Leibniz with \(\rho'\)
prove_general_twist_jacobi → twisted Jacobiator = \(\Psi^{-1}\)(original Jacobiator)
prove_general_twist_symmetric_part → \([u,v]'+[v,u]'=\mathbb D'g'(u,v)\)
prove_general_twist_invariance → metric invariance is transported

twist (Ψ, B, Π, R), anchor ρ, pairing, Leibniz rule, Jacobiator, Bourbaki algebroid

TW (7.3)

mathematics

jacopy/packages/generalized/roytenberg_courant.py

Identification of the Roytenberg bracket in the Poisson case (\(p=1\)) with verified Courant structures, depending on which switches are on.

prove_roytenberg_reduces_to_dorfman → all switches off ⇒ standard Dorfman
prove_roytenberg_is_theta_double_under_poisson → tilde + R on, Poisson declaration ⇒ triangular θ-double (LWX double)
prove_roytenberg_h_is_twisted_dorfman → only H on ⇒ H-twisted Dorfman
prove_full_roytenberg_symmetric_part → all on ⇒ [C’4], \(D_\theta\) preserved

Courant algebroid, Dorfman bracket, Drinfeld double, twist (Ψ, B, Π, R), H-flux, Poisson structure

TW (5.2); LWX

mathematics

jacopy/packages/generalized/poisson_generalized.py

The Poisson-based Courant algebroid \((TM)_0\oplus(T^*M)_\theta\) (TM side trivial; \(T^*M\) side Koszul): anchor \(\theta^\sharp\omega\), tilde-Dorfman bracket, and the Courant axioms [C’1]–[C’5].

poisson_base → \(\theta\) = Nambu structure of order 1
theta_anchor → \(\rho(U+\omega)=\theta^\sharp\omega\)
theta_dorfman → vector \(\tilde{\mathcal L}_\omega V-\tilde{\mathcal L}_\eta U+\tilde d\tilde\iota_\eta U\), form \([\omega,\eta]_\theta\)
d_operator_theta, prove_theta_d_pairing_value → \(D_\theta h=\tfrac12(-\theta^\sharp dh,0)\), \(\langle D_\theta h,x\rangle_+=\tfrac12\rho(x)(h)\)
theta_courant, prove_theta_courant_skew → skew-symmetrization
prove_theta_anchor_morphism → [C’2]
prove_theta_right_leibniz → [C’3]
prove_theta_symmetric_part → [C’4] \([x,y]+[y,x]=2D_\theta\langle x,y\rangle_+\)
prove_theta_jacobi → [C’1] (under the Poisson declaration)
prove_theta_invariance → [C’5]

generalized geometry, Courant algebroid, Poisson structure, Koszul bracket, tilde calculus, Dorfman bracket, Courant bracket, anchor ρ, pairing

AMSW §2.2, (2.6)–(2.7) (not verified); U Rem 1

mathematics

jacopy/packages/generalized/r_twisted.py

R-flux: a trivector \(R\) is contracted with the two form parts and lands in the vector component; this is the dual of the H-twist. The anchor-morphism property is preserved; the Jacobi defect is the Lichnerowicz–Poisson differential \(d_\theta R\).

r_term, r_twisted_theta_dorfman → \([x,y]_{D,\theta,R}=[x,y]_{D,\theta}+(\tilde\iota_\eta\tilde\iota_\omega R,0)\)
prove_r_twisted_right_leibniz, prove_r_twisted_symmetric_part → [C’3], [C’4] (R-term tensorial, antisymmetric)
prove_r_twisted_anchor_morphism → R-term lies in \(\ker\rho\), [C’2] preserved
lichnerowicz_calculus, lichnerowicz_d → \(d_\theta=[\theta,\cdot]_{SN}\)
RFluxClosureDeclaration → declaration \(d_\theta R=0\)
prove_r_twisted_jacobi_defect_is_dtheta_r → \(\mathrm{vec}(J_R-J_\theta)(h)=(d_\theta R)(\omega,\eta,\zeta,dh)\)
prove_r_twisted_jacobi → [C’1] under Poisson + \(d_\theta R=0\)
prove_derived_r_vanishes_under_poisson → \(R'=[\theta^\sharp\cdot,\theta^\sharp\cdot]-\theta^\sharp[\cdot,\cdot]_\theta=0\)
prove_r_twisted_courant_relation → R-twist commutes with skew-symmetrization

twist (Ψ, B, Π, R), Courant algebroid, Schouten–Nijenhuis bracket, tilde calculus, Jacobi identity, Poisson structure, assumption/declaration

AMSW §3 (not verified); TW (7.25)

mathematics

jacopy/packages/generalized/dialect_bridge.py

The Koszul brackets in Nambu language (\(p=1\)) and in Poisson language are the same 1-form; the form component of [C’1] for the Watamura double is obtained by citing the general Koszul–Jacobi theorem.

prove_koszul_dialects_agree → \(\mathcal L_{\Pi\omega}\eta-\iota_{\Pi\eta}d\omega=\mathcal L_{\pi^\sharp\omega}\eta-\mathcal L_{\pi^\sharp\eta}\omega-d\pi(\omega,\eta)\)
prove_theta_form_jacobi_by_citation → form component of [C’1] = Koszul–Jacobi on general 1-forms
bridge_engine → engine in which the two languages reduce to a common normal form

Koszul bracket, Nambu–Poisson, Poisson structure, Jacobi identity

AMSW (not verified)

partial

jacopy/packages/generalized/frame_evaluation.py

Evaluation of the pairing, the Dorfman bracket, and the anchor on frame/coframe sections; dictionary of the components in terms of \(\delta\), \(\gamma\), \(\tilde\gamma\), \(\theta^{ab}\); component identity of \(\circledast\).

prove_basis_pairing_components → \(\langle e_a\oplus e^b,e_c\oplus e^d\rangle_+=\delta^b_c+\delta^d_a\)
prove_dorfman_vector_components → \(\langle e^u,[e_a,e_c]\rangle=\gamma^u_{ac}\)
prove_dorfman_form_components → \(\mathcal L_{e_a}e^d(e_b)=-\gamma^d_{ab}\) (Maurer–Cartan aspect)
prove_theta_koszul_components → \(\langle[e^a,e^b]_\theta,e_c\rangle=\tilde\gamma_c{}^{ab}\)
prove_anchor_components → \(\langle e^c,\rho(0\oplus e^b)\rangle=\theta(e^b,e^c)\)
prove_boxtimes_components_are_413 → \(\langle e^c,(\Pi_3\circledast\Pi_3)(e^{a_1}\wedge\dots\wedge e^{a_5})\rangle=5\,\Pi^{[a_1a_2a_3}\Pi^{a_4a_5]c}\)

frame/coframe, pairing, Dorfman bracket, anchor ρ, Koszul bracket, exceptional geometry (E6), multivector

AMSW (2.6) (not verified); E6 paper (reference to be verified) (4.13)–(4.14)

mathematics

jacopy/packages/generalized/exact_locality_projector.py

Locality projectors on the exact Courant algebroid \(TM\oplus T^*M\): a \(C^\infty\)-linear map fixing exact forms fixes every 1-form; the family \(P_C\) built from a \((0,2)\)-tensor \(C\) satisfies the locality projector conditions; comparison of \(P_B\) with \(\mathrm{pr}_2\) on a frame witness.

ProjectorAbsorbsExactFormsDefinition → declaration \(C(dg)=dg\)
prove_projector_fixes_locally_exact_forms → \(C(\sum_if_i\,dg_i)=\sum_if_i\,dg_i\)
linear_projector, b_field_projector → \(P_C(U,\omega)=(0,\omega+C(U,\cdot))\), \(P_B(U,\omega)=(0,\omega+\iota_UB)\)
prove_linear_projector_is_a_locality_projector, prove_b_field_projector_is_a_locality_projector → linearity, additivity, image in \(\ker\rho\), absorption of coboundaries, idempotence, identity on \(\ker\rho\) (six checks)
prove_projector_differs_from_pr2_on_a_frame → for \(B=e^0\wedge e^1\), \(U=e_0\), computation of the pairing of \(P_B(U,0)-\mathrm{pr}_2(U,0)\) with \(e_1\)

locality projector 𝒫, Courant algebroid, differential form, linearity, frame/coframe

MC Def 3.10, Prop 4.1 (4.3), Prop 4.2; ADM Def 3.8

mathematics

jacopy/packages/generalized/bourbaki_structure.py

The (almost-/metric-) Bourbaki structure layer with an R-valued E-metric: \(\mathbb D\) is first-order with symbol \(\mathbb L\); \(\mathcal L^R\) is a derivation with anchor symbol; locality = symbol; right-Leibniz from metric invariance; left-Leibniz.

BMetric → R-valued symmetric \(g:\mathfrak X(E)\times\mathfrak X(E)\to\mathfrak X(R)\)
BDopFirstOrderDefinition → \(\mathbb D(fr)=f\mathbb Dr+\mathbb L_{df}r\)
BLieREDerivationDefinition → \(\mathcal L^R_{\rho u}(fr)=f\mathcal L^R_{\rho u}r+\rho(u)(f)r\)
BourbakiInvarianceDeclaration → declaration \(\mathcal L^R_{\rho u}g(v,w)=g([u,v],w)+g(v,[u,w])\)
prove_locality_is_symbol → \(L(df,u,v)=\mathbb L_{df}(g(u,v))\)
prove_right_leibniz_from_r_invariance → \([u,fv]=f[u,v]+\rho(u)(f)v\)
prove_left_leibniz_bourbaki → \([fu,v]=f[u,v]-\rho(v)(f)u+\mathbb L_{df}(g(u,v))\)

Bourbaki algebroid, metric, anchor ρ, Leibniz rule, locality operator L, assumption/declaration

B Def 6.2, (6.8), (6.11), Cor 6.1, Def 7.1, (7.2), (7.3), (7.8); B (4.11)

mathematics

jacopy/packages/generalized/bourbaki_precalculus.py

The Bourbaki pre-calculus quintuple \((\iota,d,l,\mathcal L^R,\mathcal L^Z)\) and its two axioms; the standard structure makes \(T(M)\oplus Z\) an exact pre-metric-Bourbaki algebroid; the ordinary Cartan calculus is a Bourbaki pre-calculus.

BIota, BD, BSymbol, BLieR, BLieZ → the members of the quintuple
BDFirstOrderDefinition → \(d(fr)=f\,dr+l_{df}r\)
BLieZLawsDefinition → \(\mathcal L^Z_V(fz)=f\mathcal L^Z_Vz+V(f)z\), \(\mathcal L^Z_{fV}z=f\mathcal L^Z_Vz+l_{df}\iota_Vz\)
Axiom914Declaration → (9.14) \(\mathcal L^R_U\iota_Vz=\iota_{[U,V]}z+\iota_V\mathcal L^Z_Uz\)
axiom_915_instance → (9.15) \(\iota_U(\mathcal L^Z_Vz-d\iota_Vz)=-\iota_V(\mathcal L^Z_Uz-d\iota_Uz)\)
standard_bracket, standard_metric → \([U+z,V+y]_S=[U,V]+\mathcal L^Z_Uy-\mathcal L^Z_Vz+d\iota_Vz\), \(g_S=\iota_Uy+\iota_Vz\)
prove_standard_symmetric_part → symmetric part of \([\cdot,\cdot]_S\) \(=dg_S\)
prove_standard_metric_invariance → (7.8) metric invariance
prove_cartan_satisfies_914, prove_cartan_satisfies_915 → the ordinary Cartan quintuple satisfies (9.14) and (9.15)

Bourbaki algebroid, Cartan relations, interior product ι, exterior derivative d, Lie derivative L, pairing

B Def 9.1–9.2, Thm 9.1, (9.14)–(9.18), (7.8)

mathematics

jacopy/packages/generalized/bourbaki_exact.py

Exact pre-metric-Bourbaki algebroids and the induced pre-calculus: splitting data \(\varphi\), \(\chi\); \(\mathcal L^Z\) and \(\iota\) defined from the \(E\)-bracket and the metric; the induced quintuple satisfies (9.14)–(9.15).

PhiSec, ChiSec, SplitAnchorDefinition → \(\rho\varphi=\mathrm{id}\), \(\rho\chi=0\)
DopViaChiDefinition → \(\mathbb D=\chi\circ d\)
LieZDefinitionRule → \([\varphi V,\chi z]_E=\chi(\mathcal L^Z_Vz)\)
Iota99Definition → \(g(\chi z,\varphi V)=\iota_Vz\)
IsotropyDeclaration → \(g\)-isotropy of \(\chi\)
prove_lemma_91 → \(\rho([u,\chi z])=0\), i.e. \([u,\chi z]\in\mathrm{im}\,\chi\)
prove_911 → (9.11): the induced quintuple satisfies (9.15)
prove_912 → (9.12): (9.14) with isotropic \(\chi\)

Bourbaki algebroid, anchor ρ, pairing, Cartan relations

B §8–9, (8.3), (8.5), Lemma 9.1, Prop 9.1, (9.7), (9.9), (9.11)–(9.15)

mathematics

jacopy/packages/generalized/bourbaki_severa.py

Ševera-type classification of exact pre-metric-Bourbaki algebroids: each is the standard structure twisted by a pair \((F,H)\); if \(\varphi\) is isotropic, \(H\) is a Z-valued 2-form.

delta → \(\Delta(U,V)=[\varphi U,\varphi V]_E-\varphi[U,V]\), \(\chi H=\Delta\)
prove_chi_phi_bracket → \([\chi z,\varphi V]=\chi(-\mathcal L^Z_Vz+d\iota_Vz)\)
prove_chi_chi_bracket_vanishes → \([\chi z,\chi y]=0\)
prove_delta_tensorial_second_slot → \(H(U,fV)=fH(U,V)\)
prove_delta_first_slot_anomaly → \(H(fU,V)=fH(U,V)+l_{df}F(U,V)\), \(F(U,V)=g(\varphi U,\varphi V)\)
prove_delta_lands_in_chi → \(\rho(\Delta)=0\)
prove_h_antisymmetric_for_isotropic_phi → \(\Delta(U,V)+\Delta(V,U)=\chi(dF(U,V))\); if \(F=0\), \(H\) is antisymmetric
RightLeibnizTheoremRule, LeftLeibnizTheoremRule → citation of the proved Leibniz rules

Bourbaki algebroid, H-flux, twist (Ψ, B, Π, R), Leibniz rule

B Thm 9.2, Cor 9.1, (9.19)–(9.21), (6.11), (7.2), (8.3); Šev

mathematics

jacopy/packages/generalized/exceptional_double.py

The exceptional Courant bracket rotated by the E6 twist \(\Psi_\Pi\) equals, up to the derived twist \(R'\), the Drinfel’d double built with the block map \(\Pi(\omega_2,\omega_5)=\Pi_3\omega_2+\hat\Pi\omega_5\) for \(A=TM\) and \(Z=\Lambda^2\oplus\Lambda^5\); the four bidegree pieces of \(R'\).

pi_hat → \(\hat\Pi=\Pi_6+\Pi_3\circledast\Pi_3\)
exceptional_z_bracket → \([\omega,\eta]_Z=(\mathcal L_{\Pi\omega}\eta_2-\iota_{\Pi\eta}d\omega_2,\ \mathcal L_{\Pi\omega}\eta_5-\iota_{\Pi\eta}d\omega_5-\eta_2\wedge d\omega_2)\)
exceptional_lie_tilde, exceptional_double → Nambu double formula with the block map
exceptional_r_twist → \(R'(\omega,\eta)=[\Pi\omega,\Pi\eta]-\Pi[\omega,\eta]_Z\)
prove_rotated_is_exceptional_double_plus_r → \(\Psi_\Pi^{-1}[\Psi_\Pi x,\Psi_\Pi y]_{exc}=[x,y]_{double}+(R'(\omega,\eta),0,0)\)
prove_exceptional_r_twist_bidegree_split → \(R'=R'_{22}+R'_{25}+R'_{52}+R'_{55}\)
prove_r22_reduces_to_lifted_cross_term → under the FI of \(\Pi_3\), \(R'_{22}=\hat\Pi(\eta_2\wedge d\omega_2)\)
prove_r25_is_lie_tilde_equivariance_defect → \(R'_{25}=\tilde{\mathcal L}_{\omega_2}(\hat\Pi\eta_5)-\hat\Pi(\mathcal L_{\Pi_3\omega_2}\eta_5)\)
prove_exceptional_r_twist_symmetric_part → \(R'(\omega,\eta)+R'(\eta,\omega)=-\Pi_3dP'_2-\hat\Pi dP'_5\)
transported_form_pairing → transported pairing \(P'_2\), \(P'_5\)

exceptional geometry (E6), Drinfeld double, twist (Ψ, B, Π, R), Nambu–Poisson, tilde calculus, multivector

E6 paper (reference to be verified) (4.10)–(4.14); TW (8.1)

mathematics

jacopy/packages/generalized/exceptional_rotation.py

Conjugation of the exceptional Courant bracket on \(TM\oplus\Lambda^2\oplus\Lambda^5\) by the E6 twist, and term-by-term decomposition of the resulting bracket (form and vector slots).

pi_block → \(\Delta U=\Pi_3\omega_2+\Pi_6\omega_5+(\Pi_3\circledast\Pi_3)\omega_5\)
rotated_exceptional_bracket → \(\Psi_\Pi^{-1}[\Psi_\Pi e_1,\Psi_\Pi e_2]_{exc}\)
prove_rotated_form_decomposition → \(\mathrm{form}_k'=\mathrm{form}_k+\mathcal L_{\Delta U}\eta_k-\iota_{\Delta V}d\omega_k\) (\(k=2,5\)); the cross term \(-\eta_2\wedge d\omega_2\) is unchanged
prove_rotated_vector_decomposition → \(\mathrm{vec}'=[U+\Delta U,V+\Delta V]-\Pi_3(\mathrm{form}_2')-\Pi_6(\mathrm{form}_5')-\circledast(\mathrm{form}_5')\)

exceptional geometry (E6), twist (Ψ, B, Π, R), Lie derivative L, interior product ι

E6 paper (reference to be verified) (4.10)–(4.12)

mathematics

jacopy/research/

This folder contains the tools of the layer in which the user writes their own research question: generalized sections \(U\oplus\omega_2\oplus\omega_5\) (\(TM\oplus\Lambda^pT^*M\), the E₆ exceptional bundle \(TM\oplus\Lambda^2\oplus\Lambda^5\)), block-operator matrices for bundle automorphisms and their unipotent inverses, a Courant-type axiom suite (right Leibniz, symmetric part, anchor morphism, metric invariance, Leibniz–Jacobi), transport of the whole structure by a \(\Psi\)-twist, and index antisymmetrization \(T^{[a_1\dots a_n]}\). Also here is a registration system that assembles the engine automatically, according to the node families occurring in the expressions to be checked.

Tip

Where to look

  • Sections of \(TM\oplus T^*M\) or \(TM\oplus\Lambda^2\oplus\Lambda^5\)? → research/sections.py

  • The block matrix \(\Psi\) and its inverse? → research/block_matrix.py

  • Testing the Courant-type axioms (right Leibniz, anchor morphism, Jacobi)? → research/axiom_suite.py

  • Transporting the structure by a \(\Psi\)-twist? → research/axiom_suite.py (AlgebroidData.transport)

  • Index antisymmetrization \(T^{[ab]}\)? → research/antisymmetrize.py

  • Selecting the needed rules and assembling the engine automatically? → research/engine_assembly.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/research/__init__.py

No mathematics. Exports five building blocks.

—

research interface

—

infrastructure

jacopy/research/sections.py

Sections of the bundle \(E=A\oplus Z\) are first-class objects: a vector field and one or more forms. The \(C^\infty(M)\)-module structure on \(\Gamma(E)\) is defined slot by slot (addition, negation, multiplication by a function).

SectionType → the summands (slots) of \(E\)
SectionType.generalized_tangent() → \(TM\oplus\Lambda^pT^*M\) (\(p=1\): the standard generalized tangent bundle)
SectionType.exceptional() → \(TM\oplus\Lambda^2T^*M\oplus\Lambda^5T^*M\) (E₆)
GeneralizedSection → \(U\oplus\omega_2\oplus\omega_5\)
scale → \(f\cdot e\) (module structure)
Slot.accepts → type and degree check of the component

research interface, generalized geometry, exceptional geometry (E6), vector bundle, scalar multiplication

—

mathematics

jacopy/research/block_matrix.py

Block-operator matrices of bundle automorphisms, e.g. \(\Psi_\Pi=\begin{pmatrix}1&\Pi\\0&1\end{pmatrix}\). The entries are operators between slots (\(\theta^\sharp:\Lambda^1\to TM\), \(\iota_\cdot B:TM\to\Lambda^p\) …) and they form an algebra closed under addition and composition. For unipotent \(\Psi=1+N\) (\(N\) nilpotent) the inverse is exactly \(\Psi^{-1}=1-N+N^2-\dots\) (finite Neumann series). For non-unipotent twists the user must supply the inverse.

Operator (+, −, scalar multiplication, ComposedOperator = composition) → operator algebra between \(\mathrm{Hom}\) spaces
BlockMatrix.apply → \((\Psi e)_i=\sum_j\Psi_{ij}e_j\)
is_unipotent → identity on the diagonal, strictly block-triangular
inverse → \(\Psi^{-1}=\sum_k(-N)^k\)
The “E₆ paper (4.10)–(4.12)” citation in the docstring is marked “unidentified, unverified” in the docstring itself

research interface, twist (Ψ, B, Π, R), vector bundle

—

mathematics

jacopy/research/axiom_suite.py

Given a bracket, an anchor \(\rho\), a pairing \(\langle,\rangle\), and a coboundary \(D\), it tests Courant-type conditions component by component: vector components are evaluated on a test function, \(k\)-forms on \(k\) new vector fields. \(\Psi\)-transport [arXiv:2409.11973 §7]: \([\cdot,\cdot]'=\Psi^{-1}[\Psi\cdot,\Psi\cdot]\), \(\rho'=\rho\circ\Psi\), \(\langle,\rangle'=\langle\Psi\cdot,\Psi\cdot\rangle\), \(D'=\Psi^{-1}\circ D\).

Bracket.twist → \([e_1,e_2]_\Psi=\Psi^{-1}[\Psi e_1,\Psi e_2]\)
AlgebroidData.transport → twisted structure
right_leibniz → \([e_1,fe_2]=f[e_1,e_2]+(\rho(e_1)f)e_2\)
symmetric_part → \([e_1,e_2]+[e_2,e_1]=D\langle e_1,e_2\rangle\)
anchor_morphism → \(\rho[e_1,e_2]=[\rho e_1,\rho e_2]_{\text{Lie}}\) (residual = obstruction)
metric_invariance → \(\mathcal L^R_{e_1}g(e_2,e_3)=g([e_1,e_2],e_3)+g(e_2,[e_1,e_3])\)
jacobi → Leibniz–Jacobi \([e_1,[e_2,e_3]]=[[e_1,e_2],e_3]+[e_2,[e_1,e_3]]\)

research interface, Courant algebroid, anchor ρ, Leibniz rule, Jacobi identity, pairing, metric, twist (Ψ, B, Π, R)

—

mathematics

jacopy/research/antisymmetrize.py

The index antisymmetrization of the papers, \(T^{[a_1\dots a_n]}=\frac1{n!}\sum_\sigma\operatorname{sgn}(\sigma)\,T^{a_{\sigma(1)}\dots a_{\sigma(n)}}\), on frame component expressions. Indices are renamed simultaneously, so no clashes occur.

antisymmetrize / antisymmetrize_indices → \(T^{[\dots]}\) (no \(1/n!\) if unit_weight=True)
permutation_sign → \(\operatorname{sgn}\sigma\)
swap_indices → transposition \(a\leftrightarrow b\)
rename_indices → simultaneous renaming

research interface, frame/coframe, (anti)symmetrization

—

mathematics

jacopy/research/engine_assembly.py

Determines which node families occur in the expressions (Cartan operators, Nambu \(\sharp\)’s, multivector interior products, \(\wedge\), evaluations…), assembles the engine with only the needed rules, and reports the result. Mathematical rules defined here: \(0\cdot x=0\) (also in operator slots), canonical ordering by \(\alpha\wedge\beta=(-1)^{\lvert\alpha\rvert\lvert\beta\rvert}\beta\wedge\alpha\) (only for concrete degrees) and \((f\alpha)\wedge\beta=f(\alpha\wedge\beta)\). A Poisson / fundamental identity declaration is never inferred; it is given explicitly.

ZeroProductDefinition → \(0\cdot x=0\)
WedgeGradedOrderDefinition → graded commutativity of \(\wedge\) (Koszul)
WedgeScalarFactorDefinition → pulling a scalar out of \(\wedge\)
Scan → families occurring in the expressions
assemble_engine → assembling the engine
assembly_report → explanation of the assembly

research interface, rewrite rule, wedge product, Koszul sign

—

partial

jacopy/research/structure_kinds.py

No mathematics (registration system). Node families, family rules and structure kinds can be registered without editing the library. The rule order is kept explicit, since it is part of the engine’s behavior.

register_family, register_family_rule, register_structure_kind
StructureKind.host_engine → base engine of the first structure (default: the tangent Cartan engine)

research interface

—

infrastructure

jacopy/research/nambu_kind.py

Registration of Nambu–Poisson structures (\(p=1\): Poisson) for engine assembly: the NambuSharpVF family (owner \(\Pi\)), the \(\wedge\) and alternation rules in the \(\sharp\) slots, and a base engine containing the tilde Cartan calculus + Koszul/tilde rules. It reports the fundamental identity declaration.

NambuPoissonKind → Nambu–Poisson structure kind
register → registration of the family and rules

research interface, Nambu–Poisson, tilde calculus, Koszul bracket

—

partial

jacopy/research/providers.py

No mathematics. The protocol “a structure is the authority on its own rules”: each structure declares its own rules and which of them are assumptions.

structure_rules, declared_axioms, is_provider

research interface, assumption/declaration

—

infrastructure

jacopy/proof/

This folder contains the tools for the notion of proof. An equality claim \(\text{lhs}=\text{rhs}\) is brought to normal form by applying rules (definition/axiom/theorem) step by step; each step is recorded as “before → after”. The axioms and hypotheses relied on, the structure (algebroid, Poisson structure…) they belong to, and the generality level of the result (every degree, or the \(p=2\) instance) are tracked separately. The principles of mathematical proof are here too: “two derivations that agree on generators are equal”, “the derived bracket theorem”, the use of theorems by citation, and alternative rule orders in proof search. A residual is never counted as a refutation.

Tip

Where to look

  • How is an equality proved (general entry point)? → proof/verifier.py (show_equal, prove_jacobi)

  • The principle “derivations that agree on generators are equal”? → proof/strategies.py (AgreementOnGenerators)

  • Jacobi via the derived bracket theorem? → proof/strategies.py (DerivedBracketStrategy)

  • Recording a proved theorem and using it in another proof (citation)? → proof/theorems.py

  • Which assumptions does the result rest on? → proof/result.py (requires), proof/registry_facts.py, proof/ownership.py

  • The engine that applies definition/axiom rules? → proof/expansion.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/proof/__init__.py

No mathematics. Re-exports the proof layer.

—

—

—

infrastructure

jacopy/proof/step.py

A single step of a proof: before → after, the rule applied and the justification. Sub-proofs can be nested. The role of the step (definition / assumption / theorem), the structure that owns it, and its literature source are stored with the step.

ProofStep → an inference step \(E_i\Rightarrow E_{i+1}\)
role, provenance_tag → axiom or theorem
is_minted → whether the step comes from the library’s own producer

proof chain, citation/bibliography

—

partial

jacopy/proof/chain.py

No mathematics. Proof transcript, the ordered list of steps.

ProofChain → \(E_0\to E_1\to\dots\to E_n\)
initial, final

proof chain

—

infrastructure

jacopy/proof/expansion.py

Definition expansion engine: Definition = local rewrite rule. Rules are applied at the leftmost-innermost matching position, repeatedly, up to a fixed point. Built-in rules: scalar contract \(D(c)=0\) (\(c\) an ℝ-constant, \(D\) a certified derivation), linearity in the operator \((A+B)(x)=A(x)+B(x)\), and explicit assumption “this expression \(=0\)”.

Definition.matches/rewrite → rule \(L\to R\)
ExpansionEngine.expand → reduction to normal form by the rules
ScalarConstantContract → \(D(c)=0\)
ActOverSumOpDefinition → \((A+B)x=Ax+Bx\)
ExplicitAssumption → declared hypothesis \(\text{instance}\to\text{target}\)
effective_role → a rule from outside the library is always counted as an “assumption”
default_engine → structural rules only (the Cartan rules are in central)

rewrite rule, assumption/declaration, linearity

—

mathematics

jacopy/proof/normalize.py

Common normalization loop: definition expansion → graded product rule → algebraic simplification, up to a fixed point. The reason for stopping is reported: fixed point, round budget, step budget, or goal.

normalize → computing \(\text{NF}(E)\) (a unique canonical form is not claimed)
NormalForm.converged → whether a fixed point was reached
PASSES = {product_rule, simplify}

normal form/simplification

—

partial

jacopy/proof/strategies.py

Proof strategies. ExpandAndSimplify: the obstruction \(\text{lhs}-\text{rhs}\) is expanded, simplified, and checked for 0. AgreementOnGenerators: if two graded derivations of the same degree agree on a set of generators, they are equal everywhere (derivations are determined by generators). DerivedBracketStrategy: given the preconditions \([Q,Q]=0\), it reduces the cyclic Jacobi to \([Q,Q]_{\text{base}}\). UnrollToFoundations: unrolls theorems down to the axioms. Portfolio: tries them in order.

ExpandAndSimplify → \(\text{lhs}-\text{rhs}\to0\)
AgreementOnGenerators → \(D_1(g)=D_2(g)\ \forall g\in\text{generators}\ \Rightarrow D_1=D_2\)
DerivedBracketStrategy.prove_jacobi → derived bracket theorem (only for the given triple and verified preconditions)
UnrollToFoundations → proof unrolled to the foundational axioms
ProofFailure → residual that does not close (not a refutation)

proof chain, derived bracket, Jacobi identity, Leibniz rule

—

mathematics

jacopy/proof/search.py

Proof search in the rewrite state graph. Nodes are expressions, edges are single moves. A bounded BFS runs, switching to beam search if the budget is exceeded. Among the proofs found, one is selected by the criteria “shortest”, “most readable (smallest intermediate expression)” and “most elementary (fewest theorem citations)”.

SearchStrategy → search in the proof graph
SCORERS → shortest / readable / elementary
prove(lhs, rhs, prefer=…) → returns a proof chain

proof chain, rewrite rule

—

partial

jacopy/proof/theorems.py

Theorem book: a proved equation (\(\text{lhs}=\text{rhs}\)) is stored together with its proof, generality tag and requirements. Generality tags: operator level (all degrees), on a generic function, symbolic \(p\), single instance (e.g. \(p=2\)). Citing a proved theorem feeds it into the engine as a derived rule (\(\text{lhs}\to\text{rhs}\)). A theorem can be cited only if the engine’s structures satisfy the theorem’s hypotheses.

Theorem → proved proposition + proof + hypotheses
GENERALITY_TAGS → operator-level / generic-function / symbolic-p / instance
TheoremDefinition → use of a theorem as a rewrite rule (reverse direction with reverse)
check_citation → whether the hypotheses are satisfied (validity of applying a lemma)
cite → adding a theorem to the engine
TheoremBook → table of results

theorem builder, proof chain, assumption/declaration

—

mathematics

jacopy/proof/result.py

Model of a proof result. States: CLOSED (the two sides met), RESIDUAL (a difference remained at the fixed point, not a refutation), BUDGET, INVALID (ill-typed goal, e.g. 1-form = 2-form). There is deliberately no “DISPROVED” state. The assumptions the result rests on (declared axiom instances, structures, requirements of cited theorems, registry answers) are derived from the chain.

Goal → \(\text{lhs}=\text{rhs}\)
ProofResult.status → CLOSED/RESIDUAL/BUDGET/INVALID
Assumption → logical dependency (hypothesis)
check_goal → type/degree compatibility of the two sides
structural_requires → the hypothesis set of the proof
prove(engine, lhs, rhs) → normalizing and comparing both sides

proof chain, assumption/declaration

—

partial

jacopy/proof/ownership.py

Records the structure to which rules, theorems, and steps belong. Since two structures with the same name (two different algebroids both called \(E\)) may carry different axioms, a theorem proved for one structure is prevented from being used in another. Substructure relation: theorems of the structure with fewer axioms hold in the structure with more axioms, but not conversely.

is_substructure → \(\text{decl}(A)\subseteq\text{decl}(B)\) ⇒ a theorem of \(A\) holds in \(B\)
OwnerScope.bind/check/transfer → name ↔ structure binding
AmbiguousOwnerError → error if two structures are bound to the same name

assumption/declaration

—

partial

jacopy/proof/registry_facts.py

Records the answers given by the registry (”\(x\) is a scalar”, “the degree of \(p\) is 0”) as hypotheses of the proof. A theorem can be cited only in a context where these answers are the same.

RegistryFact → (expression, property, value) hypothesis
unmet → hypotheses not satisfied in the context
registry_context → the registry context of the proof

assumption/declaration

—

partial

jacopy/proof/replay.py

Connectedness check of a proof chain: the “before” of each step must be the “after” of the previous one, and the chain must run from one claimed side to the other. It does not recompute the correctness of the rules, it only replays the shape of the chain. It flags steps not produced by the library (hand-made).

chain_shape → whether \(E_0=\text{lhs}\to\dots\to E_n=\text{rhs}\) is connected
accountable → whether the step was produced by a library rule
chain_verdict → hard/soft defects

proof chain

—

partial

jacopy/proof/recognizers.py

Shape recognition only: the form \([A,B]\), \(D(a\,b\cdots)\) (Leibniz left-hand side), an antisymmetry claim. Performs no rewriting.

CommutatorRecognizer → \([A,B]\)
LeibnizRecognizer → \(D(a_1a_2\cdots)\)
AntisymmetryRecognizer → \([A,B]\) as an antisymmetry claim

Leibniz rule, graded algebra

—

partial

jacopy/proof/diagnostics.py

No mathematics (diagnostics framework). Scans the residual of a proof that does not close and produces hints about which rule is missing.

diagnose → residual analysis
DiagnosticHint, DiagnosticReport

proof chain

—

infrastructure

jacopy/proof/diagnostic_rules.py

Diagnostic rules; each catches cases where the corresponding mathematical identity was not applied. For odd-degree \(D\), if \(D(D(x))\) remains, \(D^2=0\) was not applied; if \(D(0)\) remains, the zero was not eliminated; \((-D)(x)=-D(x)\); if \(\iota_V(df)\) remains, it was not reduced to \(V(f)\); if a bare symbol is used instead of a vector field; if there is a factor of unknown degree.

stalled_d_squared → \(D^2=0\) (odd-degree \(D\))
stalled_act_over_zero → \(D(0)=0\)
unreduced_iota_on_df → \(\iota_V df=V(f)\)
unclassified_factor → factor with undeclared degree

d²=0, interior product ι, exterior derivative d

—

partial

jacopy/proof/verifier.py

General proof API. show_equal proves an equality. prove_jacobi proves graded Jacobi; for a derived bracket it chooses the strategy of reduction to \([Q,Q]\). prove_operator_equation proves an operator equation via agreement on generators. unroll_property shows the axioms a property rests on.

show_equal → proof of \(\text{lhs}=\text{rhs}\)
prove_jacobi → \(\sum_{cyc}\pm[a,[b,c]]=0\)
prove_equivalence → equivalence of two brackets / conditions / expressions
prove_operator_equation → \(D_1=D_2\) (via generators)
unroll_property → axiomatic origin of a property

proof chain, Jacobi identity, derived bracket

—

partial

jacopy/display/

This folder contains the display of expressions, proof transcripts and theorems: plain text, LaTeX, Jupyter, and colored terminal. It performs no mathematical computation, but latex.py carries the library’s notation conventions (\(\iota_X\), \(\tilde\iota_\alpha\), \(\mathcal L_X\), \(\tilde{\mathcal L}\), \(\nabla\), \(\langle\alpha,X\rangle\), \([\cdot,\cdot]\), \(\star\), \(\sum\), \(\wedge\), \(\otimes\) …).

Tip

Where to look

  • LaTeX rendering of an expression? → display/latex.py (to_latex)

  • LaTeX/PDF document of a proof? → display/latex.py (chain_to_latex_document)

  • Which symbol is used to write \(\iota_X\), \(\mathcal L_X\), \(\nabla\)? → display/latex.py (registered handlers)

  • Proof tree in Jupyter? → display/jupyter.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/display/__init__.py

No mathematics. Exports the display functions.

—

LaTeX/display

—

infrastructure

jacopy/display/ascii.py

No mathematics. Plain-text output; performs the sign correction \(a+(-b)\to a-b\), inserts precedence parentheses, and adds source citations.

to_ascii, step_to_ascii, chain_to_ascii

LaTeX/display, citation/bibliography

—

infrastructure

jacopy/display/latex.py

No mathematics; node type → LaTeX notation mapping. Examples: Interior → \(\iota_X\), TildeInterior → \(\tilde\iota_\alpha\), LieDerivative → \(\mathcal L_X\) / \(\tilde{\mathcal L}\), CovariantOp → \(\nabla\), Pairing → \(\langle\alpha,X\rangle\), IndexedSum → \(\sum_a\), Commutator/BracketApply → \([a,b]\). Renders proofs as gather* blocks and as article and TikZ documents.

to_latex → expression → LaTeX
chain_to_latex, theorem_to_latex(_document) → proof / theorem document
register → notation for the user’s own node

LaTeX/display, citation/bibliography

—

infrastructure

jacopy/display/jupyter.py

No mathematics. _repr_latex_ / _repr_html_ wrappers for Jupyter, collapsible proof trees and theorem cards.

display_expr, display_chain, display_theorem

LaTeX/display

—

infrastructure

jacopy/display/terminal.py

No mathematics. Colored tree output with the rich package; falls back to ASCII if the package is absent.

render_chain, print_chain

LaTeX/display, citation/bibliography

—

infrastructure

jacopy/oracle/

This folder contains a numerical falsifier independent of the engine. When the engine closes an equality, both sides are evaluated in random concrete coordinate models and compared. Models: polynomial functions with \(\mathbb Q\) coefficients on \(\mathbb R^n\), vector fields, forms, multivectors; Poisson bivectors; algebroids \(E=\mathbb R^n\times\mathbb R^r\). The library’s definitions are rewritten here in coordinates: Palais \(d\), interior product into the first slot, Schouten, Koszul, \(\tilde d\), Nambu \(\sharp\)… An “AGREE” result is not a proof; it only means “not refuted in N models”. The models also check numerically that they satisfy the axioms they claim.

Tip

Where to look

  • Numerical testing of an equality? → oracle/check.py (check_equal, check_chain)

  • Coordinate formulas for \(d\), \(\iota\), \(\mathcal L\), Schouten, Koszul? → oracle/values.py

  • Algebroid models and which axioms they satisfy? → oracle/models/algebroid.py

  • Poisson bivector models? → oracle/models/tangent.py

  • Concrete computation of \(d_E\) (Palais), Jacobiator, Derivator, Predator? → oracle/realize_e.py

  • Testing that an unused assumption is really unnecessary? → oracle/select.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/oracle/__init__.py

No mathematics. Lazy loading for check_equal / check_chain.

—

model oracle

—

infrastructure

jacopy/oracle/values.py

Coordinate computation on \(\mathbb R^n\). Forms and multivectors are written as \(\sum_I c_I\,dx^{I}\) with increasing indices. Evaluation uses the determinant convention (no \(1/p!\)), and \(\iota\) inserts into the first slot. Operations defined: \(d(c\,dx^I)=dc\wedge dx^I\), \([X,Y]=XY-YX\); the Lie derivative is deliberately computed not by \(d\iota+\iota d\) but by the defining formula (\((\mathcal L_X\omega)(Y\dots)=X(\omega(Y\dots))-\sum\omega(\dots[X,Y_i]\dots)\)), so that the Cartan formula can genuinely be tested; Schouten–Nijenhuis, \(\pi^\sharp\), the Koszul bracket, \(\tilde d\) and \(\tilde{\mathcal L}\) of the cotangent algebroid, Nambu \(\sharp\), \(E\)-forms, \(\wedge\) via shuffles.

Ring → \(\mathbb Q[x_0,\dots,x_{n-1}]\)
VecV, FormV, MultiV, OpV → vector field, form, multivector, operator values
dwedge → \(dx^I\wedge dx^J=\operatorname{sgn}\,dx^{\text{sort}(IJ)}\)
dinterior → \(\iota_v dx^I=\sum_k(-1)^k v_{I_k}dx^{I\setminus I_k}\)
det_eval → \(\omega(X_1..X_p)=\sum_I\omega_I\det[X_j^{I_i}]\)
d_form → exterior derivative \(d\)
vf_bracket → \([X,Y]^i=X(Y^i)-Y(X^i)\)
lie_form, lie_multi → \(\mathcal L_X\) on forms/multivectors
schouten / _sn → recursive definition of \([P,Q]_{SN}\) (with signs shifted by \(s=m-1\))
sharp → \(\langle\beta,\pi^\sharp\alpha\rangle=\pi(\alpha,\beta)\)
koszul → \([\alpha,\beta]_\pi=\mathcal L_{\pi^\sharp\alpha}\beta-\mathcal L_{\pi^\sharp\beta}\alpha-d\,\pi(\alpha,\beta)\)
tilde_d, tilde_lie → Palais \(\tilde d\) and \(\tilde{\mathcal L}\) of the algebroid \((T^*M,\pi^\sharp,[\,,]_\pi)\)
nambu_sharp → \((\Pi\omega)(f)=\Pi(\alpha_1,\dots,\alpha_p,df)\)
e_wedge, shuffles → \((\alpha\wedge\beta)=\sum_{(p,q)\text{-shuffle}}\operatorname{sgn}\sigma\,\alpha\,\beta\)
SecV, EFormV → sections of \(E\) and ordered multilinear \(E\)-forms

model oracle, vector field, differential form, multivector, wedge product, interior product ι, exterior derivative d, Lie derivative L, Lie bracket, Schouten–Nijenhuis bracket, Poisson structure, Koszul bracket, tilde calculus, cotangent algebroid, Nambu–Poisson

—

mathematics

jacopy/oracle/realize.py

Translates the expression tree into concrete model values. The two meanings of Product are separated: composition in operator position, scalar multiplication in value position. If both are possible, both readings are computed and AMBIGUOUS is reported if they diverge.

realize / Env.value / Env.op → interpretation (semantic function)
Registered nodes: Act, Wedge, Pairing, MultiEval, Interior, LieDerivative, ExteriorDerivative, LieBracketVF, Commutator, BracketApply, SharpVF, KoszulBracket, HamiltonianVF, NambuSharpVF, PoissonBracketValue …
compose, op_sum, op_scale → operator algebra

model oracle, Hamiltonian vector field, Poisson bracket, Koszul bracket, Nambu–Poisson

—

mathematics

jacopy/oracle/realize_e.py

Concrete interpretation of algebroid nodes. \(d_E\) by the ordered Palais formula: \(d\omega(X_0..X_p)=\sum_i(-1)^i\rho(X_i)\omega(..\hat X_i..)+\sum_{i<j}(-1)^{i+j}\omega([X_i,X_j],..)\); defined even if the bracket is not antisymmetric, but alternating only in an antisymmetric model. \(\mathcal L^E_u f=\rho(u)f\), \(\mathcal L_u v=[u,v]_E\). \(\iota_u\) inserts into the first slot. It also covers the Jacobiator, the Derivator, the Predator, anholonomy, the locality tensor, frames/coframes, and indexed sums.

e_d → \(d_E\) (Palais)
e_lie → \(\mathcal L^E_u\)
Jacobiator → \(J(u,v,w)=[u,[v,w]]-[[u,v],w]-[v,[u,w]]\) (Leibniz form)
Derivator → \(D_\Phi(u,v)=\Phi[u,v]-[\Phi u,v]-[u,\Phi v]\)
Predator → \(P_\Phi(u,v)=\Phi[u,v]_E-[\Phi u,\Phi v]_{\text{Lie}}\)
anholonomy → \(\gamma^c_{ab}=\langle e^c,[e_a,e_b]\rangle\)
LocalityOperator → the \(L\) in \([fu,v]=-\rho(v)(f)u+f[u,v]+L(Df,u,v)\)

model oracle, anchor ρ, exterior derivative d, Lie derivative L, interior product ι, Jacobiator, frame/coframe, metric, locality operator L

—

mathematics

jacopy/oracle/models/__init__.py

No mathematics (package definition, 2 lines).

—

model oracle

—

infrastructure

jacopy/oracle/models/tangent.py

Tangent model: \(M=\mathbb R^n\), each atom is assigned seed-determined random polynomial data. Poisson families: planar, so(3)* Lie–Poisson × a Casimir function (\(C=\lvert x\rvert^2\)), for \(n\ge4\) the product of two planar structures. Counter-model: a generic quadratic bivector, for which \([\pi,\pi]_{SN}\neq0\) is verified.

TangentModel → random function, vector field, form and multivector on \(\mathbb R^n\)
structure_bivector → Poisson / counter-model / generic \(\pi\)
test_arguments → test basis for operator equality (forms and multivectors in every degree)
OracleSelfCheckError → if the model does not satisfy its claim

model oracle, Poisson structure, Schouten–Nijenhuis bracket

—

mathematics

jacopy/oracle/models/algebroid.py

Algebroid models \(E=\mathbb R^n\times\mathbb R^r\). The bracket has the form \([u,v]^c=u^a\rho_a(v^c)-\lambda v^b\rho_b(u^c)+C^c_{ab}u^av^b+S(u,v)\); it is transported by a random unipotent bundle automorphism. There are 16 families (Lie \(TM\oplus\mathbb R\), so(3) action algebroid, Dorfman/Courant, LWX, pre-Leibniz, …); each satisfies certain axioms (RL, LL, AM, J, AS, SP, MI) and is numerically verified to violate the others.

EStructure → \((E,\rho,[\,,],g,L)\), axioms verified
anchor → \(\rho(u)=u^a\rho_a\)
D → \((Df)_a=\rho_a(f)\)
sharp → \(g^{-1}\)
build_structure → structure from family, \(n\), \(r\)
AlgebroidModel.frame → unit upper-triangular polynomial frame (det = 1)
section_map → \(C^\infty\)-linear \(\Phi:E\to TM\) or \(E\to E\)

model oracle, Lie algebroid, almost-Lie algebroid, Courant algebroid, Dorfman bracket, Courant bracket, anchor ρ, frame/coframe, metric, H-flux, locality operator L

—

mathematics

jacopy/oracle/select.py

Decides which models to select. Each algebroid in the equation is given families that satisfy its declared axioms and violate as many other axioms as possible. Violations are chosen by weighted greedy covering. “Assumption leak” test: the proved identity must still hold in a counter-model that violates an axiom the proof did not use. For free indices all assignments are tried.

plan_algebroids → model plan
cover → greedy set cover for axiom violations
closure → derivable closure of the axioms used
leak_counter_plans → counter-model for an unused axiom
index_assignments → values of free indices (equal/not equal)

model oracle, assumption/declaration

—

mathematics

jacopy/oracle/check.py

Comparison logic. Dimension \(n=\max(3,D+1)\), \(D\) the largest exterior degree over all subnodes; otherwise a high-degree object would vanish identically and false identities would pass. Symbolic degrees are tried in the range \(0..k+2\) (\(k\): number of degree-lowering operations). Operators are compared on a full test basis; if their domains differ, the operators are counted as different.

check_equal → comparing lhs and rhs in the models
check_chain → testing each step (the first refuted step shows the faulty rule)
max_exterior_degree → \(D\)
degree_range → symbolic degree samples
values_equal → operator equality (same value on every test argument)

model oracle

—

mathematics

jacopy/oracle/hook.py

No mathematics. Hooks into the engine’s closing point; the off/warn/strict modes and warning/exception handling are here.

on_closed → running the oracle for a closed equality
OracleDisagreement → refutation in strict mode

model oracle

—

infrastructure

jacopy/oracle/report.py

No mathematics. Verdict kinds (AGREE = “not refuted”, DISAGREE, ASSUMPTION_LEAK, UNSUPPORTED…) and witness models.

OracleReport, ChainReport, Witness

model oracle

—

infrastructure

jacopy/ (root files)

The package’s entry point and the bibliography table. The mathematical objects themselves are not defined here. The root __init__ orders the layers (core → algebra → algorithms → brackets → proof → display → central → packages → research) and exposes the stable API. bibliography.py holds the bibliographic records of the papers on which the rules and theorems rest.

Tip

Where to look

  • Where is the bibliographic record of the paper a rule rests on? → bibliography.py (BIBLIOGRAPHY, cite)

  • Which stable names does the package export? → jacopy/__init__.py (__all__)

  • How are two objects with the same name (Zero, normalize, prove, cite) told apart? → the docstring of jacopy/__init__.py

File

Mathematical content

Key items → mathematical counterpart

Concepts

Source

Type

jacopy/__init__.py

No mathematics. Loads the core expression classes immediately and the other names on first use (lazily). Its docstring explains the cases where two different objects share a name (e.g. the Zero expression vs. the block-matrix zero operator).

__getattr__ → lazy re-export
__version__ → the package version

—

—

infrastructure

jacopy/bibliography.py

Produces, in APA 7 format, the literature sources of rules, theorems and proof steps. The registered works include Uchino 2002; Liu–Weinstein–Xu 1997; Roytenberg 1999; Grabowski–Marmo 2001; Kosmann-Schwarzbach 2004 (“Derived brackets”); Dereli–Doğan 2020/2023; Çatal-Özer–Dereli–Doğan 2022; Çatal-Özer–Doğan–Yetişmişoğlu 2024/2025; Asakawa et al. 2015; Ševera 2017.

Reference → the bibliographic record of a work
Citation, cite → work + locator (e.g. “Proposition 2.1(i)”)
in_text, apa_reference, bibtex_entry → in-text citation / bibliography entry

citation/bibliography

—

infrastructure

Appendix: open points

Points noticed while compiling this table that are not yet resolved:

  1. The Predator is used with two signs. In jacopy/central/algebroid/operators.py, \(P_\Phi(u,v)=\Phi[u,v]-[\Phi u,\Phi v]\); in jacopy/central/algebroid/defect_formulas.py, the defect is defined with the opposite sign, following the convention of TW Appendix A. The code is internally consistent; when reading, note which file you are in.

  2. Rules for \(\iota_X\). The antiderivation law \(\iota_X(\alpha\wedge\beta)=\iota_X\alpha\wedge\beta+(-1)^{|\alpha|}\alpha\wedge\iota_X\beta\) and \(\iota_X^2=0\) in the docstring of jacopy/central/objects/interior.py are not applied as rules in that file, only stated; which general pass applies them was not traced.

  3. Leibniz rule of the connection. The docstring of jacopy/central/objects/connection.py says “the Leibniz rule is not yet invoked by the engine”, whereas jacopy/central/tangent/definitions.py proves prove_covariant_leibniz. The two files may refer to different engine layers; the contradiction was not checked.

  4. Sign of \(dH\) in twisted_courant.py. The module docstring of jacopy/packages/generalized/twisted_courant.py writes the [C’1] defect as \(-\iota_W\iota_V\iota_U\,dH\), the docstring of prove_twisted_jacobi_dh_defect as \(+\iota_W\iota_V\iota_U\,dH\) (same orientation of the Jacobiator). The table uses the function docstring; which one the code proves was not verified by running it.

  5. E6 paper numbers. The “E6 paper” (4.10)–(4.15) citations refer to a source whose bibliographic data has not yet been identified; they cannot be checked. Files in which they occur: jacopy/research/block_matrix.py (the file itself says “unidentified, unverified”), jacopy/central/objects/multivector_interior.py, jacopy/packages/drinfeld/examples.py, jacopy/packages/generalized/exceptional_double.py, jacopy/packages/generalized/exceptional_rotation.py, jacopy/packages/generalized/frame_evaluation.py.