monge-fleet
Monge's theorem for fleet mathematics.
A library implementing the geometric enhancement layer for the fleet's constraint theory mathematics. Based on the insight that Monge's theorem — three circles always have collinear external homothetic centers — is a projective invariant that describes the fundamental geometry of coupled logical systems.
The Monge Insight
Monge's theorem says: for any 3 circles, the 3 pairwise external homothetic centers are always collinear. Not sometimes. Always.
Our conservation law γ + H = C works the same way. It's not a property of any individual model. It's the geometry of coupled systems. Of course it holds. It's a projection.
If these are projections, there's a simpler structure behind them. Monge's theorem follows from affine transformation properties. Our conservation law should follow from information geometry — the structure of coupled optimizers.
Key Modules
| Module | Purpose |
|---|---|
homothetic.py |
External/internal homothetic centers, Monge collinearity checks |
radical_axis.py |
Radical axis as 1-cocycle, coboundary relations |
cohomology.py |
H¹ computation via Menelaus theorem, β₁ from homothetic centers |
consensus.py |
MongeConsensus — Zero Holonomy Consensus with area-based Lyapunov |
pythagorean48.py |
P48 Monge verification, zero-drift proof via collinearity |
geometry.py |
3D lifting, sandwich planes, Monge flat computation (Lassak gen.) |
Quick Start
from monge_fleet import MongeConsensus, P48Monge, verify_monge_p48
# Zero Holonomy Consensus with Monge monitoring
mc = MongeConsensus(3)
mc.set_agent(0, [0.0, 0.0], 1.0)
mc.set_agent(1, [4.0, 0.0], 2.0)
mc.set_agent(2, [2.0, 3.0], 1.5)
print(f"Holonomy area: {mc.max_area():.6f}")
print(f"Convergence: {mc.convergence_time():.1f}ms")
print(f"With Byzantine f=1: {mc.byzantine_convergence_time(1):.1f}ms")
# Pythagorean48 Monge verification
result = verify_monge_p48()
print(f"P48 triples verified: {result['n_triples_checked']:,}")
print(f"Zero drift: {result['zero_drift_verified']}")
Core Ideas
Homothetic Centers as Consensus Fixed Points
For agents with trust radii, the homothetic center S_ij is the fixed point of consensus between agents i and j. Monge says S_ij, S_jk, S_ki are always collinear. Deviation from collinearity = holonomy = consensus failure.
Radical Axis as 1-Cocycle
The radical axis Rad(Cᵢ, Cⱼ) = {P: Power(P,Cᵢ) = Power(P,Cⱼ)} is a cohomological object. The coboundary δφ(i,j,k) = φᵢⱼ + φⱼₖ + φₖᵢ = 0 for all triples — equivalent to Monge collinearity.
Area as Lyapunov Function
H_ijk = area(S_ij, S_jk, S_ki). The consensus converges when H_ijk → 0. Convergence rate λ = max(r_i + r_j)/(r_i + r_j + r_k).
The Monge Layer
Fleet Applications
↑
Zero Holonomy Consensus (Monge-collinear updates, 38ms)
↑
Monge Consistency Layer — radical axis cohomology, collinearity monitor
↑
H1 Cohomology (β₁) Engine — Laman rigidity, emergence detection
↑
Pythagorean48 / jc1-ct-bridge — constraint satisfaction, direction encoding
Mathematical Foundation
Monge's Theorem (Gaspard Monge, 1798): For any three circles, the three external homothetic centers are collinear.
Lassak Generalization (2021): For n+1 homothetic bodies in ℝⁿ, the homothetic centers lie in an (n-1)-dimensional affine subspace.
Menelaus Theorem: Used for O(V³) β₁ computation via ratio checks on homothetic center lines.
References
- Monge, G. (1798). Géométrie descriptive
- Wells, D. (1991). The Penguin Dictionary of Curious and Interesting Geometry
- Lassak, M. (2021). "A note on some generalizations of Monge's theorem" arXiv:2104.06343
- Laman, G. (1970). "On graphs and rigidity of plane skeletal structures"
- Fleet-internal: FLUX ISA v2.4, Zero Holonomy Whitepaper, Pythagorean48 spec
Installation
pip install -e .
Tests
pytest tests/ -v
Metadata
Release files for monge-fleet 0.1.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 |
|---|---|---|---|---|
| monge_fleet-0.1.0.tar.gz | 26.8 kB | Without provenance | Details for monge_fleet-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| monge_fleet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for monge_fleet-0.1.0-py3-none-any.whl |
Total release size: 59.0 kB
Release files / monge_fleet-0.1.0.tar.gz
| Download URL | monge_fleet-0.1.0.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9b8be60438aa776c5fdfa1e4b56f111e8008f62102afe7633047c4c1f0adff9
|
|
BLAKE2b-256 checksum How to use checksums |
5c848dc512dba9c939a673ab32d6805358c0182cd490779f7582fad39382137b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / monge_fleet-0.1.0-py3-none-any.whl
| Download URL | monge_fleet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
888363b978054565118c18f4479f8c26c9a807afdd89819a6d3c45c844ae4fb0
|
|
BLAKE2b-256 checksum How to use checksums |
2f94bb951b0786f09b0d5a7ca6697a4472bf3a9d07c660eadc30e8dfdfb75611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for monge-fleet 0.1.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.