# Programme Algebra Parallel Lane **Date:** 26 October 2026 **Status:** parallel compilation lane; complete structural projection, partial epistemic, route, empirical-return and scientific admission **Authority:** the existing corpus remains canonical; this lane may not replace or promote it without an explicit later decision ## Purpose This lane expresses the science programme through the same compositional grammar used by Sourcery's `common-algebra-2` work. It is deliberately parallel to the existing corpus. Its first job is to reveal whether an algebraic representation can preserve more structure, provenance and refusal information than the current filesystem-and-link projection before it is considered as a replacement. The compilation route is: \[ \text{canonical corpus sources} \longrightarrow \text{typed programme algebra} \longrightarrow \text{receipts, navigation and generated readings}. \] The generated algebra is not another editable source of truth. Corpus Markdown remains canonical for prose, argument and explanation. Authored algebra declarations remain canonical for object identities, profiles and admitted transformations. Generated JSON and reports are disposable projections of those two source classes. The plasma-heart migration begins with the authored declaration [`plasma_heart_algebra_v1.json`](plasma_heart_algebra_v1.json). It defines the solver-independent state, conservation operators, symmetry-break ports, solver interface, admission gates, and controlled Python-retirement policy. The corresponding solver boundary is declared in [`plasma_heart_solver_ir_v1.json`](plasma_heart_solver_ir_v1.json). It is the typed packet contract that OpenFOAM, Elmer, SU2, preCICE, or a custom engine must lower to and from; no engine-specific field layout becomes authoritative. The first held-out retrieval tranche establishes a narrower result. Algebraic retrieval finds machine ledgers that Markdown-only search cannot see, but it is not uniformly better for prose. Naive score fusion and keyword-only routing both failed frozen gates. A later explicit `machine`/`prose` source-kind facet found all six fresh targets within the top ten while retaining the earlier failures. This supports a complementary typed retrieval surface, not corpus replacement. ## Six depths of conversion 1. **Structural projection.** Every retained corpus Markdown document, JSON ledger and image becomes a hash-bound object. Every Markdown heading and bounded semantic unit receives its own address. Containment and explicit links become observed relations. This layer is complete by construction. 2. **Epistemic projection.** Declared status, date, evidence, parent, continuation, source, generator and verifier fields become typed coordinates or relations. Missing declarations remain visible as missing; the compiler does not invent them. 3. **Scientific admission.** A movement is a scientific transformation only when its endpoint signatures, changed coordinates, dimensions, assumptions, losses, evidence and authority pass the common-algebra gates. The four D02 families are the initial admitted seed. Ordinary Markdown links never become scientific transformations merely because they connect scientific prose. 4. **Research-state transformations.** An explicit `Parent` declaration may become a proposal-only epistemic transformation when both documents exist, the target has a declared status, evidence is attached and every changed kernel coordinate is named. Failed candidates remain refusal records. 5. **Composed routes.** Maximal parent chains are composed into bounded ALE receipts: assumptions, losses and evidence travel with the route. One failed edge, a cycle or a depth overflow rejects the whole route without erasing it. 6. **Empirical return.** Experiment-shaped records are normalized to preparation, intervention, detector, nuisance model, record and decision rule. A complete six-field packet means the proposed protocol closes syntactically; it does not mean the experiment ran or its hypothesis was confirmed. ## Shared kernel and profiles Every object carries the twelve-coordinate epistemic kernel \[ (K,D,R,C,F,S,G,E,U,P,A,T), \] meaning kind, domain, role, context, form, status, governing scheme, equivalence, admissibility, support, authority and time. Domain profiles extend that kernel without changing its meanings. The initial profiles are declared in [`programme_algebra_profiles_v1.json`](programme_algebra_profiles_v1.json). Machine-record schema views and their deliberately provisional matching rules are declared separately in [`programme_algebra_adapters_v1.json`](programme_algebra_adapters_v1.json). This is a family of typed categories, not one forced vector algebra. Scientific, mathematical, physical, experimental, epistemic and governance objects may compose internally under profile rules. A cross-profile passage is partial and must retain its assumptions, losses, evidence, falsifier and authority ceiling. ## Articles These are the reader-facing entrances to the lane. The first three are compiled from the current corpus and may be regenerated; the conversion register is the authored audit of what the compiler does and does not claim. - **[Programme Algebra Journeys](generated/PROGRAMME_ALGEBRA_JOURNEYS.md)** — follow admitted and refused research lineages, their assumptions, losses and evidence, and the empirical-return surfaces they reach. - **[Programme Algebra Coverage](generated/PROGRAMME_ALGEBRA_COVERAGE.md)** — inspect conversion depth, machine-record adapters, exclusions and the honest remainder. - **[Programme Algebra Retrieval Benchmark](generated/PROGRAMME_ALGEBRA_RETRIEVAL_BENCHMARK.md)** — compare canonical prose search with algebraic retrieval, including the failed controls and the typed-facet candidate. - **[Whole-Corpus Conversion Register](CONVERSION_REGISTER.md)** — inspect the authored L0–L6 completion audit and the boundary between structural coverage and scientific admission. ### External theorem benchmark - **[Torus-knot Rogers--Ramanujan three-face programme](../../claims/1700-1799/1796_the_torus_knot_rogers_ramanujan_theorem_is_a_typed_three_face_arithmetic_programme_not_yet_a_physics_bridge.md)** — a proved benchmark in which one source object has a finite-field counting face, a gap-poset \(q\)-series face and a periodic Euler-product face. The benchmark tests whether the algebra can preserve equality of outputs while retaining the non-equivalent carriers, maps, assumptions and authority of the three readings. It does not license an automatic physical or Monster interpretation. - **[Reconstruction, CFT lift and exhaustion](../../claims/1700-1799/1799_the_torus_knot_rogers_ramanujan_lane_is_exhausted_at_four_categorified_or_physical_inputs.md)** — demonstrates the algebraic distinction between an invertible projection (the product recovers \(\{a,b\}\)), a lossy projection (groupoid volume does not recover the module category), and a valid cross-profile interpretation (the same product is a nonunitary \(\mathcal W\)-character). Four new-input gates prevent those facts from being promoted to Monster or Spin(2,3). ## Generated outputs Run: ~~~powershell node tooling/programme-algebra/compile_programme_algebra.mjs --write node tooling/programme-algebra/run_retrieval_benchmark.mjs --out corpus/programmes/programme-algebra/generated/PROGRAMME_ALGEBRA_RETRIEVAL_BENCHMARK.json --report corpus/programmes/programme-algebra/generated/PROGRAMME_ALGEBRA_RETRIEVAL_BENCHMARK.md node verification/admissibility/verify_programme_algebra_parallel_lane.mjs node verification/admissibility/verify_programme_algebra_retrieval_benchmark.mjs ~~~ The compiler writes: - `generated/programme_algebra_v1.json` — the inspectable manifest, source identities, counts, coverage and archive hashes; - `generated/programme_algebra_records_v1.json.gz` — the deterministic complete machine-readable projection and admission receipts, compressed to avoid repeating the twelve-coordinate kernel tens of thousands of times. This disposable archive is intentionally ignored by Git and is regenerated locally or in CI; its exact hashes and sizes remain in the tracked manifest; - `generated/PROGRAMME_ALGEBRA_COVERAGE.md` — the human-readable coverage and boundary report; - `generated/PROGRAMME_ALGEBRA_JOURNEYS.md` — the human reading projection for composed ALE routes, empirical-return surfaces and the honest remainder; - `generated/PROGRAMME_ALGEBRA_RETRIEVAL_BENCHMARK.md` — the preregistered canonical-versus-algebra retrieval comparison, including failed fusion and validation gates. Its current verdict is open, so it does not authorize replacement. Running without `--write` performs the same compilation and prints the summary without changing files. ## Replacement gate This lane may replace any part of the existing corpus only after it demonstrates: 1. lossless source identity and stable object identity; 2. no silent status, authority or evidence promotion; 3. explicit failure on stale or mismatched endpoint signatures; 4. strictly better retrieval or reasoning on held-out tasks; 5. readable generated journeys for humans; 6. reproducible compilation without a live Claimipedia or Sourcery service; and 7. an explicit migration and rollback decision. Until those gates close, the lane is an instrument for examining the corpus, not its successor. ## Plasma-heart solver boundary The plasma-heart work is now algebra-first at the solver boundary. The authoritative declarations are: - `plasma_heart_algebra_v1.json` — geometry, conservation operators, ports, symmetry-break declarations and admission rules; - `plasma_heart_solver_ir_v1.json` — solver-independent packet sections, derived operators, invariants and lowering targets; - `plasma_heart_retirement_manifest_v1.json` — the explicit, non-destructive inventory and replacement gates for the legacy Python screening layer. - `plasma_heart_migration_matrix_v1.json` — the authored mapping from each legacy Python class to its algebra or solver replacement. The non-Python checks are run with: ~~~powershell node tooling/plasma-heart/compile_plasma_heart_algebra.mjs node tooling/plasma-heart/lint_plasma_heart_solver_packet.mjs node tooling/plasma-heart/inventory_legacy_python.mjs node tooling/plasma-heart/run_solver_adapter.mjs --engine openfoam node tooling/plasma-heart/evaluate_solver_packet.mjs --input tooling/plasma-heart/fixtures/minimal_solver_packet.json node tooling/plasma-heart/admit_solver_packet.mjs --input output/plasma-heart-algebra/synthetic-ir-packet.json node tooling/plasma-heart/verify_closed_surface_null.mjs node tooling/plasma-heart/audit_solver_source.mjs node tooling/plasma-heart/verify_resolved_surface_fixture.mjs node tooling/plasma-heart/test_solver_rejection_paths.mjs node tooling/plasma-heart/emit_openfoam_case.mjs --input output/plasma-heart-algebra/synthetic-ir-packet.json --out output/plasma-heart-algebra/openfoam-synthetic-case node tooling/plasma-heart/emit_engine_case.mjs --engine elmer --input output/plasma-heart-algebra/synthetic-ir-packet.json --out output/plasma-heart-algebra/elmer-synthetic-case node tooling/plasma-heart/emit_engine_case.mjs --engine su2 --input output/plasma-heart-algebra/synthetic-ir-packet.json --out output/plasma-heart-algebra/su2-synthetic-case node tooling/plasma-heart/emit_engine_case.mjs --engine precice --input output/plasma-heart-algebra/synthetic-ir-packet.json --out output/plasma-heart-algebra/precice-synthetic-case node tooling/plasma-heart/evaluate_quasi1d_reference.mjs node tooling/plasma-heart/evaluate_3d_stokes_reference.mjs node tooling/plasma-heart/evaluate_compressible_face_adapter.mjs node tooling/plasma-heart/audit_solver_cycle_energy.mjs node tooling/plasma-heart/evaluate_coil_maxwell_reference.mjs node tooling/plasma-heart/evaluate_plasma_conductivity.mjs node tooling/plasma-heart/evaluate_radiation_port_reference.mjs node tooling/plasma-heart/evaluate_induced_current_fixed_point.mjs node tooling/plasma-heart/evaluate_field_backreaction_fixed_point.mjs node tooling/plasma-heart/evaluate_maxwell_diffusion_1d.mjs node tooling/plasma-heart/evaluate_maxwell_diffusion_3d.mjs node tooling/plasma-heart/evaluate_resistive_mhd_reference.mjs node tooling/plasma-heart/evaluate_adaptive_mhd_policy.mjs node tooling/plasma-heart/evaluate_geometry_pareto.mjs node tooling/plasma-heart/run_custom_solver.mjs --input tooling/plasma-heart/fixtures/minimal_solver_packet.json --output output/plasma-heart-algebra/custom-solver-result.json node tooling/plasma-heart/run_solver_adapter.mjs --engine custom --execute --input tooling/plasma-heart/fixtures/minimal_solver_packet.json --output output/plasma-heart-algebra/custom-solver-result.json node tooling/plasma-heart/make_solver_cycle_fixture.mjs node tooling/plasma-heart/run_custom_cycle.mjs --inputs output/plasma-heart-algebra/custom-cycle-inputs/packet-0.json,output/plasma-heart-algebra/custom-cycle-inputs/packet-1.json,output/plasma-heart-algebra/custom-cycle-inputs/packet-2.json,output/plasma-heart-algebra/custom-cycle-inputs/packet-3.json,output/plasma-heart-algebra/custom-cycle-inputs/packet-4.json node tooling/plasma-heart/audit_physical_admission.mjs node tooling/plasma-heart/generate_solver_handoff_report.mjs node tooling/plasma-heart/evaluate_solver_cycle.mjs node tooling/plasma-heart/evaluate_field_port_asymmetry.mjs node tooling/plasma-heart/evaluate_resolved_estimator.mjs node tooling/plasma-heart/evaluate_actuator_constraints.mjs node tooling/plasma-heart/evaluate_3d_actuator_gate.mjs node tooling/plasma-heart/evaluate_cycle_orientation_reversal.mjs node tooling/plasma-heart/evaluate_solver_power_ledger.mjs node tooling/plasma-heart/evaluate_solver_mesh_convergence.mjs node tooling/plasma-heart/evaluate_field_surface_coupling.mjs node tooling/plasma-heart/evaluate_chemistry_surface_coupling.mjs node tooling/plasma-heart/evaluate_vector_maxwell_diffusion_3d.mjs node tooling/plasma-heart/evaluate_thermal_surface_feedback.mjs node tooling/plasma-heart/evaluate_maxwell_uncertainty_robust.mjs node tooling/plasma-heart/evaluate_mhd_coupled_cycle_ledger.mjs node tooling/plasma-heart/evaluate_fully_coupled_power_ledger.mjs node tooling/plasma-heart/evaluate_combined_force_ledger.mjs node tooling/plasma-heart/evaluate_total_power_ledger.mjs node tooling/plasma-heart/evaluate_3d_cycle_pareto.mjs node tooling/plasma-heart/evaluate_radiation_cycle_pareto.mjs node tooling/plasma-heart/evaluate_radiation_uncertainty_robust.mjs node tooling/plasma-heart/audit_remaining_legacy.mjs node tooling/plasma-heart/verify_migration.mjs node tooling/plasma-heart/verify_reference_regression.mjs node tooling/plasma-heart/convert_legacy_packet.mjs node tooling/plasma-heart/make_synthetic_solver_packet.mjs node tooling/plasma-heart/verify_corpus_boundary.mjs node tooling/plasma-heart/verify_solver_cycle.mjs node tooling/plasma-heart/verify_solver_handoff.mjs node tooling/plasma-heart/verify_algebra_requirements.mjs node tooling/plasma-heart/verify_mesh_convergence.mjs node tooling/plasma-heart/evaluate_solver_packet.mjs --input tooling/plasma-heart/fixtures/minimal_solver_packet.json ~~~ The compiler produces `output/plasma-heart-algebra/solver-lowering-manifest.json`. These checks validate algebra and packet shape only; they do not claim thrust or physical admission. External engines remain evaluators and must be attached via an adapter that preserves packet identity, conservation ledgers and the stated invariants. `run_solver_adapter.mjs` reports availability or an explicit refusal; it never fabricates solver output. The inventory classifies the remaining legacy Python files and leaves them pending-retirement until a real adapter and replacement verification are complete. The first retirement batches are intentionally narrow: the standalone Python hash-manifest generator, its generated extension manifest, the superseded resolved-packet Python linter, and the standalone backend probe were removed after non-Python replacements were verified. The hash-based reference baseline was also replaced by a structural/status regression check. The remaining inventory is now 0 Python files; unresolved physics and optimization targets remain explicitly pending rather than silently discarded.