cinfsymmetries
A Python library for the geometric study of differential equations, bridging the gap from sympy to advanced concepts such as Lie symmetries, $\lambda$-symmetries, $C^{\infty}$-structures, and solvable structures.
Originally inspired by functionality from Maple packages for Differential Geometry.
Features
- VectorFields and Distributions: Define symbolic vector fields over an arbitrary set of variables.
- Lie Brackets: Compute Lie Brackets of vector fields analytically.
- Involutivity: Check if a distribution is involutive.
- Symmetries: Check if a given vector field is a symmetry of a distribution.
- C^inf-Symmetries: Specialized check for Generalized symmetries including $\lambda$-symmetries.
- Prolongations: Automatically prolong vector fields to higher-order jet spaces (any number of independent and dependent variables).
- Differential Forms: Support for $k$-forms, exterior derivative, wedge product, interior product, and unified Lie derivatives ($\mathcal{L}_X$).
- Symmetry Search: Automatically derive determining equations for Lie and lambda-symmetries of systems of ODEs or PDEs.
- Pfaffian Systems: Compute dual distributions from 1-forms and vice versa.
- Invariants: Calculate fundamental invariants of a vector field.
Documentation
For a detailed guide on how to use the library, including how to create vector fields and check for symmetries, please refer to the Manual.
Installation
pip install -e .
Quick Start
import sympy as sp
from cinfsymmetries import VectorField, LieBracket, Distribution
x, y = sp.symbols('x y')
# Define Vector Fields X = d/dx, Y = x*d/dy
X = VectorField({x: 1})
Y = VectorField({y: x})
# Lie Bracket [X, Y] = d/dy
bracket = LieBracket(X, Y)
print(bracket) # Outputs: (1)*d_y
# Create an ODE-like rank 1 distribution (spanned by X + Y)
D = Distribution([X + Y])
# Check if X is a symmetry of D
# [X, X+Y] = [X, Y] = d/dy, which is NOT in the span of (d/dx + x*d/dy), so False.
print(D.check_symmetry(X))
# Get invariants of X
print(X.get_invariants()) # No non-constant invariants in 1D
Metadata
Release files for cinfsymmetries 1.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cinfsymmetries-1.2.6.tar.gz | 207.0 kB | Without provenance | Details for cinfsymmetries-1.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cinfsymmetries-1.2.6-py3-none-any.whl | Python 3 | none | any | Details for cinfsymmetries-1.2.6-py3-none-any.whl |
Total release size: 228.1 kB
Release files / cinfsymmetries-1.2.6.tar.gz
| Download URL | cinfsymmetries-1.2.6.tar.gz |
|---|---|
| Size | 207.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5ed8c45215b780653f8fa53723480150a3650317f34a58e6ba2688153bed0bd
|
|
BLAKE2b-256 checksum How to use checksums |
fabea99d4e95476711dbfd9fec12a26ecf5df2d21b72b13c987acab936328a0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / cinfsymmetries-1.2.6-py3-none-any.whl
| Download URL | cinfsymmetries-1.2.6-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72850e820f4bcc4aba7b664239381a514109b128dd1320b035541d47fd00ae0a
|
|
BLAKE2b-256 checksum How to use checksums |
6e18994baa945f1ca056f188a5b30dc573471a1c175b308918d55b6840af8299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for cinfsymmetries 1.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.