| Crates.io | cova-algebra |
| lib.rs | cova-algebra |
| version | 0.1.2 |
| created_at | 2025-05-23 20:35:12.67656+00 |
| updated_at | 2025-05-24 13:47:42.397153+00 |
| description | Cova's algebraic library |
| homepage | |
| repository | https://github.com/harnesslabs/cova |
| max_upload_size | |
| id | 1686686 |
| size | 226,095 |
A comprehensive Rust library for abstract algebra, providing rigorous implementations of algebraic structures from basic arithmetic to advanced category theory and tensor calculus.
Cova Algebra implements the fundamental structures of abstract algebra with a focus on mathematical correctness, type safety, and composability. The crate provides a hierarchical organization of algebraic concepts, from basic arithmetic operations to advanced constructions in algebra and category theory.
The library is structured around core mathematical concepts, with each module building upon more fundamental structures:
arithmeticFoundation layer providing basic arithmetic operations and modular arithmetic. Includes the modular! macro for creating custom modular number types and fundamental arithmetic traits that serve as building blocks for higher-level structures.
groupsGroup theory implementations covering both commutative (Abelian) and non-commutative groups. Provides the fundamental structure for understanding symmetry and transformation in algebra, with proper distinctions between additive and multiplicative group operations.
ringsRing theory abstractions including rings, fields, and semirings. Establishes the algebraic foundation for structures that support both addition and multiplication, with fields providing division operations for advanced algebraic computations.
modulesModule theory over rings, including vector spaces, semimodules, and specialized constructions like tropical modules. Provides the framework for linear algebra and generalizes vector spaces to work over arbitrary rings.
algebrasHigher-order algebraic structures that combine vector spaces with multiplication operations. Includes Boolean algebra for logical operations and Clifford algebras for geometric applications in physics and computer graphics.
tensorsMulti-dimensional tensor implementations with both compile-time fixed dimensions and runtime dynamic sizing. Supports tensor operations fundamental to linear algebra, differential geometry, and machine learning applications.
categoryCategory theory primitives providing abstract mathematical frameworks for composition and morphisms. Enables advanced mathematical constructions and provides a unifying language for describing mathematical structures and their relationships.
Add to your Cargo.toml:
[dependencies]
cova-algebra = "*"
The crate provides a comprehensive prelude for convenient importing:
use cova_algebra::prelude::*;
The algebraic structures follow a natural mathematical hierarchy:
Arithmetic Operations
├── Groups (symmetry and transformation)
├── Rings & Fields (number systems)
└── Modules & Vector Spaces (linear structures)
├── Algebras (vector spaces with multiplication)
├── Tensors (multi-dimensional arrays)
Complete API documentation is available on docs.rs.
Contributions are welcome! Please ensure mathematical correctness and include appropriate documentation for any new algebraic structures.
This project is licensed under the AGPLv3 License - see the LICENSE file for details.