AGENTS.md@src/gnn/execute/discopy · git:20260922.c9be8be · 2026-09-22 · sha256 99e5b65a4618225b
AGENTS.md@src/gnn/execute/discopy git:20260922.c9be8beA
Immutable. This exact content never changes and is served at /api/v1/blob/99e5b65a4618225b.
# DisCoPy Execution Sub-module ## Overview Execution module for DisCoPy categorical diagrams generated by Step 11 (Render). Validates and analyzes DisCoPy diagram structures, verifying compositional correctness and computing categorical properties. ## Architecture ``` discopy/ ├── __init__.py # Package exports and entry point └── discopy_executor.py # DisCoPy validation and analysis engine (436 lines) ``` ## Key Functions - **`execute_discopy(script_path, output_dir)`** — Validates and executes a rendered DisCoPy diagram script. - **Diagram validation** — Verifies categorical composition rules (functoriality, naturality). - **Property computation** — Computes diagram invariants and structural properties. - **Result serialization** — Outputs execution results as JSON for downstream analysis. ## Dependencies - `discopy` (optional, graceful degradation if missing) ## Parent Module See [execute/AGENTS.md](../AGENTS.md) for the overall execution architecture. **Version**: [pyproject.toml](../../../../pyproject.toml) (canonical)