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.
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), exposing the Chavez Transform and the Zero Divisor Transmission Protocol (ZDTP) as experimental measurements, with Lean 4 proofs of the gateway zero-divisor identities and of the Chavez Transform's stability bound.
Parts of CAILculator's mathematical foundation are proved in Lean 4. The proofs cover the statements listed below, not the tools' numerical outputs, which are computed in floating point. Two files check finite computations with native_decide, which trusts compiled code instead of the Lean kernel; lean/README.md explains what that means and lists each file's axiom footprint.
native_decide. The identities for all six gateways are proved in RHForcingArgument.lean, by native_decide. At runtime, transmissions are gated by a numerical check, not by a Lean call.native_decide, and gives evidence (not a proof) that the vectors lie in a single Weyl orbit. This is the most preliminary of CAILculator's formal components and an active area of work; the associated tooling (map_e8_orbit) is correspondingly experimental.The Chavez Transform is an integral transform whose kernel is built from sedenion zero divisor pairs: elements whose product is zero although neither factor is. To our knowledge, no earlier integral transform uses zero divisors in its kernel. That novelty of construction is the claim; no property comparable to those of the classical transforms has been shown.
What the shipped tools compute (2.2.0). The 1D transform behind the chavez_transform tool and analyze_dataset has an exact closed form. The series is embedded on a single basis element, so the kernel is the same for every gateway pair of the shipped shape, zero divisor or not, and the output is a fixed, center-weighted sum of the series: T = Σᵢ dataᵢ·wᵢ, with weights that depend only on the series length, α and d. The formally verified property is the stability bound |C[f]| ≤ M·‖f‖₁. No noise-filtering or structure-detecting property has been verified or validated, and the 1D value carries no zero-divisor information. Both values are reported as experimental measurements. The n-dimensional transform, where zero divisors can annihilate part of the kernel, is not exposed by any tool and has not been tested. Details: docs/chavez_transform.md.
ZDTP lifts a 16D sedenion state into 256D space through each of the six Canonical gateways and compares the resulting magnitudes. 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.
Closed form (2.2.0). The outputs reduce exactly to magnitude_256d(k) = √(‖x‖² + 64x₀² + 16sₖ²), where sₖ is a signed sum of four input components, and the convergence score is a function of those six numbers. The zero-divisor property of the gateways does not enter the result: pairs of the same shape that are not zero divisors give the same values. ZDTP outputs are reported as experimental measurements, not structural findings. Derivation and checks: docs/ZDTP_CLOSED_FORM.md.
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. Computed (not formally proved): S2 is also bilateral in the Clifford framework at 16D–256D, the only gateway that is. Before any transmission begins, the oracle reconfirms this property numerically at 10⁻¹⁵ precision.
The transmission step is the four-factor interaction sum:
interaction = Px + xQ + Qx + xPwhere x is the 16D input. Because Cayley-Dickson algebras are quadratic (uv + vu = −2⟨u, v⟩ for pure imaginary u, v), this sum simplifies to 2x₀(P+Q) − 2⟨P+Q, x⟩e₀: only the input's real part and one signed four-term sum survive. 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 upper-half interaction term is identically zero). 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:
score = 1 − std / mean (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 |
Since 2.2.0 the tools no longer report these levels as verdicts.stability_levelandregime.classificationare"not_assessed". On 200 seeded null series the score fell in 0.54–0.65, the same range as every structured series tested (including a 50% step break), so the bands above did not separate structure from noise. The score itself is still reported. Seedocs/EVALUATION_CONTRACT.md.
By the closed form, the six magnitudes differ only through the six signed four-term sums sₖ. Similar magnitudes mean those sums are similar in size; different magnitudes mean they are not. That is a statement about four-component sums of the input, not about structure in the data.
The six gateway pairs are proved bilateral zero divisors in Lean 4: S1 in BilateralCollapse.lean (kernel-checked), and all six in RHForcingArgument.lean (by native_decide). Those proofs were run 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⁻¹⁵-precision arithmetic gate.
For S1, bilateral_collapse additionally proves the exact formula (aP + bQ)(bP + cQ) = −2b(a+c), a real scalar, for products of two elements of the pair's span with matched cross-coefficient b; scalar_channel is its existence form. It does not cover arbitrary pairs of linear combinations.
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. The working hypothesis of Applied Pathological Mathematics is that these "pathologies" could be useful features for AI research:
These are hypotheses, not results. So far, the tested cases have not supported them: the shipped Chavez and ZDTP values reduce to closed forms that do not use the zero-divisor property (above), and our own pre-registered tests on real campaign-finance data (internal, 2026) found no information in zero-divisor quantities beyond plain statistics. CAILculator is a tool for testing such hypotheses, with controls.
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. The surest way to open the right file is Settings → Developer → Edit Config in Claude Desktop. Typical locations:
%APPDATA%\Claude\claude_desktop_config.json (the Microsoft Store version keeps it under %LOCALAPPDATA%\Packages\Claude_…\LocalCache\Roaming\Claude\)~/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:
measured_only).not_assessed).The RHI (Riemann Hypothesis Investigation) profile was removed in 2.2.0. The RH research described in the docs continues, using the general tools.
CAILculator computes natively across two fundamentally different algebraic frameworks — non-associative Cayley-Dickson and associative Clifford (Geometric) — at dimensions from 16D to 256D. Most mathematical software commits to one framework. CAILculator runs the same computation in both and shows where they disagree. For example, computed (not formally proved): S2 is the only Canonical Six gateway that is bilateral in both frameworks. With verify_bilateral_oracle's framework argument you can reproduce this directly.
framework argument. Running both shows where the frameworks differ: computed, S2 is the only Canonical Six gateway bilateral in both, while the others (e.g. S1) are bilateral in Cayley-Dickson but one-sided in Clifford (‖QP‖ = 2√2). Returns the residual ‖PQ‖ and ‖QP‖ norms.not_assessed) until a detector passes a validation gate. Accepts a close-price list or OHLCV dict. Minimum 16 data points.Additional financial tools (regime_detection,load_market_data,batch_analyze_market) are implemented as standalone modules and will be wired into a future release.
verify_bilateral_oracle, compute_high_dimensional's is_zero_divisor and the transmission gate all require ‖PQ‖ and ‖QP‖ below 10⁻¹⁵. This is a classification threshold, not a precision guarantee (see docs/EVALUATION_CONTRACT.md).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.