This library provides a symbolic computation framework for representing and manipulating mathematical expressions, performing calculus, solving equations, and optimizing tensor-style expression graphs through rewrite rules and an EGraph-based solver.
Pure C#, no native binaries. The repo includes the core engine, rule packs, CLI tools, and the Blazor UI that powers SymAI.net.
Sym is online at SymAI.net
License: MIT
Sym has grown beyond the earlier Raven-only framing. The same core engine now powers:
- The Blazor UI at
/sym/ - CLI and scripting workflows through
SymCLI - AI-tooling and Skills-style workflows through
SymCLIand theSkills/folder - Rule-pack driven algebraic, calculus, equation-solving, tensor, and graph optimization scenarios
- Additional wrappers and companion apps in this repository
The SymCobra and SymCobra.CudaNative projects are included as ongoing work toward COBRA GPU acceleration, but that GPU path is currently incomplete and not functional. The stable, supported path today is the CPU-based Sym engine and its existing wrappers.
Open the main solution:
dotnet build src/Sym.slnRun the CLI:
dotnet run --project src/SymCLI/SymCLI.csprojExample solve flow:
dotnet run --project src/SymCLI/SymCLI.csproj -- problem.ps result.txtExample C# analysis flow:
dotnet run --project src/SymCLI/SymCLI.csproj -- analyze csharp-math src out/report.txt --jsonIf you want to expose SymCLI to an AI agent through the checked-in skill wrappers, use:
Skills/symcli-skill/symcli.bat analyze csharp-math src out/report.txt --jsonor on Unix-like systems:
./Skills/symcli-skill/symcli.sh analyze csharp-math src out/report.txt --jsonRun the Blazor UI locally:
dotnet run --project src/SymBlazor/SymBlazor.csprojsrc/Sym,src/SymCore,src/SymSolvers,src/SymRules: core symbolic engine, solver, and rule librariessrc/SymBlazor: the Blazor WebAssembly UI published to SymAI.netsrc/SymCLI: command-line entry pointSkills/symcli-skill: repo-relative wrapper scripts andSKILL.mdinstructions for usingSymCLIas an AI tool / skillsrc/WordsToSym,src/SymTools,src/HAMM,src/AGIMynd: related tools and companion apps built around the wider Sym ecosystemsmithery.yaml,mcp.json: configuration files for MCP tool registries and marketplaces
The Blazor deployment notes live in src/SymBlazor/DEPLOYMENT.md.
For the production site, the published app is staged under /sym/, with SymHelp.txt and SymUIHelp.html copied to the site root.
For production AI agents and high-availability workloads, we offer a managed Model Context Protocol (MCP) endpoint hosted on Azure. This service acts as a "System 2" thinking brain for AI agents, providing:
- Zero-Hallucination Math: Unlike LLMs, Sym uses formal rules to solve equations, ensuring every result is mathematically sound and verifiable.
- Low-Latency Solve Tiers: Optimized for real-time agent responses.
- Agentverse Integration: Native support for Fetch.ai agents with built-in FET payment handling.
- Advanced Tensor Optimization: Specialized high-performance rule-packs for GPU expression fusion, factoring, and scale folding.
You can access the hosted solver through the following Agentverse address:
agent1qdd7zue9uh2pj5djudx4udc8m9e55ajtxxlczpps2azvjmj3xmtewgwhfmc
Please see the Hosted MCP Service Guide for full details on message formats, pricing tiers (Lightning, Standard, Deep), and how to submit FET payment hashes. Or visit SymAI.net/mcp.
Copyright SymAI.net 2026. Authored by Warren Harding. AI assisted.