CAILculator MCP Server - High-dimensional data analysis with dual algebra frameworks
SaferSkills independently audited cailculator-mcp (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
High-dimensional mathematical structure analysis for autonomous AI systems
Applied Pathological Mathematics™ was born from this hypothesis:
Higher-dimensional algebras following the Cayley-Dickson sequence—often dismissed as "pathological"—can be interpreted and exploited for computational advantage, specifically for AGI research and the development of structure-preserving embeddings.
CAILculator puts that hypothesis to work — a Model Context Protocol (MCP) server that empowers AI agents to analyze and compute within high-dimensional algebraic spaces (16D sedenions to 256D), providing a ground-truth mathematical engine for representation learning, sequence detection, and regime analysis, anchored by the Lean 4 formally verified Chavez Transform and the Zero Divisor Transmission Protocol (ZDTP).
The core mathematical foundation of CAILculator is formally verified in Lean 4. Every calculation meets a $10^{-15}$ machine precision standard, ensuring rigorous proof backs every structural claim rather than numerical approximation.
map_e8_orbit) is correspondingly experimental.Just as Joseph Fourier revolutionized mathematical physics by extending transform analysis through complex exponential basis functions — introducing $e^{ix}$ as a transform kernel — the Chavez Transform takes the next structural leap. To our knowledge, it is the first integral transform to use zero divisor elements within its kernel.
Rather than treating zero divisors as algebraic anomalies to be avoided, the Chavez Transform harnesses them as structural filters. When raw numerical data passes through the transform, noise collapses symmetrically near zero while underlying high-dimensional structural invariants scale cleanly. This is not a numerical trick — it is a formally verified mathematical property.
ZDTP is the structural transmission layer of CAILculator. It lifts a 16D sedenion state into 256D space, then measures how consistently the data's structure propagates across six algebraic transmission pathways. The six gateways have three independent K_Z kernel components — S3A and S3B share a Fano intersection origin, as do S4 and S5 — but all six are run independently in transmission, and the convergence score reflects the full spread of their output magnitudes.
Each of the six Canonical Gateway Pairs is a verified bilateral zero divisor in the Cayley-Dickson algebra: two sedenion elements $P$ and $Q$ satisfying both $PQ = 0$ and $QP = 0$. S2 additionally holds bilateral status across both Cayley-Dickson and Clifford frameworks at 16D–256D — the only gateway to do so. Before any transmission begins, the oracle reconfirms this property numerically at $10^{-15}$ precision.
The transmission step is the four-factor interaction sum:
$$\text{interaction} = Px + xQ + Qx + xP$$
where $x$ is the 16D input. Because sedenions are non-associative, all four orderings are algebraically distinct — together they span the full interaction space of the gateway and the input. The result is appended to, not substituted for, the original input. The 16D input occupies the first 16 components of the output state unchanged.
This append-and-expand pattern repeats recursively: 16D → 32D → 64D → 128D → 256D. At each stage the original 16D gateway pair is zero-padded into the current dimension and the interaction is appended. The original 16D state is always recoverable as the first 16 components of any higher-dimensional output.
A single transmission through one gateway produces a 256D state. The full cascade runs the same 16D input through all six gateways and compares the resulting 256D magnitudes. The convergence score is:
$$\text{score} = 1 - \frac{\text{std}}{\text{mean}} \quad \text{over the six gateway output magnitudes}$$
| Score | Stability | Interpretation |
|---|---|---|
| > 0.8 | HIGH | Structure propagates uniformly across all six pathways |
| 0.5–0.8 | MODERATE | Detectable structural variation across gateways |
| < 0.5 | LOW | Structural asymmetry or regime shift in the input data |
When all six gateways produce similar output magnitudes, the data carries stable high-dimensional structure — it propagates the same way regardless of which algebraic channel carries it. When magnitudes diverge, the data aligns with some gateways and not others, indicating a structural feature that is directionally asymmetric in the sedenion space.
The six gateway coordinates are formally proved bilateral zero divisors in Lean 4 (BilateralCollapse.lean). That proof was computed once, offline. The verified coordinates are hardcoded as constants in the engine with the Lean file as their attribution source. At runtime, the oracle independently reconfirms the bilateral property numerically before each transmission — not as a Lean call, but as a $10^{-15}$-precision arithmetic gate.
The scalar_channel theorem additionally proves that any linear combination of a gateway pair always produces a scalar result under multiplication — structure collapses cleanly, never generating spurious imaginary components.
The Lean proof is the mathematical guarantee that these six pairs are valid gateways; the runtime oracle is the numerical lock that enforces it.
Beyond the 8D Octonions, algebras following the Cayley-Dickson construction lose traditional properties like associativity and division algebra structure. These "pathologies" are actually rich features for AI research:
CAILculator makes this "algebraic dark matter" huntable through hypothesis-driven computational enumeration.
Extended theoretical frameworks and protocol specifications for researchers:
numba support) and all 32-bit versions.CAILculator requires a valid API key for tool execution.
pip install cailculator-mcpThis will download several hundred MB of scientific computing dependencies (`numpy`, `scipy`, `numba`).
#### Claude Desktop Add the following to your configuration file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"cailculator": {
"command": "cailculator-mcp",
"args": ["--transport", "stdio"],
"env": {
"CAILCULATOR_API_KEY": "your_api_key_here"
}
}
}
}#### Any HTTP-mode MCP Client (including Gemini CLI) To leverage larger context windows, run the server locally over HTTP:
pip install "cailculator-mcp[http]" cailculator-mcp --transport http --port 8080 {
"mcpServers": {
"cailculator": {
"manifestUrl": "http://localhost:8080/mcp/manifest"
}
}
}The Profile Manager projects universal algebraic patterns into domain-specific intelligence:
CAILculator computes natively across two fundamentally different algebraic frameworks — non-associative Cayley-Dickson and associative Clifford (Geometric) — at dimensions from 16D to 256D. This is a rare capability: most mathematical software commits to one framework. CAILculator runs the same structural computation in both and surfaces where they disagree — which is how S2 stands out as the only Canonical Six gateway bilateral in both frameworks, a distinction invisible from inside either one alone. With verify_bilateral_oracle's framework argument you can reproduce this directly.
framework argument. Running both and comparing is the point: S2 is the only Canonical Six gateway bilateral in both, while the others (e.g. S1) collapse in Cayley-Dickson but stay one-sided in Clifford ($\|QP\| = 2\sqrt{2}$). The divergence is the structural signal. Returns the residual $\|PQ\|$ and $\|QP\|$ norms.Additional financial tools (regime_detection,load_market_data,batch_analyze_market) are implemented as standalone modules and will be wired into a future release.
numpy and scipy.To support rigorous cross-disciplinary collaboration, we maintain a definitive [Project Glossary](./GLOSSARY.md) establishing terminology for high-dimensional algebraic structures (sedenions, pathions, and higher-dimensional algebras) and their domain projections in journalism and quantitative finance.
Research & Engineering: [email protected] GitHub: ChavezAILabs/cailculator-mcp
Chavez AI Labs "Better math, less suffering"
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.