Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/lexlean-revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1cf52d6e92808f1ddc1a1b2eb9f37036fc6c0e6d
2aced32e0f9c1ca0cf160f150a04819dedb4fc04
23 changes: 15 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,14 @@ the registers. Never add a `.py` file or a shell script, and never extend `tools
`scripts/*.py` or the shell glue: the pre-commit authoring policy refuses a commit that adds a
Python file or grows the Python it touches, with no bypass.

At the pinned compiler (the release/v0.5 development line, revision 1cf52d6) a production root compiles to a Rust library
with no `main` and no effects beyond allocation, overflow and recursion: no files, processes,
arguments or exit codes. An executable entry for a root that reads files and runs `lake`,
`lexlean` and `git` is LexLean issue #271 (the effects boundary). So the logic moves into LexLean
now, as authored modules with certified roots, and the remaining Python and shell glue is deleted
as the effect boundary is implemented on our v0.5-based LexLean branch. The vendored LexLeanStd.Host types are the actual PR #389 interface ported to v0.5 in upstream PR #396; they are imported directly rather than mirrored in Rule30Api.Host. A capability LexLean, PrismPM or
The development compiler pinned in `.github/lexlean-revision` follows `release/v0.5`.
LexLean PR #396 supplies the actual PR #389 `LexLeanStd.Host` interface; PR #439
adds a generated executable entry for a root with the native Host step signature,
explicit file/process effects, and owned child cleanup. The API imports these
types directly; `Rule30Api.Host` is the application harness. Use this compiler
to complete the native application and remove legacy glue as each replacement
passes the gate. Ordinary pure roots still export as libraries. Issue #271 does
not prevent work on this development branch. A capability LexLean, PrismPM or
prism-stdlib cannot yet express is an upstream issue for those projects, never a reason for new
Python or shell. The logic already moved: the command surface, the register, the
converter (`rule30-api/src/Convert.lex.tex`), the engine's learning rule and schedule
Expand All @@ -125,10 +127,15 @@ proof receipt. Report review must establish the exact contextual sequent,
kernel replay, axiom policy and snapshot before returning a checked answer.
`ResearchVerification` owns a fixed LexLean verification job and the ordered
command/attestation reads. Its accepted outcome is validated report data;
promotion still requires binding to the generated candidate's exact statement.
`ResearchProof` promotes it only after `CandidateBinding` recomputes the candidate
semantic identity and compares the audited declaration's actual type with the
requested contextual goal. `ResearchRunner.Event.reviewed` refuses checked
answers; submit proof jobs through `Event.proof`. The binding schema encodes the
inspected source type and closed target as core arenas in the sequent; source
inspection must establish their origin and snapshot before dispatch.
Maintenance reports have a separate result kind. Cancellation consumes the
outstanding host reply before issuing stop; failed cleanup retains ownership
and halts dispatch. The generated driver, strategy planner, report integration and
and halts dispatch. Native application wiring, source inspection, strategy planner and
publication path still need completion; these modules do not replace the
legacy engine yet. Add every new application or library module and its modeled
features to `ResearchCatalog`, and add behavioral evidence for the capability;
Expand Down
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,18 +289,21 @@ writes to `dist/`; the pre-commit gate publishes those outputs to all tracked PD
Pushing any version tag `v*` (e.g. `v0.1`) triggers [`.github/workflows/release.yml`](.github/workflows/release.yml), which builds `rule30-core-lean`, `Rule30PrizeKit/lean`, and `rule30-bridge`, compiles `Rule30-Paper.pdf` and `Rule30-Core.pdf`, packages the verified LexLean bundles, and attaches all PDFs and LexLean artifacts to the GitHub Release.

The compiler development pin follows LexLean `release/v0.5` through
[the Host interface contribution](https://github.com/UOR-Foundation/LexLean/pull/396).
[the Host interface contribution](https://github.com/UOR-Foundation/LexLean/pull/396)
and [native command execution](https://github.com/UOR-Foundation/LexLean/pull/439).
That source package ports the actual interface from
[LexLean #389](https://github.com/UOR-Foundation/LexLean/pull/389) to v0.5,
including fallible startup paths, timed child waits and byte output.
including fallible startup paths, timed child waits and byte output. Native Host
step roots can export a generated executable with explicit file/process effects
and child cleanup; pure roots remain libraries.
The API imports `LexLeanStd.Host` from the pinned source package; its local
`Host` module contains only the application harness. The attention catalog
covers all 49 application and library modules. `ResearchRunner` connects the
covers all 60 application and library modules. `ResearchRunner` connects the
controller to the local-tool supervisor in `ResearchExecution`: it binds each
job to the outstanding request, drains cancelled host requests, preserves child
ownership on cleanup failure, and requires report review after a successful
process exit. Checked proof reports must name the exact sequent; maintenance
reports must cover the requested sources. Dependency changes invalidate both
process exit. External checked answers are refused: proof jobs use the owned
`ResearchProof` verifier. Maintenance reports must cover the requested sources. Dependency changes invalidate both
active work and remembered evidence.

The `Json` and `VerificationReport` modules decode tool reports with explicit
Expand All @@ -309,12 +312,19 @@ kernel-replay records. The decoder recomputes the attestation content identity;
`ResearchVerification` owns the fixed local verify job, reads its command output
before the matching attestation, and returns a receipt only after decoding it.
Cancellation drains pending reads; failed process cleanup retains ownership.
The receipt still needs binding to the generated candidate's exact statement.
`ResearchProof` then binds the receipt to the candidate's actual native declaration.
`ArtifactIdentity` recomputes the semantic identity from canonical linked IR and
lexicon closure; `CandidateBinding` selects the unique audited theorem and
`CoreBinding` compares its type with the selected source premise, closed over
preceding binders only. Refutation negates the premise inside that context.
Binder names may differ; variables, universes, constants and binder visibility
must agree. The runner retains verifier ownership through cancellation and
blocks dispatch after failed cleanup.
UTF-8 chunk, parser-state and SHA-256 block facts keep the complete report
acceptance proof compositional; lifecycle traces reuse that checked receipt and verify rejection,
cancellation, ownership and terminal behavior.

The generated executable driver, strategy candidate construction, runner integration and
durable publication are still required for the new runner to replace the legacy
engine. Its exported functions are currently pure libraries. CI and runtime
Native application wiring, source inspection into the binding schema,
strategy candidate construction and durable publication are still required for
the new runner to replace the legacy engine. CI and runtime
use deterministic local tools and no remote models.
Binary file modified Rule30-Core.pdf
Binary file not shown.
Binary file modified Rule30-Observations.pdf
Binary file not shown.
Binary file modified Rule30-Paper.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions pdf-manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"documents": {
"Core": {
"pdf_sha256": "36cd90321207737901bb7174473936ab29503de8998da287b742e5d18235ae50",
"pdf_sha256": "f479fa1dbee863116bb577217ebbc22429bca7e117d25ae1d47188d6080ff122",
"tex_sha256": "a7cd1807077baa1d1ca34015faf500a24477991859427f4db646e5f230fe54e2"
},
"Observations": {
"pdf_sha256": "7457733467d503276b6f438e475eda5c52996e08719d344f55c2a745db72618f",
"pdf_sha256": "de987d0c3a8eea79bbfe5c95b8254eeb1b65f1b5218ff7f6a54096ac719f3f45",
"tex_sha256": "056820f37ac40133e341f46ad6c81125e35981150a1cc86f2063faad3f26fbd4"
},
"Paper": {
"pdf_sha256": "8948692a1a8718de68b24231d34ed7b258b62a0ffdf83faa90068853a19d551a",
"pdf_sha256": "dba47573d0d811503185ba2b379a3e6de85e4d403ddae126643c2e408d0e6e28",
"tex_sha256": "000f988561d9621f9ba2f9a99aba971670864367ebd336e6fbad0e1f71da01cb"
}
},
"generated_at_utc": "2026-11-03T17:01:57.185574+00:00",
"source_digest": "40296b5eff0a72b6349e13c7a3e1fd5273099b336f0b326d3da6f898339ac51e"
"generated_at_utc": "2026-11-04T20:49:52.508527+00:00",
"source_digest": "499bcf9d5fb81dcc7379fb536b87ae6caf13f9ac89db23f3996934a9bc5ca816"
}
4 changes: 2 additions & 2 deletions rule30-api/lexlean.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spec = "lexlean/lock/2"
language = "1.2"
compiler_semantics = "0b48547157a44c7dafdc0c59cfd270f185a6a172b83bb42e5af79323d4fb84eb"
project_config_sha256 = "04280dd8b973949b7df5d0c2082e9fa099aea6541e86037dbe1ec9ac22d74224"
compiler_semantics = "b9816b388a3eb1800179f96aa9bc789620a46d7a7132f1b52ee9fa404c2092f7"
project_config_sha256 = "f051b3f72b219df5ee4ee3276311bb8dd0e4211878f6904aa411974333c29226"
lean_toolchain = "leanprover/lean4:v4.32.1"

[[workspace_file]]
Expand Down
4 changes: 2 additions & 2 deletions rule30-api/lexlean.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "rule30-api"
language = "1.2"
module_prefix = "Rule30Api"
source_roots = ["src", "stdlib"]
entrypoints = ["src/Api.lex.tex", "src/Application.lex.tex", "src/Architecture.lex.tex", "src/Audit.lex.tex", "src/Convert.lex.tex", "src/Discovery.lex.tex", "src/Engine.lex.tex", "src/Host.lex.tex", "src/Hypotheses.lex.tex", "src/Json.lex.tex", "src/JsonTraces.lex.tex", "src/Observer.lex.tex", "src/Presentation.lex.tex", "src/R30.lex.tex", "src/R30Traces.lex.tex", "src/R30TracesClaims.lex.tex", "src/R30TracesForms.lex.tex", "src/R30TracesRegister.lex.tex", "src/Register.lex.tex", "src/Research.lex.tex", "src/ResearchCatalog.lex.tex", "src/ResearchExecution.lex.tex", "src/ResearchExecutionTraces.lex.tex", "src/ResearchRunner.lex.tex", "src/ResearchRunnerTraces.lex.tex", "src/ResearchTraces.lex.tex", "src/ResearchVerification.lex.tex", "src/ResearchVerificationTraces.lex.tex", "src/Rule30Core.lex.tex", "src/Sequences.lex.tex", "src/Standards.lex.tex", "src/Toml.lex.tex", "src/VerificationCommandFixtures.lex.tex", "src/VerificationHashFixtures.lex.tex", "src/VerificationJsonData.lex.tex", "src/VerificationJsonFixtures.lex.tex", "src/VerificationJsonSteps0.lex.tex", "src/VerificationJsonSteps1.lex.tex", "src/VerificationJsonSteps2.lex.tex", "src/VerificationJsonSteps3.lex.tex", "src/VerificationReport.lex.tex", "src/VerificationReportTraces.lex.tex", "src/VerificationUtf8Fixtures.lex.tex"]
entrypoints = ["src/Api.lex.tex", "src/Application.lex.tex", "src/Architecture.lex.tex", "src/ArtifactIdentity.lex.tex", "src/ArtifactIdentityTraces.lex.tex", "src/Audit.lex.tex", "src/BindingFixture.lex.tex", "src/CandidateBinding.lex.tex", "src/CandidateBindingTraces.lex.tex", "src/Convert.lex.tex", "src/CoreBinding.lex.tex", "src/CoreBindingTraces.lex.tex", "src/Discovery.lex.tex", "src/Engine.lex.tex", "src/Host.lex.tex", "src/Hypotheses.lex.tex", "src/Json.lex.tex", "src/JsonCanonical.lex.tex", "src/JsonCanonicalTraces.lex.tex", "src/JsonTraces.lex.tex", "src/Observer.lex.tex", "src/Presentation.lex.tex", "src/R30.lex.tex", "src/R30Traces.lex.tex", "src/R30TracesClaims.lex.tex", "src/R30TracesForms.lex.tex", "src/R30TracesRegister.lex.tex", "src/Register.lex.tex", "src/Research.lex.tex", "src/ResearchCatalog.lex.tex", "src/ResearchExecution.lex.tex", "src/ResearchExecutionTraces.lex.tex", "src/ResearchProof.lex.tex", "src/ResearchProofTraces.lex.tex", "src/ResearchRunner.lex.tex", "src/ResearchRunnerTraces.lex.tex", "src/ResearchTraces.lex.tex", "src/ResearchVerification.lex.tex", "src/ResearchVerificationTraces.lex.tex", "src/Rule30Core.lex.tex", "src/Sequences.lex.tex", "src/Standards.lex.tex", "src/Toml.lex.tex", "src/VerificationCommandFixtures.lex.tex", "src/VerificationHashFixtures.lex.tex", "src/VerificationJsonData.lex.tex", "src/VerificationJsonFixtures.lex.tex", "src/VerificationJsonSteps0.lex.tex", "src/VerificationJsonSteps1.lex.tex", "src/VerificationJsonSteps2.lex.tex", "src/VerificationJsonSteps3.lex.tex", "src/VerificationReport.lex.tex", "src/VerificationReportTraces.lex.tex", "src/VerificationUtf8Fixtures.lex.tex"]
build_root = ".lexlean"
lockfile = "lexlean.lock"
lean_workspace = "."
Expand Down Expand Up @@ -34,7 +34,7 @@ kind = "path"
path = "lexlean-stdlib"

[limits]
max_file_bytes = 4194304
max_file_bytes = 6291456
max_total_source_bytes = 67108864
max_primitive_atoms = 2000000
max_token_lattice_edges = 4000000
Expand Down
2 changes: 1 addition & 1 deletion rule30-api/model/dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ spec = "prismpm/dependencies/1"
id = "lexlean"
version = "0.4.0"
language = "1.2"
revision = "0b48547157a44c7dafdc0c59cfd270f185a6a172b83bb42e5af79323d4fb84eb"
revision = "b9816b388a3eb1800179f96aa9bc789620a46d7a7132f1b52ee9fa404c2092f7"
source = "pinned-binary"
role = "compiler"
path = ".local/bin/lexlean"
Expand Down
2 changes: 1 addition & 1 deletion rule30-api/model/standards.toml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ release_scope = true
id = "lexlean"
name = "UOR-Foundation/LexLean (closed-lexicon LaTeX to Lean 4)"
authority = "https://github.com/UOR-Foundation/LexLean"
version = "0.4.0, language 1.2, compiler semantics 0b48547157a4"
version = "0.4.0, language 1.2, compiler semantics b9816b388a3e"
scope = "The authoring surface: the paper, the register and these API modules are LexLean modules verified by lexlean; the production roots export to certified Rust."
realized_by = ["Api", "Register", "Architecture", "Presentation", "Application", "Observer", "Convert", "Standards", "Rule30Core", "Sequences", "Discovery", "verify", "check", "api_sync", "api_check", "api_production"]
conformance = "bin/r30 verify api; bin/r30 check api; bin/r30 api check"
Expand Down
30 changes: 15 additions & 15 deletions rule30-api/production/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"root": "Rule30Api.Api.commandCount",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -21,7 +21,7 @@
"root": "Rule30Api.Api.commands",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -34,7 +34,7 @@
"root": "Rule30Api.Discovery.buildColumns",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -47,7 +47,7 @@
"root": "Rule30Api.Discovery.findRecurrence",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -60,7 +60,7 @@
"root": "Rule30Api.Discovery.findRelations",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -73,7 +73,7 @@
"root": "Rule30Api.Engine.learnAll",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -86,7 +86,7 @@
"root": "Rule30Api.Engine.schedule",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -99,7 +99,7 @@
"root": "Rule30Api.Hypotheses.mint",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -112,7 +112,7 @@
"root": "Rule30Api.Rule30Core.center",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -125,7 +125,7 @@
"root": "Rule30Api.Rule30Core.centersFrom",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -138,7 +138,7 @@
"root": "Rule30Api.Rule30Core.rdiag",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -151,7 +151,7 @@
"root": "Rule30Api.Rule30Core.rows",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -164,7 +164,7 @@
"root": "Rule30Api.Rule30Core.rulerBackground",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -177,7 +177,7 @@
"root": "Rule30Api.Rule30Core.rulerFrom",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand All @@ -190,7 +190,7 @@
"root": "Rule30Api.Rule30Core.towerWord",
"targets": [
{
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f",
"id": "rust-std"
}
]
Expand Down
6 changes: 3 additions & 3 deletions rule30-api/production/research-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
{
"package": {"name": "rule30_research_route_dead", "version": "0.1.0"},
"root": "Rule30Api.Research.routeDead",
"targets": [{"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c", "id": "rust-std"}]
"targets": [{"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f", "id": "rust-std"}]
},
{
"package": {"name": "rule30_research_step", "version": "0.1.0"},
"root": "Rule30Api.Research.step",
"targets": [{"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c", "id": "rust-std"}]
"targets": [{"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f", "id": "rust-std"}]
},
{
"package": {"name": "rule30_research_initial", "version": "0.1.0"},
"root": "Rule30Api.ResearchCatalog.initial",
"targets": [{"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c", "id": "rust-std"}]
"targets": [{"digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f", "id": "rust-std"}]
}
],
"spec": "lexlean/production-request/1"
Expand Down
Loading
Loading