Idenso
Symbolic tensor identities for Spenso and Symbolica
Idenso is the symbolic identity and simplification layer for tensors encoded in the form that Spenso can parse from Symbolica expressions. It provides representation symbols, index tooling, reversible “cooking” of subexpressions, selected-sector collection, and identities for Dirac, metric, epsilon, and color algebra.
Idenso rewrites abstract tensor expressions. Typed
collect selects representation families while preserving unrelated factors; it does not turn tensors into dense arrays of components. Concrete tensor storage and network execution belong to Spenso.Choose a task
- To install Symbolica and simplify one metric contraction with its bundled community modules, follow the Python guide.
- To apply the same identity through the native API, use the Rust guide.
- To verify the rewrite as a controlled, observable pass, follow the controlled identity tutorial and the Python method reference.
- To isolate dummy-index namespaces or cook a large expression, use the algebra guide with the exact
IndexToolingandCookableRustdoc. - To audit a sign or normalization in a Dirac/color pass, use the source-backed shipped color and Dirac convention reference.
A controlled rewrite pipeline
There is no universally correct “simplify everything” order. A robust workflow makes each phase explicit:
- initialize the standard representations and tensor symbols;
- inspect dangling indices and normalize or wrap dummy-index namespaces when combining expressions;
- select the sectors needed by the next identity pass with typed
collect; - contract indices and simplify gamma or color structures as appropriate;
- canonicalize and compare results using the conventions of the consuming calculation.
Contraction and simplification return a TensorExpression with factored sums. Request expand explicitly only when the complete polynomial is required. Wrapping indices is especially important before multiplying independently constructed expressions: equal printed index names can otherwise acquire an unintended contraction.
Representations and cooking
The representation layer defines spin-fundamental, color-fundamental, color-sextet, bispinor, and color-adjoint types together with their duality. Importing the Spenso community module registers the related Symbolica symbols and Spenso tags before expressions are built.
The Cookable API can replace selected function-like subexpressions or index payloads with compact symbols and later reverse the operation. Use reversible settings when the original expression must be recovered. A cooked symbol is an intermediate encoding, not a portable serialized physics result unless the associated mapping and settings are retained.
Idenso is consumed by GammaLoop and its tensor conventions are shared with Spenso. Continue to the interface guide, native Rustdoc, and generated Python reference for supported functions, signatures, and feature gates.
Contributors changing representation syntax, symbolic-network parsing, index ownership, or rewrite order should also read the source-audited Idenso implementation architecture.