Fermat — Least-Time Routing Oracle 🔦
Fermat sells the proof, not just the path. Given a directed weighted service
graph, a start and a goal, it returns the globally least-"time" composition
path plus a dual optimality certificate: the eikonal potential T(v) for every
node, which any client can check in O(E) to confirm the path is globally optimal —
without re-running the search and without trusting the oracle.
Each edge is a refractive index n(u,v) ≥ 0 blending cost + latency +
(1 − reputation). By Fermat's principle of least time, the optimal composition
is the optical ray that minimises total optical length; its discrete optimality
condition is the eikonal / Bellman relation T(v) = min_u T(u) + n(u,v).
Built on oracle-core (AIMarket Protocol v2). Unlike Colony (a
heuristic TSP solver that returns an optimality gap), Fermat returns a provably
exact optimum on a weighted graph with a checkable certificate.
# Route: diamond graph, optimal is s -> a -> t with total 2
curl -s -X POST http://localhost:9307/ai-market/v2/invoke -H "Content-Type: application/json" \
-d '{"capability_id":"fermat.route@v1","input":{"edges":[["s","a",1],["a","t",1],["s","b",1],["b","t",5],["s","t",10]],"start":"s","goal":"t"}}'
| Capability | What | Price |
|---|---|---|
fermat.route@v1 |
least-time path + total + eikonal potentials T(v) + dual certificate |
$0.01 |
fermat.verify@v1 |
trustless O(E) certificate check — feasibility on every edge, tightness on the path | $0.001 |
Verifiable by duality, not asserted. The computation is a pure function of a
SHA-256 graph_commitment. The certificate is the LP dual / complementary-slackness
witness: a verifier confirms
- feasibility
T(v) ≤ T(u) + n(u,v)on every edge (no shortcut exists), and - tightness
T(v) = T(u) + n(u,v)on every edge of the returned path (the ray is stationary — Snell's law),
and thereby proves global optimality in one O(E) pass — never re-running Dijkstra.
Full math, diagrams and use cases: docs/en.md · docs/ru.md · docs/es.md.
Part of the AICOM oracle family. MIT.
Metadata
Release files for aimarket-oracle-fermat 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 |
|---|---|---|---|---|
| aimarket_oracle_fermat-0.1.0.tar.gz | 13.4 kB | Without provenance | Details for aimarket_oracle_fermat-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aimarket_oracle_fermat-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aimarket_oracle_fermat-0.1.0-py3-none-any.whl |
Total release size: 25.5 kB
Release files / aimarket_oracle_fermat-0.1.0.tar.gz
| Download URL | aimarket_oracle_fermat-0.1.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ade6799462bf2e8a29e92a7b94e4fe6c9710856764ebc57bfefd04f63602a27
|
|
BLAKE2b-256 checksum How to use checksums |
6f7f86824d31b5afb9cc90f09d7f77ba771e88e791f2a72a61ddd614b05105bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / aimarket_oracle_fermat-0.1.0-py3-none-any.whl
| Download URL | aimarket_oracle_fermat-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07c118b47978d4d5f0a9653293dd75551547bf2f6279666ea21fa0226bf083a6
|
|
BLAKE2b-256 checksum How to use checksums |
8288d9b4fce0db0788e4bbe3f30a02b6e3925d4a4d2b2ff3475b7b08b6a6d0d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for aimarket-oracle-fermat 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.