Skip to main content

Software package that allows efficient manipulation and comparison of Grothendieck motives in lambda-rings.

Project description

Motives 0.2.0

pypi PyPI Downloads python os

Motives is a symbolic manipulation package based on SymPy, which handles motivic expressions in the Grothendieck ring of Chow motives and other types of λ-rings. It is an easy to use library aimed to help researchers verify equations, simplify, and handle motivic expressions. Check the paper Motives meet SymPy: studying λ-ring expressions in Python for a more comprehensive description of the package.

Grothendieck's motive of a variety is an invariant that provides extensive information about its geometry. Manipulating motivic formulas and understanding when two distinct expressions can represent the same variety is sometimes complex but mathematically interesting. The goal of this package is to provide a comprehensive tool that allows efficient manipulation and comparison of motives, as well as expressions in other λ-rings. Furthermore, it contains the equations for the motives of some commonly used moduli spaces, so that the package can be applied easily to test hypothesis and conjectural results on their geometry.

Methodology

The simplification algorithm is based on a refinement of the abstract simplification algorithm for λ-ring expressions developed in [Alfaya '22]. See [Sanchez, Alfaya and Pizarroso '24] for the complete mathematical description of the algorithms and equations used by the package.

The package works on λ-rings (R,λ,σ) under the following assumptions:

  • R is a unital abelian ring with no additive torsion.
  • There are two mutually oposite λ-ring structures on R, λ and σ.
  • σ is a special λ-ring structure, and has associated Adams operations ψ. λ is not assumed to be special.

Based on these assumptions, the algorithm uses certain universal algebraic relations allowing to write λ-ring operations λ, σ and ψ in terms on each other and the fact that Adams operations are ring homomorphisms to convert any expression tree in a λ-ring as a polynomial in terms of a finite set of Adams operations ψ. This equivalent Adams polynomial can then be used for comparison, or be transformeed into a polynomial in λ-powers instead, which allows to obtain smaller polynomial representations of an expression when it depends of elements of small dimension in the σ λ-ring structure.

The package includes modules for working with the Grothendieck ring of motives, with its natural λ-ring structures yield by symmetric and alternated products. It contains modules for working with several commonly used motives, including the following:

  • Complex algebraic curves. Implements the algebraic relations from [Heinloth '07].
  • Jacobian and Picard varieties of curves. Implements the equations from [Heinloth '07].
  • Symmetric and alternated products of any variety given its motive.
  • Moduli spaces of vector bundles on curves. Implements the equations from [García-Prada, Heinloth and Shmitt '14], [Sánchez '14] and [del Baño '01].
  • Moduli spaces of L-twisted Higgs bundles on curves. Implements the theorems from [Alfaya and Oliveira '24] and the conjectural formula from [Mozgovoy '12].
  • Moduli spaces of chain bundles and variations of Hodge structure on curves in low rank. Implements the results in [García-Prada, Heinloth and Shmitt '14] and [Sánchez '14].
  • Algebraic groups. Implements the formula from [Behrend and Dhillon '07].
  • Moduli stacks of vector bundles and principal G-bundles on curves. Uses the conjectural formulas from [Behrend and Dhillon '07] (proven for SL(n,C))
  • Classifying stacks BG for several groups G. Applies results from [Behrend and Dhillon '07], [Bergh '16] and [Dhillon and Young '16].

Citation

If you use the "motives" package in your work, please cite the paper

Daniel Sanchez, David Alfaya and Jaime Pizarroso. Motives meet SymPy: studying λ-ring expressions in Python. arXiv:2501.00563, 2025.

Getting Started

Prerequisites

  • Python >= 3.10.6
  • pytest==7.4.4
  • sympy>=1.12
  • tqdm==4.66.1
  • typeguard==4.3.0

Installation

  1. Install the package from PyPI

    pip install motives
    
  2. Import the package in your Python code

    import motives
    

Alternatively, you can install the package from the source code:

  1. Clone the repository
    git clone https://github.com/CIAMOD/motives.git
    
  2. Install the required packages
    pip install -r requirements.txt
    

Usage

Instructions on how to run the software or code will be updated soon.

License

This project is licensed under the GNU GPLv3 License - see the LICENSE.md file in each repository for details.

Authors

  • Daniel Sánchez Sánchez, Student of the Degree in Mathematical Engineering and Artificial Intelligence, ICAI, Comillas Pontifical University
  • David Alfaya Sánchez, Department of Applied Mathematics and Institute for Research in Technology, ICAI, Comillas Pontifical University
  • Jaime Pizarroso Gonzalo, Department of Telematics and Computing and Institute for Research in Technology, ICAI, Comillas Pontifical University

Acknowledgments

This research was supported by project CIAMOD (Applications of computational methods and artificial intelligence to the study of moduli spaces, project PP2023_9) funded by Convocatoria de Financiación de Proyectos de Investigación Propios 2023, Universidad Pontificia Comillas, and by grants PID2022-142024NB-I00 and RED2022-134463-T funded by MCIN/AEI/10.13039/501100011033.

Find more about the CIAMOD project in the project webpage and the IIT proyect webpage.

Special thanks to everyone who contributed to the project:

  • David Alfaya Sánchez (PI), Department of Applied Mathematics and Institute for Research in Technology, ICAI, Comillas Pontifical University
  • Javier Rodrigo Hitos, Department of Applied Mathematics, ICAI, Comillas Pontifical University
  • Luis Ángel Calvo Pascual, Department of Quantitative Methods, ICADE, Comillas Pontifical University
  • Anitha Srinivasan, Department of Quantitative Methods, ICADE, Comillas Pontifical University
  • José Portela González, Department of Quantitative Methods, ICADE, IIT, Comillas Pontifical University
  • Jaime Pizarroso Gonzalo, Department of Telematics and Computing and Institute for Research in Technology, ICAI, Comillas Pontifical University
  • Tomás Luis Gómez de Quiroga, Institute of Mathematical Sciences, UAM-UCM-UC3M-CSIC
  • Daniel Sánchez Sánchez, Student of the Degree in Mathematical Engineering and Artificial Intelligence, Institute for Research in Technology, ICAI, Comillas Pontifical University
  • Alejandro Martínez de Guinea García, Student of the Degree in Mathematical Engineering and Artificial Intelligence, Institute for Research in Technology, ICAI, Comillas Pontifical University
  • Sergio Herreros Pérez, Student of the Degree in Mathematical Engineering and Artificial Intelligence, Institute for Research in Technology, ICAI, Comillas Pontifical University

References

  • [Alfaya '22] David Alfaya. Simplification of λ-ring expressions in the Grothendieck ring of Chow motives. Applicable Algebra in Engineering, Communication and Computing, 33:599–628, 2022.
  • [Alfaya, Oliveira '24] David Alfaya and André Oliveira. Lie algebroid connections, twisted Higgs bundles and motives of moduli spaces. Journal of Geometry and Physics, 201:105195–1 – 105195–55, 2024.
  • [Behrend and Dhillon '07] Kai Behrend and Ajneet Dhillon. On the motivic class of the stack of bundles. Advances in Mathematics, 212(2):617–644, 2007.
  • [Bergh '16] Daniel Bergh. Motivic classes of some classifying stacks. Journal of the London Mathematical Society, 93(1):219– 243, 2016.
  • [del Baño '01] Sebastian del Baño. On the chow motive of some moduli spaces. Journal für die reine und angewandte Mathematik, 2001(532):105–132, 2001
  • [Dhillon and Young '16] Ajneet Dhillon and Matthew B. Young. The motive of the classifying stack of the orthogonal group. Michigan Math. J., 65(1):189–197, 2016.
  • [García-Prada, Heinloth and Schmitt '14] Oscar García-Prada, Jochen Heinloth, and Alexander Schmitt. On the motives of moduli of chains and Higgs bundles. Journal of the European Mathematical Society, 16:2617–2668, 2014.
  • [Heinloth '07 ] Franziska Heinloth. A note on functional equations for zeta functions with values in Chow motives. Ann. Inst. Fourier (Grenoble), 57(6):1927–1945, 2007.
  • [Sánchez '14] Jonathan S´anchez. Motives of moduli spaces of pairs and applications. PhD thesis, Universidad Complutense de Madrid, Madrid, 2014.
  • [Sanchez, Alfaya and Pizarroso '24] Daniel Sanchez, David Alfaya and Jaime Pizarroso. Motives meet SymPy: studying λ-ring expressions in Python. arXiv:2501.00563, 2025.
  • [Mozgovoy '12] Sergey Mozgovoy. Solutions of the motivic ADHM recursion formula. Int. Math. Res. Not. IMRN, 2012(18):4218–4244, 2012.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

motives-0.3.0.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

motives-0.3.0-py3-none-any.whl (81.4 kB view details)

Uploaded Python 3

File details

Details for the file motives-0.3.0.tar.gz.

File metadata

  • Download URL: motives-0.3.0.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Windows/10

File hashes

Hashes for motives-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3c663a2cf4c74015512a4f407289fa8140806f46e83e50cfc40e1cdd8e53743b
MD5 60ae097dcd9570328a73da6be34178d2
BLAKE2b-256 e433ab3b3374f52c7bea5e5f4e9a5a1d6d5a99097bfbbca29ffef6454d563340

See more details on using hashes here.

File details

Details for the file motives-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: motives-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 81.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Windows/10

File hashes

Hashes for motives-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a734489dfff8d66edc538c077289512fe83395efbc1dc46a9e51ab38034bdc05
MD5 233d7281a0e1e592c857897fc9020c9b
BLAKE2b-256 1512b6c1bd912de790fdfb2a199d640389140d594661e774efa029659f0611bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page