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 @@
387735155da360cc8264e24dbfe005a031b9e8e8
7037c54838e47c999b64fbae4458ac26aea82347
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ 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 (0.4.0, revision 3877351) a production root compiles to a Rust library
At the pinned compiler (the release/v0.5 development line, revision 7037c54) 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 LexLean gains the effect boundary and rule30 pins it. A capability LexLean, PrismPM or
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
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 Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,14 @@ writes to `dist/`; the pre-commit gate publishes those outputs to all tracked PD

### Automated Releases
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).
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.
The API imports `LexLeanStd.Host` from the pinned source package; its local
`Host` module contains only the application harness. The attention catalog
covers all 30 application and library modules. The generated executable
driver and research executor integration are still required. 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.
2 changes: 1 addition & 1 deletion lexlean-stdlib/lexlean.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stdlib"
language = "1.2"
module_prefix = "LexLeanStd"
source_roots = ["src"]
entrypoints = ["src/Buffer.lex.tex", "src/Sha256.lex.tex", "src/Text.lex.tex"]
entrypoints = ["src/Buffer.lex.tex", "src/Host.lex.tex", "src/Sha256.lex.tex", "src/Text.lex.tex"]
build_root = ".lexlean"
lockfile = "lexlean.lock"
lean_workspace = "."
Expand Down
119 changes: 119 additions & 0 deletions lexlean-stdlib/src/Host.lex.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
\begin{lexlean}{Host}
\useglossary{lexlean.std.nat@1.2.0}
\title{Natural number addition}
\begin{semanticmodule}
inductive{
name: FailureKind,
type_parameters: [],
parameters: [],
constructors: [
{name: notFound, fields: []},
{name: alreadyExists, fields: []},
{name: denied, fields: []},
{name: other, fields: []}
]
}

structure{
name: Failure,
type_parameters: [],
parameters: [],
fields: [{name: kind, type: FailureKind}, {name: message, type: Bytes}]
}

inductive{
name: EntryKind,
type_parameters: [],
parameters: [],
constructors: [
{name: file, fields: []},
{name: directory, fields: []},
{name: symlink, fields: []},
{name: other, fields: []}
]
}

structure{
name: Entry,
type_parameters: [],
parameters: [],
fields: [
{name: kind, type: EntryKind},
{name: size, type: Nat},
{name: identity, type: (Option (Nat * Nat))}
]
}

structure{
name: Child,
type_parameters: [],
parameters: [],
fields: [
{name: program, type: String},
{name: arguments, type: (List String)},
{name: directory, type: String},
{name: environment, type: (List (String * String))},
{name: output, type: String},
{name: errors, type: String}
]
}

structure{
name: Waited,
type_parameters: [],
parameters: [],
fields: [{name: finished, type: (List (Nat * (Option Int32)))}, {name: clock, type: Nat}]
}

structure{
name: Start,
type_parameters: [],
parameters: [],
fields: [
{name: arguments, type: (List Bytes)},
{name: directory, type: (Result Bytes Failure)},
{name: executable, type: (Result Bytes Failure)},
{name: environment, type: (List (Bytes * Bytes))},
{name: terminal, type: Bool}
]
}

inductive{
name: Request,
type_parameters: [],
parameters: [],
constructors: [
{name: read, fields: [String]},
{name: write, fields: [String, Bytes]},
{name: list, fields: [String]},
{name: stat, fields: [String]},
{name: createDir, fields: [String]},
{name: removeFile, fields: [String]},
{name: removeTree, fields: [String]},
{name: rename, fields: [String, String]},
{name: canonical, fields: [String]},
{name: lock, fields: [String]},
{name: spawn, fields: [Child]},
{name: wait, fields: [(List Nat), Nat]},
{name: stop, fields: [Nat]},
{name: exit, fields: [UInt8, Bytes, Bytes]}
]
}

inductive{
name: Event,
type_parameters: [],
parameters: [],
constructors: [
{name: start, fields: [Start]},
{name: read, fields: [(Result Bytes Failure)]},
{name: finished, fields: [(Result Unit Failure)]},
{name: listed, fields: [(Result (List Bytes) Failure)]},
{name: stat, fields: [(Result Entry Failure)]},
{name: canonical, fields: [(Result Bytes Failure)]},
{name: spawned, fields: [(Result (Nat * Nat) Failure)]},
{name: waited, fields: [(Result Waited Failure)]}
]
}
\end{semanticmodule}
\end{lexlean}
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": "2b65d148edd23743910b58cab55618a335695d3f6947eb204311d5147cd386cc",
"pdf_sha256": "553b2db40b098aaf4b5046847d9b195e208bbf68deebf2ba834b390ed04d3e04",
"tex_sha256": "a7cd1807077baa1d1ca34015faf500a24477991859427f4db646e5f230fe54e2"
},
"Observations": {
"pdf_sha256": "cdcd4db4fe4b464b7da78b8be1f5c4fd3d253f79b77f002c001acf27a833a1b5",
"pdf_sha256": "1ac41064582a623131d181a4dbc1d8112329c001a9b2c94ba2413ce61ac05931",
"tex_sha256": "056820f37ac40133e341f46ad6c81125e35981150a1cc86f2063faad3f26fbd4"
},
"Paper": {
"pdf_sha256": "8f4176050ee19984a610004892c8d1b3479d6eadba7d19a3aaf373928ac7c21b",
"pdf_sha256": "652ede2e14e552a46893c304ae34fcf63ff47d3483de181cfc9ecf1ec345173c",
"tex_sha256": "000f988561d9621f9ba2f9a99aba971670864367ebd336e6fbad0e1f71da01cb"
}
},
"generated_at_utc": "2026-11-03T00:00:44.854506+00:00",
"source_digest": "997d8a43a5fd62e3cbd6d44f63a636f512a8ef005d15f021f15d3ee07da851e6"
"generated_at_utc": "2026-11-03T03:10:13.940417+00:00",
"source_digest": "88fb7ada0bad3d9d9c9e4dd70bc760f0ebc1d3b825d27508f2c6dd88d59f86a9"
}
6 changes: 3 additions & 3 deletions rule30-api/lexlean.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spec = "lexlean/lock/2"
language = "1.2"
compiler_semantics = "2a0617a236367ffb610a9b5957fa21759aec43c2e2bbd5c5ed71b28e0b0bc7e3"
compiler_semantics = "49a667a8078dc6a386940bc73ea1197f5dabf4236c4e57a1aaf70bccddfd556a"
project_config_sha256 = "7ec1ad7a10ac74a8485471bfd15147e5687f9032b696fde02f570f04599f71af"
lean_toolchain = "leanprover/lean4:v4.32.1"

Expand Down Expand Up @@ -72,6 +72,6 @@ version = "1.0.0"
kind = "path"
source = "lexlean-stdlib"
module_prefix = "LexLeanStd"
tree_sha256 = "dceb3a9391b4d49c2c35867575b0e5ec34775a22b8c7e97a862dfdb8a50e6ce6"
manifest_sha256 = "945d02157e58026507e00396223deec625183e26bdff8ef57bd36648ca7dc68a"
tree_sha256 = "c762d97c09459088fa875b4649e3922a44ee44725d68d7d9302462afaabf0125"
manifest_sha256 = "1d89879a58a3e4a76b64730a65b73386842ff7e66beb3dece7a5b148320c61e7"
imports = []
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 = "2a0617a236367ffb610a9b5957fa21759aec43c2e2bbd5c5ed71b28e0b0bc7e3"
revision = "49a667a8078dc6a386940bc73ea1197f5dabf4236c4e57a1aaf70bccddfd556a"
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 2a0617a23636"
version = "0.4.0, language 1.2, compiler semantics 49a667a8078d"
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": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -21,7 +21,7 @@
"root": "Rule30Api.Api.commands",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -34,7 +34,7 @@
"root": "Rule30Api.Discovery.buildColumns",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -47,7 +47,7 @@
"root": "Rule30Api.Discovery.findRecurrence",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -60,7 +60,7 @@
"root": "Rule30Api.Discovery.findRelations",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -73,7 +73,7 @@
"root": "Rule30Api.Engine.learnAll",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -86,7 +86,7 @@
"root": "Rule30Api.Engine.schedule",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -99,7 +99,7 @@
"root": "Rule30Api.Hypotheses.mint",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -112,7 +112,7 @@
"root": "Rule30Api.Rule30Core.center",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -125,7 +125,7 @@
"root": "Rule30Api.Rule30Core.centersFrom",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -138,7 +138,7 @@
"root": "Rule30Api.Rule30Core.rdiag",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -151,7 +151,7 @@
"root": "Rule30Api.Rule30Core.rows",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -164,7 +164,7 @@
"root": "Rule30Api.Rule30Core.rulerBackground",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -177,7 +177,7 @@
"root": "Rule30Api.Rule30Core.rulerFrom",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"id": "rust-std"
}
]
Expand All @@ -190,7 +190,7 @@
"root": "Rule30Api.Rule30Core.towerWord",
"targets": [
{
"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027",
"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c",
"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": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027", "id": "rust-std"}]
"targets": [{"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c", "id": "rust-std"}]
},
{
"package": {"name": "rule30_research_step", "version": "0.1.0"},
"root": "Rule30Api.Research.step",
"targets": [{"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027", "id": "rust-std"}]
"targets": [{"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c", "id": "rust-std"}]
},
{
"package": {"name": "rule30_research_initial", "version": "0.1.0"},
"root": "Rule30Api.ResearchCatalog.initial",
"targets": [{"digest": "e3db2e96823c5f2c710fdace992d11e5fbb6b63b1500045eff45f85eedf94027", "id": "rust-std"}]
"targets": [{"digest": "012071cfe87ce1a8e1334858ab92832a929aa9d70b7277f92e2c9d9c9eb1398c", "id": "rust-std"}]
}
],
"spec": "lexlean/production-request/1"
Expand Down
Loading
Loading