symset
Symbolic Sets for Python, written in Rust
Roadmap
Special sets
-
Empty- The empty set or void set, $\displaystyle\varnothing = { }$ (wiki) -
Universe- Universe set $\displaystyle\mathbf{U}$ containing everything, including itself (wiki)
Complement operations
-
Complement[A]- Absolute complement $\displaystyle A^\complement=\mathbf{U}\setminus A$ (wiki) -
Difference[A, B]- Relative complement or set-theoretic difference $\displaystyle A \setminus B$ (wiki)
External operations
-
Subsets[A]- Power set $\displaystyle\mathcal{P}(A)$; the set of all subsets of $\displaystyle A$, with $\displaystyle \left|P(A)\right|$ (wiki) -
Product[A, B]- Cartesian product $\displaystyle A \times B$ with $\displaystyle n_A \cdot n_B$ elements (wiki) -
Sum[A, B]- Disjoint- or tagged union (the sum type in type theory) $\displaystyle A \sqcup B$ with $\displaystyle n_A + n_B$ elements
Development
Install the maturin import hook in the uv project:
uv run -m maturin_import_hook site install --detect-uv
Linting, formatting, typechecking, and testing:
uv run ruff check
uv run ruff format
uv run basedpyright
uv run pytest
More info
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
symset-0.0.0.tar.gz
(19.5 kB
view details)
File details
Details for the file symset-0.0.0.tar.gz.
File metadata
- Download URL: symset-0.0.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d0a43f8c5346261e6e92b78603a4f2539e86d774bdfd40f92a7e90f0bfe31a
|
|
| MD5 |
713bc5017dcd5363da119e903f46311f
|
|
| BLAKE2b-256 |
b83804d4b77fa60e1e4aaf407d9ef67e82881edb32376aa1bb1c87ab63553771
|