Documentation

monogate — EML operator library · arXiv:2603.21852

Install
npm install monogate      # JavaScript / TypeScript
pip install monogate     # Python
Quickstart — JavaScript
import { eml, evalTree, countNodes } from "monogate";

// Build an EML tree
const tree = eml(1, eml(1, 1));  // eml(1, eml(1,1))

// Evaluate at a point
const result = evalTree(tree, { x: 1.0 });

// Count nodes
const n = countNodes(tree);  // integer
Quickstart — Python
from monogate import eml, eval_tree, count_nodes

# Build a tree
tree = eml(1, eml(1, 1))

# Evaluate
result = eval_tree(tree, x=1.0)

# Count nodes
n = count_nodes(tree)
The operator
eml(x, y) = exp(x) − ln(y)
Grammar: S → 1 | eml(S, S)
Principal-branch ln · ln(0) is undefined (throws)
Terminal: constant 1, variable x
Links
GitHub — source codenpm — JavaScript packagePyPI — Python packagearXiv:2603.21852 — Odrzywołek 2026monogate.org — research essays and theorem catalog
Evidence SDK

Evidence Packet v0 wraps computational and agent outputs in validation, replay, semantic strength, claim flags, reviewer decisions, and explicit non-claims.

python -m monogate_evidence validate packet.json
python -m monogate_evidence review packet.json
python -m monogate_evidence export fixture.json --fixture --artifact-id agent-output-demo
python -m monogate_evidence intake packet.json --out reports/intake
python -m monogate_evidence agent-adapter \
  --artifact-id local-agent-demo \
  --title "Local Agent Demo" \
  --task "Summarize Evidence Packet v0." \
  --output-text "Evidence Packet v0 wraps claims in validation, replay, flags, and non-claims." \
  --source docs/evidence_packet_v0.md \
  --validation-check required_fields_present \
  --output local-agent-demo.packet.json
Evidence browserAgent packet demoAgent packet JSON
Bring Your Own Packet

Local intake accepts a packet, validates reviewer rules, writes a normalized packet, emits a review result, and blocks unsafe packets. There is no public upload form in v0.

python -m monogate_evidence intake packet.json --out reports/intake
python tools/build_intake_gallery.py

Expected blocked examples include approved packets without replay, safety claims set true, hardware observation without live capture, and candidate packets without non-claims.