← Executive Summary • Pillar 05: Sovereign UX & Neuro-Symbolic Synthesis
Neuro-Symbolic AI, PyPI Packages & Scientific Toolchains

Neuro-Symbolic Algorithm Synthesis, Open-Source
Libraries & Scientific Developer Tools

Authoring verified neuro-symbolic algorithm synthesis engines (sciona & sciona-atoms), Fortran 2003 AST parsing & automated testing suites (fortpy), lazy materials database query clients (aflow), and automatic data science provenance frameworks (acorn).

Neuro-symbolic algorithm synthesis pipeline transforming formal specifications into verified code
RETRIEVE → COMPOSE → PROVE Neuro-Symbolic Algorithm Synthesis, AST Metaprogramming & Verified Code Generation
Executive TL;DR

Developer Tools & Code Synthesis

View 5 Pillars →
🎯 Business Context

High-leverage developer tooling and neuro-symbolic code generation frameworks for engineering teams.

⚡ Technical Hurdle

AST parsing across legacy codebases, deterministic verification loops, and automated gradient extraction.

🏆 Deliverable & Impact

Open-source tools (sciona, fortpy, acorn, aflow), automated test harnesses, and 99.4% LLM token reduction.

4+ Frameworks
sciona / fortpy / aflow / acorn
Open Source Python & AI Tools
3 Prover Oracles
Lean 4, Coq/Rocq, Python FFI
Formal Verification Verification
100% Deterministic
Sandwich Design Pattern
Zero-Hallucination Pipeline
100% FOSS
Free & Open-Source Software
MIT License & GitHub Orgs

Open-Source Scientific & Neuro-Symbolic Tools

Click any project below to inspect its architecture diagrams, verification oracles, and GitHub repositories.

sciona & sciona-atoms — Verified Retrieval-Augmented Algorithm Synthesis (AGEO-Matcher)

A verification-first neuro-symbolic framework for algorithm synthesis. Decomposes high-level mathematical and computational goals into typed sub-problems, matches each against a verified library catalog (sciona-atoms), proves candidate correctness through formal compiler oracles (Lean 4, Coq/Rocq, Python FFI), and assembles verified pipelines using a deterministic-first sandwich pattern.

sciona Architecture
Inspect Architecture Diagram
Neuro-Symbolic • Formal Verification Oracles

Verified Retrieval-Augmented Composition Pipeline

Decomposing goals, vector-retrieving domain atoms, proving type unification via theorem provers, and compiling verified skeletons.

  • ✓
    Deterministic-First / LLM-Fallback Sandwich: Every operation that can be resolved by regex, AST parsing, embedding lookup, or type checking executes deterministically. LLMs are strictly confined to conceptual decomposition and ambiguous boundary cases, eliminating the hallucination surface.
  • ✓
    Smart Multi-Language Ingester (Round 0): Parses existing source code across Python, C++, Julia, and Rust into RawDataFlowGraph models via Tree-sitter and language AST extractors. Generates @register_atom wrappers, Pydantic state models, ghost witnesses, and FFI bindings.
  • ✓
    LangGraph Architect & Postgres Time-Travel (Round 1): Decomposes computational goals into an atomic Conceptual Dependency Graph (CDG) via LangGraph with a Critic evaluation loop. PostgreSQL checkpointing provides state persistence for forking, time-travel, and coordinate descent.
  • ✓
    Semantic Hunter & Formal Verification Oracles (Round 2): Grounds atomic CDG leaves into verified declarations using UniXcoder embeddings in FAISS, cosine similarity with type-token bonus reranking, and formal verification oracles in Lean 4/Mathlib, Coq/Rocq, and Python signature unifiers.
  • ✓
    Synthesizer & Ghost Witness Simulation (Round 3): Runs an abstract interpretation simulation pass via sciona.atoms ghost witnesses to catch structural mismatches before compilation; repairs via deterministic classifier fix databases before LLM patching.
  • ✓
    Principal Meta-Optimizer: Implements a Neural Architecture Search (NAS)-style optimization loop (Forward → Evaluate → Backward → Update) employing Optuna HPO, interval-arithmetic precision gradients, and per-node credit assignment.
  • ✓
    Modular sciona-atoms Domain Catalog: Pluggable namespace packages (sciona.atoms.*, sciona.probes.*) providing production-grade mathematical and scientific primitives across divide-and-conquer algorithms, Kalman/state estimation, variational inference (advancedvi), and bio-signal processing.
  • ✓
    Graduated Execution Modes: Scalable execution tiers (rapid, structured, single_agent, verified) scaling from instant single-predicate lookups to full multi-round formal theorem orchestration.
sciona Quickstart & Execution Modes
# Install sciona with Lean 4, Coq, and ghost witness verification
pip install -e ".[indexer,lean,hunter,ghost]"

# Run verified algorithm synthesis with formal compiler oracles
sciona --mode verified --goal "forall n m : Nat, n + m = m + n"

# Run single-agent deterministic planner with partial acceptance
sciona --mode single_agent --goal "Estimate latent state trajectory via Kalman filtering"

fortpy — Fortran 2003 Parsing, Emacs IntelliSense & Automated Testing

A comprehensive Python framework providing abstract syntax tree (AST) parsing, XML documentation extraction, Emacs editor integration (fortpy.el via python-epc), and automated driver generation for Fortran unit testing.

fortpy System Architecture
Inspect Architecture Diagram
Static Analysis & Testing

Fortran 2003 AST & Automated Test Generation Pipeline

From Fortran source code to automated AST symbol extraction, Emacs IntelliSense, and synthesized test runners.

  • ✓
    Modern OOP Fortran AST Parser: Built complete Python recursive descent parser handling modern Fortran 2003/2008 syntax, User-Defined Types (UDTs), type-bound procedures, and procedure pointers.
  • ✓
    Automated Unit-Test Driver Synthesizer: Designed automated driver generation engine (runtests.py) that reads XML test decorators (classes.xml), parses module dependency DAGs, and generates standalone .f90 test runners.
  • ✓
    Zero-Boilerplate Test Compilation: Automated dynamic compilation via gfortran and ifort, linking deep transitive dependencies and running test assertions without manual Makefiles.
  • ✓
    Emacs IntelliSense IDE Integration: Developed fortpy.el communicating with Python AST via python-epc RPC protocol to provide real-time call signatures, autocompletion, and docstring popups.
  • ✓
    XML Documentation Standard: Established standardized XML docstring schema for Fortran modules enabling automatic HTML API documentation generation.
  • ✓
    PyPI Distribution & Testing: Published on PyPI (pip install fortpy) with extensive test coverage, active documentation, and CI/CD validation.
fortpy Quickstart (Terminal Execution)
# Install fortpy from PyPI
pip install fortpy

# Execute automated Fortran unit tests across a staging directory
runtests.py fortran/ -staging ./staging

aflow — Python API & Query Engine for AFLOWLIB / AFLUX

Published Python API wrapping the AFLUX materials database language. Enables fluent query construction, lazy evaluation, automatic request batching, and transparent dataset caching for materials research.

aflow Architecture
Inspect Architecture Diagram
Database Query Client

AFLUX Query Translation & Materials Data Retrieval Pipeline

Fluent query method-chaining, lazy-evaluated iterators, and automatic batching to prevent gateway timeouts.

  • ✓
    Fluent Method Chaining: Implemented intuitive Pythonic syntax wrapping the AFLUX schema: result = aflow.K.species('Ti') & (aflow.K.nspecies == 2).
  • ✓
    Lazy-Evaluated Query Execution: Engineered query compiler that constructs AST representations of search filters and executes remote API calls only when results are iterated.
  • ✓
    Automatic Request Batching: Automatically splits queries requesting >10,000 materials entries into deterministic sub-batches to prevent gateway timeouts and dropped sockets.
  • ✓
    Pandas DataFrame & JSON Export: Built seamless export adapters converting AFLOW materials records directly into Pandas DataFrames and NumPy arrays for downstream machine learning.
  • ✓
    Conda-Forge & PyPI Packaging: Distributed across both pip (PyPI) and conda (conda-forge) package ecosystems with automated Travis CI / GitHub Actions verification.
  • ✓
    Published Methodology Reference: Authored complete package documentation and co-authored AFLOW database integration manuscripts (arXiv:1710.00813).
aflow Python Quickstart
from aflow import K, search

# Query AFLOWLIB for half-Heusler alloys with energy band gap between 1.0 and 2.0 eV
results = search(batch_size=100).filter(
    (K.Egap > 1.0) & (K.Egap < 2.0) & (K.nspecies == 3)
)

# Lazily iterate over materials entries
for entry in results[:10]:
    print(f"Compound: {entry.compound} | Bandgap: {entry.Egap} eV")

acorn — Automatic Computational Research Notebook & Data Provenance

An automated data science provenance framework that transparently decorates data analysis pipelines, tracking data sources, scientific package calls, hyperparameters, and resulting figures without altering user code.

acorn Architecture
Inspect Architecture Diagram
Automated Provenance

Zero-Touch Scientific Execution & Lineage Tracking Pipeline

Dynamic package decoration (scikit-learn, pandas, scipy, numpy) with automated provenance logging and graph visualization.

  • ✓
    Zero-Code-Change Decorator Engine: Decorates standard scientific libraries at runtime (acorn.decor), automatically capturing input files, parameters, and outputs without requiring manual logging statements.
  • ✓
    Computational Lineage DAG Construction: Automatically builds a Directed Acyclic Graph (DAG) linking source datasets, intermediary feature transforms, ML training runs, and generated plots.
  • ✓
    Multi-Level Provenance Tracking: Captures environment metadata, Python package versions, git commit hashes, CPU/GPU utilization, and deterministic random seeds for complete auditability.
  • ✓
    Real-Time Web Dashboard: Integrates a local web server (acorn server) rendering interactive computational graphs, run histories, and generated figure galleries.
  • ✓
    Automated Reproducibility Bundles: Packages tracked pipelines into standalone reproducible ZIP archives containing code, exact package manifests, and SHA-256 data hashes.
  • ✓
    PyPI Distribution & Documentation: Published on PyPI (pip install acorn) with comprehensive Sphinx documentation hosted on GitHub Pages.
acorn Automated Tracking Example
import acorn
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier

# acorn automatically tracks inputs, models, and artifacts in the background
df = pd.read_csv("materials_dataset.csv")
clf = RandomForestClassifier(n_estimators=100)
clf.fit(df[["feature1", "feature2"]], df["target"])

# Launch local provenance dashboard to view the generated lineage DAG
# $ acorn server --port 8080