lcl833-master
lcl833-master computes exact Jones polynomials from braid words using the Kauffman bracket state sum, evaluates them at the fifth root of unity $q = \exp(2\pi i/5)$, and derives calibrated LCL-833 / SATI-CODEX protection metrics ($\delta_{eff}, \alpha_{op}, G_{gap}, \epsilon_{eff}, \omega, T_{min}$) directly in your terminal or Python environment.
Features
- Exact Jones Polynomials: Uses
fractions.Fractionfor rational exponents to maintain exactness during intermediate steps. - Parallel Execution: Multiprocessing support for complex braids (>= 12 crossings) to significantly reduce computation time.
- LaTeX Export: Generate publication-ready TeX strings for any computed polynomial.
- Expanded Presets: Full support for standard knots from the Rolfsen table (3_1 through 7_1).
- LCL-833 Metrics: Calibrated against the trefoil knot anchor ($|J(3_1; q_5)| \approx 1.543$).
- CLI & API: Use it as a standalone tool or a Python library.
Installation
pip install lcl833-master
CLI Usage
Basic Commands
# Run a preset knot (3_1, 4_1, figure8, etc.)
lcl833 knot 3_1
# Run a custom braid word (Artin generators σ_i)
lcl833 braid 1 1 1
lcl833 braid 1 -2 1 -2
# Emit JSON output (includes LaTeX strings)
lcl833 knot 3_1 --json
Advanced Options
--table: Show a comparison table of all preset knots.--genus: Logical genus (default: 5).--gamma: Khovanov correction factor (default: 0.05).--max-crossings: Maximum allowed crossings (default: 18).--no-lcl: Skip calibrated metrics and only show Jones results.
lcl833 table
Python API Usage
from lcl833_master import compute_jones_result, compute_lcl833_metrics
# Compute Jones polynomial for the trefoil (σ₁³)
res = compute_jones_result((1, 1, 1))
print(f"Jones Polynomial: {res.normalized_jones_pretty}")
print(f"LaTeX: {res.normalized_jones_latex}")
print(f"Magnitude at q5: {res.magnitude_at_q5:.4f}")
# Compute LCL-833 metrics
metrics = compute_lcl833_metrics(v_j=res.magnitude_at_q5, genus=5)
print(f"Alpha_op: {metrics.alpha_op:.4f}")
print(f"T_min: {metrics.t_min}")
Performance Note
Kauffman bracket computation is $O(2^n)$. For braids with $n \ge 12$, the library automatically utilizes all available CPU cores via multiprocessing. Use --max-crossings to prevent accidental long-running processes on extremely large diagrams.
License
MIT License. See LICENSE for details.
Metadata
Release files for lcl833-master 0.3.0
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 |
|---|---|---|---|---|
| lcl833_master-0.3.0.tar.gz | 16.7 kB | Without provenance | Details for lcl833_master-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lcl833_master-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for lcl833_master-0.3.0-py3-none-any.whl |
Total release size: 30.3 kB
Release files / lcl833_master-0.3.0.tar.gz
| Download URL | lcl833_master-0.3.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c695db4779005148f84e1465351ed8f5c5b74b9d29c8d58274d8fac05af10a8
|
|
BLAKE2b-256 checksum How to use checksums |
b5b03f275fd51a2d79a0b4f20ea97e926e7f1d8406714675366c593fb501da06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / lcl833_master-0.3.0-py3-none-any.whl
| Download URL | lcl833_master-0.3.0-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c14afe85d5344a36df4121b703b2d78a67df8339d66258bb9983b24272c35d98
|
|
BLAKE2b-256 checksum How to use checksums |
2d9b8c2de769436accd59e9d1fa439578d16c5a0cfa25166b1dc3e193271ab05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for lcl833-master 0.3.0
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.