Crates.io | cova |
lib.rs | cova |
version | 0.1.3 |
created_at | 2025-05-23 20:46:19.58709+00 |
updated_at | 2025-05-25 16:35:24.775124+00 |
description | First principles, minimally dependent, geometric and topologically focused math library |
homepage | |
repository | https://github.com/harnesslabs/cova |
max_upload_size | |
id | 1686700 |
size | 16,987 |
A unified Rust ecosystem for rigorous mathematical computation, bridging abstract algebra and computational topology to provide a comprehensive foundation for mathematical software development.
Cova represents a principled approach to mathematical software, where abstract algebraic structures provide the computational foundation for sophisticated topological and geometric algorithms. By unifying algebra and topology in a single ecosystem, Cova enables mathematical computations that span traditional disciplinary boundaries.
The Cova ecosystem consists of two complementary mathematical domains:
cova-algebra
)Provides the algebraic foundation with rigorous implementations of:
cova-space
)Builds sophisticated topological structures and algorithms:
The power of Cova emerges from the interaction between its algebraic and topological components:
Topological computations (homology, cohomology) use algebraic structures as coefficient systems, allowing homology over arbitrary rings and fields defined in cova-algebra
.
Clifford algebras from cova-algebra
provide natural frameworks for geometric computations in the topological spaces of cova-space
.
Category theory concepts span both domains, providing unified abstractions for mathematical constructions and morphisms.
Algebraic optimizations (efficient field arithmetic, tensor operations) directly enhance topological algorithms that depend on large-scale linear algebra.
Import the entire ecosystem:
use cova::prelude::*;
Access individual mathematical domains:
use cova::algebra::prelude::*; // Abstract algebra
use cova::space::prelude::*; // Computational topology
Leverage both domains together:
use cova::prelude::*;
// Compute homology over a custom finite field
let field_element = Mod7::new(3);
let homology = complex.homology::<Mod7>(dimension);
// Use Clifford algebra for geometric transformations
let rotor = CliffordElement::from_bivector(bivector);
let transformed_space = apply_rotor(space, rotor);
Cova covers essential mathematical areas with seamless integration:
Cova Ecosystem
├── Abstract Algebra
│ ├── Arithmetic (modular, primitive types)
│ ├── Group Theory (abelian, non-abelian)
│ ├── Ring Theory (rings, fields, semirings)
│ ├── Module Theory (vector spaces, linear algebra)
│ ├── Advanced Algebra (Clifford, Boolean)
│ ├── Tensor Calculus (fixed, dynamic tensors)
│ └── Category Theory (morphisms, composition)
└── Computational Topology
├── Set Theory (collections, posets)
├── Topological Spaces (metric, normed)
├── Cell Complexes (simplicial, cubical)
├── Homological Algebra (chains, homology)
├── Sheaf Theory (categorical constructions)
└── Topological Data Analysis (filtrations)
All implementations follow strict mathematical definitions with proper algebraic and topological properties preserved through the type system.
Structures are designed for seamless composition, allowing complex mathematical constructions from fundamental building blocks across both algebraic and topological domains.
High-level mathematical abstractions are implemented with careful attention to computational efficiency, enabling both correctness and performance.
Rust's type system encodes mathematical constraints, preventing invalid operations while maintaining zero-cost abstractions.
parallel
: Enables parallel computation acros topological algorithms (filtration construction)All types and traits are designed for interoperability, allowing algebraic structures to serve as coefficient systems for topological computations and vice versa.
Cova provides a foundation for:
Complete documentation covering both mathematical foundations and practical usage:
This project is licensed under the AGPLv3 License, ensuring mathematical software remains open and accessible to the research community.