CAILculator MCP Server - High-dimensional data analysis with dual algebra frameworks
Project description
Applied Pathological Mathematics™ was born from this hypothesis:
Higher-dimensional algebras following the Cayley-Dickson sequence, which have been wrongly dismissed as "pathological" mathematics, can be interpreted and exploited for computational advantage, with particular benefits for AGI research and development.
CAILculator MCP Server
High-dimensional mathematical structure analysis for AI agents
🏆 Milestone: Formally Verified (v2.0.3 - April 2026)
The core mathematical foundation of CAILculator is formally verified in Lean 4. Unlike libraries that rely solely on numerical approximation, CAILculator's structural claims—including zero divisor patterns and transform stability—are backed by machine-verified proofs located in the lean/ directory. Every calculation meets a $10^{-15}$ machine precision standard.
- BilateralCollapse.lean: Formally proves the bilateral zero divisor identity ($PQ=0 \land QP=0$) used to gate all v2.0 transmissions.
- ChavezTransform_genuine.lean: Proved stability constant $M$, ensuring transform outputs never exceed rigorous theoretical bounds.
- Dual Frameworks: v2.0 natively supports both non-associative Cayley-Dickson and associative Clifford (Geometric) algebras.
- Aristotle Integration: Harmonic Math's Aristotle engine was used to ensure "zero sorry" stubs in all core proofs.
Overview
A Model Context Protocol server that enables AI agents to compute with Cayley-Dickson algebras (sedenions 16D, pathions 32D, up to 256D) and associated Clifford algebras.
Built on verified mathematical research into zero divisor patterns and structural properties discovered through systematic computational enumeration. CAILculator integrates formal methods directly into analytical AI pipelines, providing a validation framework grounded in algebraic certainty.
Structural Capabilities
Beyond quaternions (4D) and octonions (8D), the Cayley-Dickson construction produces algebras with properties that violate conventional mathematical expectations:
- Non-associativity: (a × b) × c ≠ a × (b × c)
- Zero divisors: Non-zero numbers P, Q where P × Q = 0
- Loss of division algebra structure: Not every non-zero element has a multiplicative inverse
- Dimensional complexity scaling: Pattern counts grow superlinearly
Zero divisors exhibit specific patterns and symmetries. Non-associativity encodes order-dependence and context-sensitivity. This server enables the search for structure within these higher-dimensional spaces for:
- High-dimensional representation learning
- Pattern detection in complex systems
- Algebraic approaches to neural architecture
- Structure-preserving embeddings
- Time series regime detection
Specialized Profiles
v2.0 introduces the Profile Manager, which projects universal algebraic patterns into domain-specific insights:
- Journalism Profile: Optimized for data reporting and investigation.
- Tipping Points: Detects sudden structural collapses in budgets, consensus, or policy (Bilateral Zeros).
- Sourcing Confidence: Measures signal robustness against noisy data (Transform Convergence).
- Quant Equity Profile: Designed for financial analysis and market regime detection.
- Regime Detection: Bridges HMM statistical baselines with algebraic structural analysis.
- Volatility Anchors: Identifies bifurcation risks using verified zero-divisor loci.
- RHI (Riemann Hypothesis Investigation): Spectral research mapping and prime embedding analysis ($log p \to ROOT_{16D}$).
Mathematical Foundation
Cayley-Dickson Construction
The Cayley-Dickson construction recursively doubles dimension:
- R (reals, 1D) → C (complex, 2D) → H (quaternions, 4D) → O (octonions, 8D)
- S (sedenions, 16D) → P (pathions, 32D) → 64D → 128D → 256D...
Zero Divisors
A zero divisor is a pair of non-zero elements P, Q in an algebra where P × Q = 0. We focus on two-term zero divisors of the form:
(e_a ± e_b) × (e_c ± e_d) = 0
where e_i are basis elements and a, b, c, d are distinct indices.
Verified Pattern Counts:
- 16D (Sedenions): 84 base patterns, 168 ordered patterns
- 32D (Pathions): 460 base patterns, 920 ordered patterns
Research Foundation
Built on systematic computational enumeration published at DOI: 10.5281/zenodo.17402495. Lean 4 verification covers E8 first shell membership, Weyl orbit unification of the Canonical Six, and Chavez Transform operator convergence and stability ($|C[f]| \leq M \cdot |f|_1$).
System Requirements
- Python: 3.10 to 3.13 (64-bit)
- Architecture: 64-bit required for high-precision
scipyandnumpyoperations. - OS: Windows 10/11, macOS 10.15+, Linux (Ubuntu 20.04+)
Installation
Windows
pip install cailculator_mcp
Configuration (Claude Desktop)
Open %APPDATA%\Claude\claude_desktop_config.json and add:
{
"mcpServers": {
"cailculator": {
"command": "cailculator-mcp",
"args": ["--transport", "stdio"],
"env": {
"CAILCULATOR_API_KEY": "your_api_key_here"
}
}
}
}
Available Tools (v2.0)
🔬 High-Precision Operations
chavez_transform: Apply the formally verified transform to find hidden structure in data.detect_patterns: Algebraic detection of Tipping Points and Pattern Consistency.verify_bilateral_oracle: High-precision check ($10^{-15}$) for any zero divisor pair. Supports both Cayley-Dickson and Clifford frameworks.map_e8_orbit: Project 16D/32D vectors onto verified E8 Weyl orbits.
📰 Domain Intelligence
list_domain_profiles: Explore Journalism, Quant, and RHI tiers.zdtp_transmit: Zero Divisor Transmission Protocol (ZDTP) - transmit data through verified mathematical gateways (S1–S6) to 32D and 64D spaces.illustrate: Generate high-precision visualizations of algebraic structures.
📈 Financial Analysis
regime_detection: Dual-method market analysis combining HMM and Chavez Transform.batch_analyze_market: Smart sampling strategy for large-scale datasets.
Contact & Collaboration
Interested in custom profile development or research access? Contact Chavez AI Labs at paul@chavezailabs.com.
Chavez AI Labs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cailculator_mcp-2.0.4.tar.gz.
File metadata
- Download URL: cailculator_mcp-2.0.4.tar.gz
- Upload date:
- Size: 157.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c45f4fe18f9ade4aa0ad9be51dec9d031f01c27fb7a136ac5aae37a87ae4827a
|
|
| MD5 |
6a50701456f8bf02640c418eb2c77ab6
|
|
| BLAKE2b-256 |
715f5afcb7186427ec6c299a874f82e566ff2cb2b612a28becf0fd9046505003
|
File details
Details for the file cailculator_mcp-2.0.4-py3-none-any.whl.
File metadata
- Download URL: cailculator_mcp-2.0.4-py3-none-any.whl
- Upload date:
- Size: 89.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a8d696f5a704f51828cef1a379ef926f754d79450217efecb5e2d06e8a6be9d
|
|
| MD5 |
03658c7c7ff4ad9332e2763eb2de38ab
|
|
| BLAKE2b-256 |
3f746e009b6b7852bcbec617ab511b627bc948aef2ac53f7790a2ea950c37af6
|