**Sutra** is a typed, purely functional programming language whose compiled forward pass is a PyTorch neural network. The compiler beta-reduces the whole program — primitives, control flow, string I/O — to a single substrate-pure tensor-op dataflow graph over a frozen embedding substrate (every operation is a tensor op; the language has no scalar-readout escape hatch).
We apply latent space cartography — the systematic mapping of structure in pre-trained embedding spaces (Liu et al., 2019) — to three general-purpose text embedding models using Wikidata knowledge graph triples as probes.
Formal verification of conventional software means navigating control flow
through large imperative codebases; for systems with a learned component it is
usually abandoned outright. We show that **Sutra**, a typed purely-functional
language, changes the shape of the problem for the non-learned part of a system,
because its compiler turns an entire program (primitives, control flow, string
I/O) into a single fused **tensor-op graph** over a frozen substrate, and that
graph *is* the program's semantics (as a neural network's weights are its
computation), not a residual to be interpreted.
Sutra is a purely functional language whose values are geometric objects in a
vector substrate and whose operations are tensor operations on that substrate;
the substrate's axes can be the meaningful directions of a pretrained embedding
(used here for glyph fonts), or, where a task needs no semantic codebook, a small
codebook-free arithmetic slice of the same machinery (used here for the pixel
fields). We are explicit about which is which: the coordinate/colour fields in this
paper are computed by elementwise tensor arithmetic at a small runtime dimension and
are *not* claimed to live in the full embedding subspace; only the glyph font uses
the pretrained-embedding codebook.
We present the Reservoir Attention Network (RAN) architecture, which injects a fixed, randomly-initialized reservoir (echo state network) into a pretrained transformer's mid-layer attention to give the model genuine state BETWEEN forward passes -- a real time axis. We refer to a specific instantiation of this architecture as a Reservoir Agent.
SJOGREN-LYMPH is a dependency-free executable clinical heuristic for primary Sjogren disease that converts persistent parotid swelling, low C4, cryoglobulinemia, palpable purpura, cytopenias, lymphadenopathy, gland masses, monoclonal gammopathy, beta-2 microglobulin elevation, and germinal-center histology into a transparent 0-100 lymphoma concern score. The skill returns a concern band and escalation recommendation to help decide when to pursue imaging, hematology review, or biopsy-oriented workup.
Serologically active clinically quiescent (SACQ) systemic lupus erythematosus is a practical bedside problem because abnormal anti-dsDNA and complement can persist without overt symptoms. SACQ-LUPUS is an executable transparent skill that separates stable serologic activity from smoldering flare risk and stops labeling the case SACQ once urinary or extra-renal flare signals appear.
A transformer with **analytically computed (untrained) weights** can execute
arbitrary WebAssembly programs — Percepta's `transformer-vm`. We study this artifact
as a **handcrafted, constructed-weight neural network that edits RAM to process
WebAssembly**: attention is used as exact, content/location-addressed memory access,
the feed-forward layers are the per-step compute, and the append-only token sequence
together with a memory region is the machine's state.
ADA-Predictor is a transparent clinical support tool for anti-drug antibody risk in biologic-treated autoimmune disease. It estimates immunogenicity risk using biologic class, methotrexate co-therapy, HLA-DQA1*05 status, prior biologic failure, inflammatory burden, smoking, disease duration, and BMI, then converts the result into a risk tier and therapeutic monitoring suggestion.
Peripheral neuropathy in systemic autoimmune rheumatic disease is clinically important but often diagnostically messy. The bedside question is rarely only whether neuropathy is present; it is whether the pattern suggests vasculitic neuropathy, small-fiber neuropathy, or a common metabolic or entrapment confounder that should be corrected before autoimmune attribution is made.
HANDROM is an executable clinical decision-support skill that estimates hand impairment from range-of-motion loss, grip and pinch weakness, inflammatory burden, pain/stiffness, and functional difficulty. It returns a severity category, uncertainty interval, referral recommendation, and red-flag notes for rheumatic disease care.
ANEMIA-IMMUNE stratifies anemia in autoimmune disease by combining hemoglobin severity, MCV, ferritin, transferrin saturation, CRP, reticulocytes, kidney function, bleeding signals, hemolysis signals, and myelosuppressive drugs into a transparent 0-100 concern score and phenotype label. The implementation is executable Python and is intended to support differential diagnosis of iron deficiency, inflammation/CKD-pattern anemia, mixed anemia, and probable marrow-suppression/hemolysis context.
Conventional operating systems treat the CPU as the brain and the GPU as an accelerator, and treat AI as something bolted on through serialization layers (text, JSON, tool-call schemas). For workloads where both **predictable latency under load** and **first-class local AI** matter — defense, aerospace, industrial control, medical devices, autonomous systems — neither inversion is paid for, but both costs are felt: GPU-resident models thrash against CPU-resident schedulers, and every round trip through the OS/AI boundary costs an embed/decode pair that drops information and adds jitter.
LEF-WASH is a transparent clinical heuristic for reproductive-safety triage when leflunomide is active, recently stopped, or being cleared before conception in rheumatic and autoimmune disease. The bedside problem is not whether the drug was merely discontinued, but whether cholestyramine washout occurred, whether teriflunomide clearance below 0.
Romosozumab creates a real bedside tradeoff: rapid fracture-risk reduction versus unresolved concern about major adverse cardiovascular events in older osteoporosis patients with heavy comorbidity. ROMO-CV is an executable Python skill that converts this problem into a transparent 0-100 cardiovascular concern score using recent myocardial infarction, recent stroke, active ischemic chest pain or new neurologic deficit, established ASCVD, symptomatic heart failure, uncontrolled hypertension, CKD severity, diabetes, smoking, age, fracture urgency markers, anabolic alternatives, and prior cardiology review.
ANIFRO-HZ is an executable, transparent clinical decision-support skill for stratifying herpes zoster concern in systemic lupus erythematosus during or soon after anifrolumab exposure. The bedside problem is not only knowing that zoster risk exists, but recognizing when glucocorticoids, lymphopenia, nephritis-level co-immunosuppression, absent recombinant zoster vaccination, and early symptom patterns create a treatment context that should alter monitoring or escalation.
**Loka** is a neuro-symbolic world model assembled from two systems sharing one query language. The first is an RDF-star triplestore — explicit memory, exact answers.
## Abstract
Anticoagulation in antiphospholipid syndrome (APS) remains clinically contentious because the convenience of direct oral anticoagulants (DOACs) is not matched by uniform safety across APS phenotypes. The central bedside problem is not whether DOACs are ever usable, but whether a given patient sits in a high-risk phenotype where DOAC exposure is especially unfavorable.
Denosumab discontinuation creates a distinctive clinical hazard: vertebral-fracture risk can rebound rapidly when treatment is delayed or stopped without sequential antiresorptive therapy. This problem is especially relevant in rheumatology and glucocorticoid-treated osteoporosis, where missed injections may go unnoticed until new back pain or clustered vertebral fractures emerge.
RA-MODEL is an executable Python skill that consolidates standard rheumatoid arthritis disease-activity and function indices into one transparent longitudinal workflow. It computes DAS28-CRP, DAS28-ESR, CDAI, SDAI, Boolean remission, HAQ-DI, RAPID3, and a treat-to-target summary across serial visits.