From 1d5a00ba64512e0d855b36e87bbd246faab16fa2 Mon Sep 17 00:00:00 2001 From: Alexander Flom Date: Sat, 14 Nov 2026 03:44:31 +0000 Subject: [PATCH 1/2] test: qualify Rule30 main with native Lean 4.32.2 compiler --- .github/lexlean-revision | 2 +- Rule30-Core.pdf | Bin 58973 -> 58973 bytes Rule30-Observations.pdf | Bin 273782 -> 273782 bytes Rule30-Paper.pdf | Bin 969094 -> 969094 bytes Rule30PrizeKit/lean/lean-toolchain | 2 +- lexlean-stdlib/lexlean.toml | 2 +- pdf-manifest.json | 10 +++++----- rule30-api/engine.lock | 12 ++++++------ rule30-api/engine.toml | 2 +- rule30-api/lean-toolchain | 2 +- rule30-api/lexlean.lock | 12 ++++++------ rule30-api/lexlean.toml | 2 +- rule30-api/model/dependencies.toml | 4 ++-- rule30-api/model/standards.toml | 4 ++-- rule30-api/prism.lock | 12 ++++++------ rule30-api/prism.toml | 2 +- rule30-api/src/ArtifactIdentity.lex.tex | 2 +- rule30-api/src/ArtifactIdentityTraces.lex.tex | 4 ++-- rule30-api/src/CompilerSnapshotTraces.lex.tex | 4 ++-- rule30-api/src/ResearchProject.lex.tex | 4 ++-- rule30-api/src/Standards.lex.tex | 6 +++--- rule30-bridge/lean-toolchain | 2 +- rule30-core-lean/lean-toolchain | 2 +- rule30-lexlean/Core.pdf | Bin 58973 -> 58973 bytes rule30-lexlean/lean-toolchain | 2 +- rule30-lexlean/lexlean.lock | 8 ++++---- rule30-lexlean/lexlean.toml | 2 +- rule30-lexlean/pdf/Core.pdf | Bin 58973 -> 58973 bytes rule30-paper/Observations.pdf | Bin 273782 -> 273782 bytes rule30-paper/Paper.pdf | Bin 969094 -> 969094 bytes rule30-paper/lean-toolchain | 2 +- rule30-paper/lexlean.lock | 8 ++++---- rule30-paper/lexlean.toml | 2 +- rule30-paper/pdf/Observations.pdf | Bin 273782 -> 273782 bytes rule30-paper/pdf/Paper.pdf | Bin 969094 -> 969094 bytes 35 files changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/lexlean-revision b/.github/lexlean-revision index f165d70..63ce6dd 100644 --- a/.github/lexlean-revision +++ b/.github/lexlean-revision @@ -1 +1 @@ -15c667bd36604c94c28e39502edec3fcad38e0ce +9fd01c31e40bb29577833825f902fafcceedb49a diff --git a/Rule30-Core.pdf b/Rule30-Core.pdf index 03313fd47766d7acb4a7a2dc8dac989f188f850a..16d399baa6103f84f67a1cfc4625ac8d443605b2 100644 GIT binary patch delta 124 zcmcb6hWYLp<_)uNs+bs<8X6c|L}_yA`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s%>o t;OydJY+&H*X5r@MWb9(>WNd0?;bdUsXlUT#Xl!ApU_(gB=Ca4nnE(q*BN_kz delta 124 zcmcb6hWYLp<_)uNsu&s>nphZGMrm^C`{t*(B$lKqXt-Dz85o%v0s%yF^ZuJ9oX&2B t#wG^NhNiA2X66=-Cax~7u4X0{7OrLnZpLQj2F`X0HiVRHE_?i(2>=D%BLV;b diff --git a/Rule30-Observations.pdf b/Rule30-Observations.pdf index b87ec2dd9c77a6f7cbd45dc36e9e2a99cafb1872..9c2293f4eaa627a7374cbf72615e5d9183adb202 100644 GIT binary patch delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y>?Q`Lh6X0a(-TEl#9*B5bs{V~c$^I!T@6i*%}rgL loXwqFjGbM9DvivHEnFNe%*~A~P3#nG2r1cKsmSt|8vu@%9+&_C delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y?1n~$CKg8K(-TEl#9*B5bs{V~c$`fw4INFKO{uWC%ymx diff --git a/Rule30PrizeKit/lean/lean-toolchain b/Rule30PrizeKit/lean/lean-toolchain index 2b61957..0ec5999 100644 --- a/Rule30PrizeKit/lean/lean-toolchain +++ b/Rule30PrizeKit/lean/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.32.1 +leanprover/lean4:v4.32.2 diff --git a/lexlean-stdlib/lexlean.toml b/lexlean-stdlib/lexlean.toml index 6e7d9e0..13dbcb0 100644 --- a/lexlean-stdlib/lexlean.toml +++ b/lexlean-stdlib/lexlean.toml @@ -7,7 +7,7 @@ entrypoints = ["src/Buffer.lex.tex", "src/Host.lex.tex", "src/Sha256.lex.tex", " build_root = ".lexlean" lockfile = "lexlean.lock" lean_workspace = "." -lean_toolchain = "leanprover/lean4:v4.32.1" +lean_toolchain = "leanprover/lean4:v4.32.2" [[lexicon_source]] package = "lexlean.std.nat" diff --git a/pdf-manifest.json b/pdf-manifest.json index d76af08..35986a7 100644 --- a/pdf-manifest.json +++ b/pdf-manifest.json @@ -1,18 +1,18 @@ { "documents": { "Core": { - "pdf_sha256": "0412d2a3bd4a1f856877b4576fa9d3c74cf20110254b3e8c08e88f9c513ef5c6", + "pdf_sha256": "ad2a355ae743f71da775d30a133d07e528b618176058e61c39a06f1b50739bf4", "tex_sha256": "a7cd1807077baa1d1ca34015faf500a24477991859427f4db646e5f230fe54e2" }, "Observations": { - "pdf_sha256": "4c3af528e93971b79c6ff12a31ac92ce502e40fe6c35656036156256a4739af6", + "pdf_sha256": "a418d5da42b05a1263003ba1471e70ce8879adbf2480cf64634f53522b122c76", "tex_sha256": "056820f37ac40133e341f46ad6c81125e35981150a1cc86f2063faad3f26fbd4" }, "Paper": { - "pdf_sha256": "28247b25fc3192f97ca2454315ae49530d4fb91cf7d363cb4cfee14c8e6291a6", + "pdf_sha256": "54fe39cc9bc55934b71bf54eda6c9dfacc1b59f07771cb655baa0314c870fde1", "tex_sha256": "000f988561d9621f9ba2f9a99aba971670864367ebd336e6fbad0e1f71da01cb" } }, - "generated_at_utc": "2026-11-11T21:48:32.936749+00:00", - "source_digest": "9290b3cca596a4281b852998983ea680eb6706ed332321ae9034b400112ea3e4" + "generated_at_utc": "2026-11-14T05:10:46.765644+00:00", + "source_digest": "6ba59795030e46f94be04aaee3bc95f1cd199b293a86c354608ca09e7c414427" } diff --git a/rule30-api/engine.lock b/rule30-api/engine.lock index 60d8cc6..474ed41 100644 --- a/rule30-api/engine.lock +++ b/rule30-api/engine.lock @@ -1,8 +1,8 @@ spec = "lexlean/lock/2" language = "1.2" -compiler_semantics = "601e9f4a1824bb6aacf7c3c2243d4b33aaa315abdebd5ceaf920d178e196019e" -project_config_sha256 = "e657308b6f36bd0a461676b914b7ca80da508a2dd954f09ddc1265a353e814aa" -lean_toolchain = "leanprover/lean4:v4.32.1" +compiler_semantics = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" +project_config_sha256 = "72f454b45ba782d5184178d9c55a9fa22b75f7ef0b858a2337831e7bca083a4e" +lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] path = "lake-manifest.json" @@ -14,7 +14,7 @@ sha256 = "45706f664f0356324c1969af458df9fb89e9b6c72ab31565f81689a8e36a862c" [[workspace_file]] path = "lean-toolchain" -sha256 = "8e3538e0ab5f81a3ee04927d8838c8c674e0e112838b4b3ce87ec218143276af" +sha256 = "2bdc48adfa58d0017e538a0ad117c5d73d35deec879978f909406a80c8037273" [[package]] id = "lexlean.core" @@ -72,6 +72,6 @@ version = "1.0.0" kind = "path" source = "lexlean-stdlib" module_prefix = "LexLeanStd" -tree_sha256 = "c762d97c09459088fa875b4649e3922a44ee44725d68d7d9302462afaabf0125" -manifest_sha256 = "1d89879a58a3e4a76b64730a65b73386842ff7e66beb3dece7a5b148320c61e7" +tree_sha256 = "7726865b469cbc3a44a9e29e7b370ae65daf9b8535bc05e5cb69cf9adc379011" +manifest_sha256 = "fffe191f20f243117d6f07dd7b237f78000a9fb4b8ea0e2bd43dc2cb1e2c9a5a" imports = [] diff --git a/rule30-api/engine.toml b/rule30-api/engine.toml index 8542182..b918fcb 100644 --- a/rule30-api/engine.toml +++ b/rule30-api/engine.toml @@ -7,7 +7,7 @@ entrypoints = ["src/Api.lex.tex", "src/Discovery.lex.tex", "src/Engine.lex.tex", build_root = ".lexlean" lockfile = "engine.lock" lean_workspace = "." -lean_toolchain = "leanprover/lean4:v4.32.1" +lean_toolchain = "leanprover/lean4:v4.32.2" [[lexicon_source]] package = "lexlean.std.bool" diff --git a/rule30-api/lean-toolchain b/rule30-api/lean-toolchain index 2b61957..0ec5999 100644 --- a/rule30-api/lean-toolchain +++ b/rule30-api/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.32.1 +leanprover/lean4:v4.32.2 diff --git a/rule30-api/lexlean.lock b/rule30-api/lexlean.lock index dc1b39e..e4e11d1 100644 --- a/rule30-api/lexlean.lock +++ b/rule30-api/lexlean.lock @@ -1,8 +1,8 @@ spec = "lexlean/lock/2" language = "1.2" -compiler_semantics = "601e9f4a1824bb6aacf7c3c2243d4b33aaa315abdebd5ceaf920d178e196019e" -project_config_sha256 = "6ceb296fae3095cf9f42d6c53a9eeeee55cf9df8e6e1eba87fd6248553fd000d" -lean_toolchain = "leanprover/lean4:v4.32.1" +compiler_semantics = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" +project_config_sha256 = "99ecdcaed78165fcbb3a81a0fb1b4902fe7cba10e078fd288a31dfb80b81bc94" +lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] path = "lake-manifest.json" @@ -14,7 +14,7 @@ sha256 = "45706f664f0356324c1969af458df9fb89e9b6c72ab31565f81689a8e36a862c" [[workspace_file]] path = "lean-toolchain" -sha256 = "8e3538e0ab5f81a3ee04927d8838c8c674e0e112838b4b3ce87ec218143276af" +sha256 = "2bdc48adfa58d0017e538a0ad117c5d73d35deec879978f909406a80c8037273" [[package]] id = "lexlean.core" @@ -82,6 +82,6 @@ version = "1.0.0" kind = "path" source = "lexlean-stdlib" module_prefix = "LexLeanStd" -tree_sha256 = "c762d97c09459088fa875b4649e3922a44ee44725d68d7d9302462afaabf0125" -manifest_sha256 = "1d89879a58a3e4a76b64730a65b73386842ff7e66beb3dece7a5b148320c61e7" +tree_sha256 = "7726865b469cbc3a44a9e29e7b370ae65daf9b8535bc05e5cb69cf9adc379011" +manifest_sha256 = "fffe191f20f243117d6f07dd7b237f78000a9fb4b8ea0e2bd43dc2cb1e2c9a5a" imports = [] diff --git a/rule30-api/lexlean.toml b/rule30-api/lexlean.toml index 2670335..f16edd2 100644 --- a/rule30-api/lexlean.toml +++ b/rule30-api/lexlean.toml @@ -7,7 +7,7 @@ entrypoints = ["src/Api.lex.tex", "src/Application.lex.tex", "src/Architecture.l build_root = ".lexlean" lockfile = "lexlean.lock" lean_workspace = "." -lean_toolchain = "leanprover/lean4:v4.32.1" +lean_toolchain = "leanprover/lean4:v4.32.2" [[lexicon_source]] package = "lexlean.std.bool" diff --git a/rule30-api/model/dependencies.toml b/rule30-api/model/dependencies.toml index 60cab0a..f7f85f5 100644 --- a/rule30-api/model/dependencies.toml +++ b/rule30-api/model/dependencies.toml @@ -4,14 +4,14 @@ spec = "prismpm/dependencies/1" id = "lexlean" version = "0.4.0" language = "1.2" -revision = "601e9f4a1824bb6aacf7c3c2243d4b33aaa315abdebd5ceaf920d178e196019e" +revision = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" source = "pinned-binary" role = "compiler" path = ".local/bin/lexlean" [[dependency]] id = "lean4" -version = "leanprover/lean4:v4.32.1" +version = "leanprover/lean4:v4.32.2" source = "elan" role = "kernel" diff --git a/rule30-api/model/standards.toml b/rule30-api/model/standards.toml index 3c8412f..a88f07b 100644 --- a/rule30-api/model/standards.toml +++ b/rule30-api/model/standards.toml @@ -250,7 +250,7 @@ release_scope = true id = "lean-4" name = "Lean 4 (the kernel)" authority = "https://github.com/leanprover/lean4" -version = "leanprover/lean4:v4.32.1" +version = "leanprover/lean4:v4.32.2" scope = "Every proved claim names a theorem the Lean kernel checked under propext and Quot.sound; the research modules are kernel-replayed with leanchecker." realized_by = ["Register", "axioms", "choice_audit", "frontier_check", "kappa", "module_build"] conformance = "bin/r30 frontier check; bin/r30 axioms ; bin/r30 choice-audit" @@ -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 601e9f4a1824" +version = "0.4.0, language 1.2, compiler semantics 59f64efe7278" 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" diff --git a/rule30-api/prism.lock b/rule30-api/prism.lock index 502a251..abbbe59 100644 --- a/rule30-api/prism.lock +++ b/rule30-api/prism.lock @@ -1,8 +1,8 @@ spec = "lexlean/lock/2" language = "1.2" -compiler_semantics = "601e9f4a1824bb6aacf7c3c2243d4b33aaa315abdebd5ceaf920d178e196019e" -project_config_sha256 = "5be3d746467888e11656a02f617645cd184be83ce93420866a335476b745b460" -lean_toolchain = "leanprover/lean4:v4.32.1" +compiler_semantics = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" +project_config_sha256 = "61dcf48e65daaeb6361a51f473cae777c65e5c08eae28af91e3fa39bc3b43423" +lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] path = "lake-manifest.json" @@ -14,7 +14,7 @@ sha256 = "45706f664f0356324c1969af458df9fb89e9b6c72ab31565f81689a8e36a862c" [[workspace_file]] path = "lean-toolchain" -sha256 = "8e3538e0ab5f81a3ee04927d8838c8c674e0e112838b4b3ce87ec218143276af" +sha256 = "2bdc48adfa58d0017e538a0ad117c5d73d35deec879978f909406a80c8037273" [[package]] id = "lexlean.core" @@ -82,6 +82,6 @@ version = "1.0.0" kind = "path" source = "lexlean-stdlib" module_prefix = "LexLeanStd" -tree_sha256 = "c762d97c09459088fa875b4649e3922a44ee44725d68d7d9302462afaabf0125" -manifest_sha256 = "1d89879a58a3e4a76b64730a65b73386842ff7e66beb3dece7a5b148320c61e7" +tree_sha256 = "7726865b469cbc3a44a9e29e7b370ae65daf9b8535bc05e5cb69cf9adc379011" +manifest_sha256 = "fffe191f20f243117d6f07dd7b237f78000a9fb4b8ea0e2bd43dc2cb1e2c9a5a" imports = [] diff --git a/rule30-api/prism.toml b/rule30-api/prism.toml index 53ea922..30f05dd 100644 --- a/rule30-api/prism.toml +++ b/rule30-api/prism.toml @@ -7,7 +7,7 @@ entrypoints = ["src/ResearchCatalog.lex.tex"] build_root = ".lexlean/prism" lockfile = "prism.lock" lean_workspace = "." -lean_toolchain = "leanprover/lean4:v4.32.1" +lean_toolchain = "leanprover/lean4:v4.32.2" [[lexicon_source]] package = "lexlean.std.bool" diff --git a/rule30-api/src/ArtifactIdentity.lex.tex b/rule30-api/src/ArtifactIdentity.lex.tex index bd8fe46..dc8a0bd 100644 --- a/rule30-api/src/ArtifactIdentity.lex.tex +++ b/rule30-api/src/ArtifactIdentity.lex.tex @@ -69,7 +69,7 @@ name: semanticMessage, parameters: [compiler : Bytes, linked : Bytes, closure : Bytes], result: Bytes, - body: (Json::append 0x6c65786c65616e2d73656d616e7469632d763100 (Json::append (frame 0x636f6d70696c65722d73656d616e74696373 compiler) (Json::append (frame 0x6c616e6775616765 0x312e32) (Json::append (frame 0x746f6f6c636861696e 0x6c65616e70726f7665722f6c65616e343a76342e33322e31) (Json::append (frame 0x6c696e6b65642d6972 linked) (frame 0x6c657869636f6e2d636c6f73757265 closure)))))), + body: (Json::append 0x6c65786c65616e2d73656d616e7469632d763100 (Json::append (frame 0x636f6d70696c65722d73656d616e74696373 compiler) (Json::append (frame 0x6c616e6775616765 0x312e32) (Json::append (frame 0x746f6f6c636861696e 0x6c65616e70726f7665722f6c65616e343a76342e33322e32) (Json::append (frame 0x6c696e6b65642d6972 linked) (frame 0x6c657869636f6e2d636c6f73757265 closure)))))), axioms: [], executable: true } diff --git a/rule30-api/src/ArtifactIdentityTraces.lex.tex b/rule30-api/src/ArtifactIdentityTraces.lex.tex index bdfeb83..08fa2e0 100644 --- a/rule30-api/src/ArtifactIdentityTraces.lex.tex +++ b/rule30-api/src/ArtifactIdentityTraces.lex.tex @@ -74,7 +74,7 @@ theorem{ name: semanticFraming, parameters: [], - statement: ((Toml::sameBytes (ArtifactIdentity::semanticMessage 0x1111111111111111111111111111111111111111111111111111111111111111 0x7b7d 0x5b5d) 0x6c65786c65616e2d73656d616e7469632d76310000000012636f6d70696c65722d73656d616e7469637300000000000000201111111111111111111111111111111111111111111111111111111111111111000000086c616e67756167650000000000000003312e3200000009746f6f6c636861696e00000000000000186c65616e70726f7665722f6c65616e343a76342e33322e31000000096c696e6b65642d697200000000000000027b7d0000000f6c657869636f6e2d636c6f7375726500000000000000025b5d) = true), + statement: ((Toml::sameBytes (ArtifactIdentity::semanticMessage 0x1111111111111111111111111111111111111111111111111111111111111111 0x7b7d 0x5b5d) 0x6c65786c65616e2d73656d616e7469632d76310000000012636f6d70696c65722d73656d616e7469637300000000000000201111111111111111111111111111111111111111111111111111111111111111000000086c616e67756167650000000000000003312e3200000009746f6f6c636861696e00000000000000186c65616e70726f7665722f6c65616e343a76342e33322e32000000096c696e6b65642d697200000000000000027b7d0000000f6c657869636f6e2d636c6f7375726500000000000000025b5d) = true), proof: decide{}, axioms: [] } @@ -82,7 +82,7 @@ theorem{ name: semanticHash, parameters: [], - statement: ((hasBytes (ArtifactIdentity::semantic 0x31313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131 (ctor Json::Value.object (nil (Bytes * Json::Value))) (ctor Json::Value.array (nil Json::Value)) 512 128) 0x37323161396339616232336430333831366437343361356662313731356130323530616432366235306439336636303561623366653333643631646663326265) = true), + statement: ((hasBytes (ArtifactIdentity::semantic 0x31313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131 (ctor Json::Value.object (nil (Bytes * Json::Value))) (ctor Json::Value.array (nil Json::Value)) 512 128) 0x66633165646663316237616538303365313832343038323936316463356161353738643735626239333432323065343132376136643237663931316562633537) = true), proof: decide{}, axioms: [Quot.sound, propext] } diff --git a/rule30-api/src/CompilerSnapshotTraces.lex.tex b/rule30-api/src/CompilerSnapshotTraces.lex.tex index 78044ac..f7731e0 100644 --- a/rule30-api/src/CompilerSnapshotTraces.lex.tex +++ b/rule30-api/src/CompilerSnapshotTraces.lex.tex @@ -21,7 +21,7 @@ name: snapshot, parameters: [], result: Bytes, - body: 0x7b22636f6d70696c65725f73656d616e746963735f6964223a2231313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131222c226c616e6775616765223a22312e32222c226c657869636f6e5f636c6f73757265223a7b7d2c226d6f64756c6573223a5b5d2c2273656d616e7469635f6964223a2231323832343634323638663461333466653233396462666237636236643864366436633235316234346639643865373738316635643862343532353432633039222c22736f757263655f6964223a2232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232222c2273706563223a226c65786c65616e2f73656d616e7469632d736e617073686f742f32227d0a, + body: 0x7b22636f6d70696c65725f73656d616e746963735f6964223a2231313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131222c226c616e6775616765223a22312e32222c226c657869636f6e5f636c6f73757265223a7b7d2c226d6f64756c6573223a5b5d2c2273656d616e7469635f6964223a2266343835663539616262333734323334333838643936656436663464663063623062393161323266333366643363316465346264646334376666333666623136222c22736f757263655f6964223a2232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232222c2273706563223a226c65786c65616e2f73656d616e7469632d736e617073686f742f32227d0a, axioms: [] } @@ -68,7 +68,7 @@ theorem{ name: metadataDoesNotSupplyAProofDeclaration, parameters: [], - statement: ((match (CompilerSnapshot::decode (snapshot) (compiler) 1024 16 256) | Option.none => false | Option.some data => ((Toml::sameBytes (project data semantic) 0x31323832343634323638663461333466653233396462666237636236643864366436633235316234346639643865373738316635643862343532353432633039) && (match (CandidateBinding::candidate (project data binding) 0x46697874757265 0x466978747572652e70726f6f66 1024 16) | Option.none => true | Option.some proof => false))) = true), + statement: ((match (CompilerSnapshot::decode (snapshot) (compiler) 1024 16 256) | Option.none => false | Option.some data => ((Toml::sameBytes (project data semantic) 0x66343835663539616262333734323334333838643936656436663464663063623062393161323266333366643363316465346264646334376666333666623136) && (match (CandidateBinding::candidate (project data binding) 0x46697874757265 0x466978747572652e70726f6f66 1024 16) | Option.none => true | Option.some proof => false))) = true), proof: decide{}, axioms: [Quot.sound, propext] } diff --git a/rule30-api/src/ResearchProject.lex.tex b/rule30-api/src/ResearchProject.lex.tex index 59c85b0..3d769c0 100644 --- a/rule30-api/src/ResearchProject.lex.tex +++ b/rule30-api/src/ResearchProject.lex.tex @@ -89,7 +89,7 @@ name: toolchain, parameters: [], result: Bytes, - body: 0x6c65616e70726f7665722f6c65616e343a76342e33322e310a, + body: 0x6c65616e70726f7665722f6c65616e343a76342e33322e320a, axioms: [], executable: true } @@ -98,7 +98,7 @@ name: manifest, parameters: [], result: Bytes, - body: 0x73706563203d20226c65786c65616e2f70726f6a6563742f31220a6e616d65203d202272756c6533302d72657365617263682d63616e646964617465220a6c616e6775616765203d2022312e32220a6d6f64756c655f707265666978203d202252756c65333043616e646964617465220a736f757263655f726f6f7473203d205b22737263225d0a656e747279706f696e7473203d205b227372632f43616e6469646174652e6c65782e746578225d0a6275696c645f726f6f74203d20222e6c65786c65616e220a6c6f636b66696c65203d20226c65786c65616e2e6c6f636b220a6c65616e5f776f726b7370616365203d20222e220a6c65616e5f746f6f6c636861696e203d20226c65616e70726f7665722f6c65616e343a76342e33322e31220a0a5b5b6c657869636f6e5f736f757263655d5d0a7061636b616765203d20226c65786c65616e2e7374642e626f6f6c220a6b696e64203d20226275696c74696e220a0a5b6c696d6974735d0a6d61785f66696c655f6279746573203d20383338383630380a6d61785f746f74616c5f736f757263655f6279746573203d2031363737373231360a6d61785f7072696d69746976655f61746f6d73203d20323030303030300a6d61785f746f6b656e5f6c6174746963655f6564676573203d20343030303030300a6d61785f70617273655f737461746573203d20343030303030300a6d61785f69725f6e6f646573203d20323030303030300a6d61785f73636f70655f6465707468203d20313032340a6d61785f696d706f72745f6465707468203d203132380a6d61785f646961676e6f7374696373203d203235360a6d61785f6368696c645f6f75747075745f6279746573203d2031363737373231360a6368696c645f74696d656f75745f6d73203d203630303030300a, + body: 0x73706563203d20226c65786c65616e2f70726f6a6563742f31220a6e616d65203d202272756c6533302d72657365617263682d63616e646964617465220a6c616e6775616765203d2022312e32220a6d6f64756c655f707265666978203d202252756c65333043616e646964617465220a736f757263655f726f6f7473203d205b22737263225d0a656e747279706f696e7473203d205b227372632f43616e6469646174652e6c65782e746578225d0a6275696c645f726f6f74203d20222e6c65786c65616e220a6c6f636b66696c65203d20226c65786c65616e2e6c6f636b220a6c65616e5f776f726b7370616365203d20222e220a6c65616e5f746f6f6c636861696e203d20226c65616e70726f7665722f6c65616e343a76342e33322e32220a0a5b5b6c657869636f6e5f736f757263655d5d0a7061636b616765203d20226c65786c65616e2e7374642e626f6f6c220a6b696e64203d20226275696c74696e220a0a5b6c696d6974735d0a6d61785f66696c655f6279746573203d20383338383630380a6d61785f746f74616c5f736f757263655f6279746573203d2031363737373231360a6d61785f7072696d69746976655f61746f6d73203d20323030303030300a6d61785f746f6b656e5f6c6174746963655f6564676573203d20343030303030300a6d61785f70617273655f737461746573203d20343030303030300a6d61785f69725f6e6f646573203d20323030303030300a6d61785f73636f70655f6465707468203d20313032340a6d61785f696d706f72745f6465707468203d203132380a6d61785f646961676e6f7374696373203d203235360a6d61785f6368696c645f6f75747075745f6279746573203d2031363737373231360a6368696c645f74696d656f75745f6d73203d203630303030300a, axioms: [], executable: true } diff --git a/rule30-api/src/Standards.lex.tex b/rule30-api/src/Standards.lex.tex index aec3e17..4c80c77 100644 --- a/rule30-api/src/Standards.lex.tex +++ b/rule30-api/src/Standards.lex.tex @@ -26,7 +26,7 @@ name: standards, parameters: [], result: (List Standard), - body: (cons (record Standard {id := "iso-42010", name := "ISO/IEC/IEEE 42010:2022, Architecture description", authority := "https://www.iso.org/standard/74393.html", version := "2022", scope := "Stakeholders, concerns, viewpoints and views of the proof effort on Foundation.Arch; every panel of the site is governed by a viewpoint.", realizedBy := (cons "Architecture" (cons "architecture-module" (cons "Presentation" (nil String)))), conformance := "bin/r30 verify api: everyConcernFramed, viewpointsFrameHeldConcerns, everyViewpointGovernsAView (Architecture), panelsGovernedByViewpoints (Presentation)", coverage := "implemented"}) (cons (record Standard {id := "iso-25010", name := "ISO/IEC 25010:2023, Product quality model", authority := "https://www.iso.org/standard/78176.html", version := "2023", scope := "What an optimal implementation is here: characteristics, subcharacteristics, requirements and measures with thresholds on Foundation.Qual, each measure naming the command that reports it.", realizedBy := (cons "Architecture" (cons "quality" (cons "architecture-module" (cons "api_check" (cons "check" (cons "choice_audit" (cons "frontier_check" (cons "gate" (cons "verify" (cons "view_render" (nil String))))))))))), conformance := "bin/r30 verify api: everyRequirementMeasured, everyMeasureCommandExists (Architecture), publicationWithinBudget (Application)", coverage := "implemented"}) (cons (record Standard {id := "wcag-2.2", name := "W3C WCAG 2.2, Web Content Accessibility Guidelines", authority := "https://www.w3.org/TR/WCAG22/", version := "2.2 (Recommendation, 2023-10-05)", scope := "The site at level AA: 4.5:1 text contrast in both themes, one visible focus ring, a skip link, reduced motion honoured, keyboard operation of every control and step.", realizedBy := (cons "site" (cons "picture" (cons "explainer" (cons "reduction-tree" (cons "register" (cons "open-leaves" (cons "paper" (cons "obligation" (cons "refutations" (cons "interface-sheets" (cons "modules" (cons "quality" (cons "sitemap" (cons "verify" (cons "standards" (cons "model" (cons "design" (cons "viz-triangle" (cons "viz-tower" (cons "viz-ledger" (cons "viz-rays" (cons "viz-defects" (cons "viz-dyadic" (cons "nav-primary" (cons "nav-breadcrumb" (cons "nav-stepper" (nil String))))))))))))))))))))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.AccessibilityTests (contrast measured from the stylesheet, landmarks, focus, motion, keyboard)", coverage := "implemented"}) (cons (record Standard {id := "wai-aria-1.2", name := "W3C WAI-ARIA 1.2 and the ARIA Authoring Practices Guide", authority := "https://www.w3.org/TR/wai-aria-1.2/", version := "1.2 (Recommendation, 2023-06-06); APG patterns", scope := "The navigation of the site: the primary navigation, the breadcrumb and the stepper follow the APG patterns (roles, aria-current, arrow keys), the status region is live.", realizedBy := (cons "site" (cons "nav-primary" (cons "nav-breadcrumb" (cons "nav-stepper" (nil String))))), conformance := "python3 -m unittest scripts.tests.test_r30.AccessibilityTests (role, aria-current, aria-pressed, role=status, arrow keys)", coverage := "implemented"}) (cons (record Standard {id := "html-living-standard", name := "WHATWG HTML Living Standard", authority := "https://html.spec.whatwg.org/multipage/", version := "living standard", scope := "The page's landmarks (header, nav, main, footer), the one-document site with its data in a JSON script element and its metadata in the head.", realizedBy := (cons "site" (cons "nav-primary" (cons "nav-breadcrumb" (cons "nav-stepper" (nil String))))), conformance := "python3 -m unittest scripts.tests.test_r30.AccessibilityTests.test_landmarks_focus_motion_and_keyboard", coverage := "implemented"}) (cons (record Standard {id := "svg-2", name := "W3C SVG 2", authority := "https://www.w3.org/TR/SVG2/", version := "2 (Candidate Recommendation, 2018-10-04)", scope := "The Rule 30 picture, the logo and the visualizations are SVG documents with a title and a description, crisp cells, colours from the page's tokens.", realizedBy := (cons "picture" (cons "logo" (cons "viz-triangle" (cons "viz-tower" (cons "viz-ledger" (cons "viz-rays" (cons "viz-defects" (cons "viz-dyadic" (nil String))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.SiteTests.test_rule30_rows_and_logo (parsed as SVG, no script)", coverage := "implemented"}) (cons (record Standard {id := "wai-aria-graphics-1.0", name := "W3C WAI-ARIA Graphics Module 1.0", authority := "https://www.w3.org/TR/graphics-aria-1.0/", version := "1.0 (Recommendation, 2018-10-02)", scope := "Every drawing carries role=img with aria-labelledby pointing at its title and description; the interactive visualizations use graphics-document and graphics-symbol.", realizedBy := (cons "picture" (cons "logo" (cons "viz-triangle" (cons "viz-tower" (cons "viz-ledger" (cons "viz-rays" (cons "viz-defects" (cons "viz-dyadic" (nil String))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.SiteTests.test_statements_picture_and_explainer_artifacts (role=img, aria-labelledby)", coverage := "implemented"}) (cons (record Standard {id := "schema-org", name := "schema.org vocabulary (JSON-LD)", authority := "https://schema.org/", version := "current release (https://schema.org/docs/releases.html)", scope := "A LearningResource for every pedagogical step of every journey, the paper as ScholarlyArticle, the repository as SoftwareSourceCode, the register as Dataset, embedded in the page and published as schema.json.", realizedBy := (cons "jsonld" (cons "site" (cons "paper-pdf" (cons "register-json" (cons "readme" (cons "prize-review" (cons "research-session" (cons "reading" (cons "stdlib-feedback" (cons "mathematics" (cons "first-visit" (nil String)))))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_schema_org_describes_every_step_the_paper_the_repository_and_the_register", coverage := "implemented"}) (cons (record Standard {id := "json-ld-1.1", name := "W3C JSON-LD 1.1", authority := "https://www.w3.org/TR/json-ld11/", version := "1.1 (Recommendation, 2020-07-16)", scope := "The serialization of the schema.org and PROV-O graphs: a @context, a @graph, ids under the published URL.", realizedBy := (cons "jsonld" (cons "provenance" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests (both documents parse and carry @context and @graph)", coverage := "implemented"}) (cons (record Standard {id := "prov-o", name := "W3C PROV-O, the PROV Ontology", authority := "https://www.w3.org/TR/prov-o/", version := "Recommendation, 2013-04-30", scope := "Provenance of every claim: a proved claim prov:wasDerivedFrom its Lean theorem and prov:wasAttributedTo the Lean kernel, attested by the paper's LexLean attestation and the module's kappa-label; the view prov:wasGeneratedBy the render of this commit under the view workflow.", realizedBy := (cons "provenance" (cons "view-workflow" (cons "view_render" (cons "frontier_check" (cons "kappa" (cons "verify" (nil String))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_provenance_derives_every_proved_claim_from_its_theorem", coverage := "implemented"}) (cons (record Standard {id := "json-schema-2020-12", name := "JSON Schema 2020-12", authority := "https://json-schema.org/draft/2020-12/schema", version := "2020-12", scope := "The closed schemas of register.json, the interface sheets, standards.json and the --json reports (rule30-api/schemas), validated by the tests and referenced from openapi.json.", realizedBy := (cons "register-json" (cons "standards" (cons "openapi" (cons "api_check" (cons "api_production" (cons "brief" (cons "chain" (cons "claim" (cons "deduce" (cons "discover" (cons "engine_prune" (cons "engine_status" (cons "engine_tick" (cons "frontier_list" (cons "interface" (cons "kappa" (cons "sequences" (cons "status" (nil String))))))))))))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.ResultSchemaTests; bin/r30 api check", coverage := "implemented"}) (cons (record Standard {id := "openapi-3.1", name := "OpenAPI Specification 3.1", authority := "https://spec.openapis.org/oas/v3.1.1", version := "3.1.1 (2024-10-24)", scope := "The r30 command surface as an API description: one path per command of the parser, its arguments as parameters, its responses from the result schemas, the same leaves as Api.lex.tex and the MCP tools.", realizedBy := (prim append (cons "openapi" (cons "status" (cons "brief" (cons "chain" (cons "api_sync" (cons "api_check" (cons "api_production" (cons "view_render" (cons "interface" (cons "claim" (cons "audit" (cons "gate" (cons "lexicon_search" (cons "lexicon_show" (cons "lexicon_packages" (cons "sig" (cons "mentions" (cons "theorem_preview" (cons "theorem_add" (cons "theorem_remove" (cons "define" (cons "check" (cons "unpublished" (cons "selfcheck" (cons "verify" (cons "probe" (cons "axioms" (cons "choice_audit" (cons "frontier_list" (cons "frontier_add" (cons "frontier_set" (cons "frontier_check" (cons "frontier_render" (cons "commit" (cons "module_list" (cons "module_add" (cons "module_build" (cons "consolidate" (cons "kappa" (cons "sequences" (nil String))))))))))))))))))))))))))))))))))))))))) (cons "discover" (cons "deduce" (cons "engine_tick" (cons "engine_status" (cons "engine_hypotheses" (cons "engine_prune" (cons "experiment_list" (cons "experiment_run" (nil String))))))))) : (List String)), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_openapi_describes_the_command_surface; bin/r30 api check (Api.lex.tex)", coverage := "implemented"}) (cons (record Standard {id := "gherkin", name := "Gherkin (Cucumber reference)", authority := "https://cucumber.io/docs/gherkin/reference/", version := "Gherkin reference (current)", scope := "One scenario per conformance id in features/suites, tagged with the id and its honesty level, generated with the registers.", realizedBy := (cons "api_sync" (cons "api_check" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.ConformanceTests; bin/r30 api check", coverage := "implemented"}) (cons (record Standard {id := "citation-cff", name := "Citation File Format 1.2.0", authority := "https://citation-file-format.github.io/", version := "1.2.0", scope := "CITATION.cff at the repository root (and copied into the view): the author, the title of the paper, the repository and the published view.", realizedBy := (cons "citation" (cons "readme" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_citation_file_names_the_author_the_title_and_the_repository", coverage := "implemented"}) (cons (record Standard {id := "spdx", name := "SPDX License Expressions (SPDX 2.3, ISO/IEC 5962:2021)", authority := "https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/", version := "2.3", scope := "License identifiers of the vendored sources: the repository is MIT (LICENSE at the root, `license: MIT` in CITATION.cff); the prism-stdlib register carries the SPDX expression of its vendored license files.", realizedBy := (cons "stdlib-package" (cons "citation" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_spdx_expressions_are_well_formed", coverage := "implemented"}) (cons (record Standard {id := "sitemap-protocol", name := "Sitemaps XML protocol 0.9", authority := "https://www.sitemaps.org/protocol.html", version := "0.9", scope := "sitemap.xml: the page and the deep link of every step of every journey; robots.txt names the sitemap.", realizedBy := (cons "sitemap" (cons "robots" (cons "site" (cons "prize-review" (cons "research-session" (cons "reading" (cons "stdlib-feedback" (cons "mathematics" (cons "first-visit" (nil String)))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_sitemap_lists_every_step_deep_link", coverage := "implemented"}) (cons (record Standard {id := "open-graph", name := "The Open Graph protocol", authority := "https://ogp.me/", version := "ogp.me (2014-10)", scope := "og:title, og:type, og:url, og:description and og:image in the page's head, injected with the JSON-LD at render.", realizedBy := (cons "site" (cons "logo" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_site_head_carries_json_ld_and_open_graph", coverage := "implemented"}) (cons (record Standard {id := "rfc-8785", name := "RFC 8785, JSON Canonicalization Scheme (JCS)", authority := "https://www.rfc-editor.org/rfc/rfc8785", version := "2020-06", scope := "The identity of the published JSON contracts (sha256-canonical-json in contracts.toml) and the canonical JSON of the LexLean attestations; uor-addr labels JSON under JCS.", realizedBy := (cons "register-json" (cons "statements" (cons "kappa" (nil String)))), conformance := "python3 -m unittest scripts.tests.test_kappa (the no-prefix rule on the JCS vector)", coverage := "implemented"}) (cons (record Standard {id := "rivest-csexp", name := "Rivest, S-Expressions (canonical form, section 4.3)", authority := "https://people.csail.mit.edu/rivest/Sexp.txt", version := "draft-rivest-sexp-00, 1997-05-04", scope := "The kappa-label of a research module: the SHA-256 of the canonical S-expression of the declarations the kernel replays, as UOR-Foundation/uor-addr mints labels; the key of the replay receipts. The same canonical form labels the sequences of the basis, (sequence ), their transforms and the relations the discovery engines find, (relation ).", realizedBy := (cons "kappa" (cons "provenance" (cons "sequences" (cons "discover" (cons "Sequences" (cons "Discovery" (nil String))))))), conformance := "python3 -m unittest scripts.tests.test_kappa; bin/r30 kappa ; bin/r30 api check (sequences)", coverage := "implemented"}) (cons (record Standard {id := "in-toto-statement-v1", name := "in-toto Attestation Framework, Statement v1", authority := "https://github.com/in-toto/attestation/blob/main/spec/v1/statement.md", version := "v1", scope := "attestations.intoto.json: a Statement whose subjects are the attested PDFs and the paper's sources with their SHA-256 digests and whose predicate is the paper's LexLean attestation.", realizedBy := (cons "attestations" (cons "pdf-manifest" (cons "verify" (cons "paper-pdf" (cons "observations-pdf" (cons "core-pdf" (nil String))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_in_toto_statement_subjects_are_the_attested_documents", coverage := "implemented"}) (cons (record Standard {id := "oci-distribution", name := "OCI Distribution Specification", authority := "https://github.com/opencontainers/distribution-spec/blob/main/spec.md", version := "1.1.0 (2024-02)", scope := "Planned: a kappa-registry serving the replay receipts and certified bundles by content address; today only the kappa-labels that would address them exist.", realizedBy := (cons "kappa" (nil String)), conformance := "bin/r30 kappa (the labels); no registry runs yet", coverage := "planned"}) (cons (record Standard {id := "iana-media-types", name := "IANA Media Types (RFC 6838)", authority := "https://www.iana.org/assignments/media-types/", version := "RFC 6838 (2013-01)", scope := "Every published artifact declares its media type in Presentation.lex.tex; the contracts register declares the vendor types of the JSON reports.", realizedBy := (prim append (cons "chain" (cons "register-json" (cons "register-text" (cons "frontier" (cons "interfaces" (cons "statements" (cons "explainer" (cons "picture" (cons "paper-pdf" (cons "observations-pdf" (cons "core-pdf" (cons "pdf-manifest" (cons "api-module" (cons "register-module" (cons "architecture-module" (cons "presentation-module" (cons "application-module" (cons "core-vectors" (cons "frontier-module" (cons "agents" (cons "round-workflow" (cons "strategy" (cons "readme" (cons "logo" (cons "standards" (cons "standards-module" (cons "openapi" (cons "sitemap" (cons "robots" (cons "provenance" (cons "jsonld" (cons "attestations" (cons "citation" (cons "observer-module" (cons "tokens" (cons "site" (cons "viz-core-js" (cons "viz-triangle-js" (cons "viz-tower-js" (cons "viz-ledger-js" (nil String))))))))))))))))))))))))))))))))))))))))) (cons "viz-rays-js" (cons "viz-defects-js" (cons "viz-dyadic-js" (nil String)))) : (List String)), conformance := "bin/r30 verify api: artifactPathsDistinct, panelsReadArtifacts (Presentation); python3 -m unittest scripts.tests.test_r30.StandardsTests", coverage := "implemented"}) (cons (record Standard {id := "lean-4", name := "Lean 4 (the kernel)", authority := "https://github.com/leanprover/lean4", version := "leanprover/lean4:v4.32.1", scope := "Every proved claim names a theorem the Lean kernel checked under propext and Quot.sound; the research modules are kernel-replayed with leanchecker.", realizedBy := (cons "Register" (cons "axioms" (cons "choice_audit" (cons "frontier_check" (cons "kappa" (cons "module_build" (nil String))))))), conformance := "bin/r30 frontier check; bin/r30 axioms ; bin/r30 choice-audit", coverage := "implemented"}) (cons (record Standard {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 601e9f4a1824", 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.", realizedBy := (cons "Api" (cons "Register" (cons "Architecture" (cons "Presentation" (cons "Application" (cons "Observer" (cons "Convert" (cons "Standards" (cons "Rule30Core" (cons "Sequences" (cons "Discovery" (cons "verify" (cons "check" (cons "api_sync" (cons "api_check" (cons "api_production" (nil String))))))))))))))))), conformance := "bin/r30 verify api; bin/r30 check api; bin/r30 api check", coverage := "implemented"}) (nil Standard))))))))))))))))))))))))), + body: (cons (record Standard {id := "iso-42010", name := "ISO/IEC/IEEE 42010:2022, Architecture description", authority := "https://www.iso.org/standard/74393.html", version := "2022", scope := "Stakeholders, concerns, viewpoints and views of the proof effort on Foundation.Arch; every panel of the site is governed by a viewpoint.", realizedBy := (cons "Architecture" (cons "architecture-module" (cons "Presentation" (nil String)))), conformance := "bin/r30 verify api: everyConcernFramed, viewpointsFrameHeldConcerns, everyViewpointGovernsAView (Architecture), panelsGovernedByViewpoints (Presentation)", coverage := "implemented"}) (cons (record Standard {id := "iso-25010", name := "ISO/IEC 25010:2023, Product quality model", authority := "https://www.iso.org/standard/78176.html", version := "2023", scope := "What an optimal implementation is here: characteristics, subcharacteristics, requirements and measures with thresholds on Foundation.Qual, each measure naming the command that reports it.", realizedBy := (cons "Architecture" (cons "quality" (cons "architecture-module" (cons "api_check" (cons "check" (cons "choice_audit" (cons "frontier_check" (cons "gate" (cons "verify" (cons "view_render" (nil String))))))))))), conformance := "bin/r30 verify api: everyRequirementMeasured, everyMeasureCommandExists (Architecture), publicationWithinBudget (Application)", coverage := "implemented"}) (cons (record Standard {id := "wcag-2.2", name := "W3C WCAG 2.2, Web Content Accessibility Guidelines", authority := "https://www.w3.org/TR/WCAG22/", version := "2.2 (Recommendation, 2023-10-05)", scope := "The site at level AA: 4.5:1 text contrast in both themes, one visible focus ring, a skip link, reduced motion honoured, keyboard operation of every control and step.", realizedBy := (cons "site" (cons "picture" (cons "explainer" (cons "reduction-tree" (cons "register" (cons "open-leaves" (cons "paper" (cons "obligation" (cons "refutations" (cons "interface-sheets" (cons "modules" (cons "quality" (cons "sitemap" (cons "verify" (cons "standards" (cons "model" (cons "design" (cons "viz-triangle" (cons "viz-tower" (cons "viz-ledger" (cons "viz-rays" (cons "viz-defects" (cons "viz-dyadic" (cons "nav-primary" (cons "nav-breadcrumb" (cons "nav-stepper" (nil String))))))))))))))))))))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.AccessibilityTests (contrast measured from the stylesheet, landmarks, focus, motion, keyboard)", coverage := "implemented"}) (cons (record Standard {id := "wai-aria-1.2", name := "W3C WAI-ARIA 1.2 and the ARIA Authoring Practices Guide", authority := "https://www.w3.org/TR/wai-aria-1.2/", version := "1.2 (Recommendation, 2023-06-06); APG patterns", scope := "The navigation of the site: the primary navigation, the breadcrumb and the stepper follow the APG patterns (roles, aria-current, arrow keys), the status region is live.", realizedBy := (cons "site" (cons "nav-primary" (cons "nav-breadcrumb" (cons "nav-stepper" (nil String))))), conformance := "python3 -m unittest scripts.tests.test_r30.AccessibilityTests (role, aria-current, aria-pressed, role=status, arrow keys)", coverage := "implemented"}) (cons (record Standard {id := "html-living-standard", name := "WHATWG HTML Living Standard", authority := "https://html.spec.whatwg.org/multipage/", version := "living standard", scope := "The page's landmarks (header, nav, main, footer), the one-document site with its data in a JSON script element and its metadata in the head.", realizedBy := (cons "site" (cons "nav-primary" (cons "nav-breadcrumb" (cons "nav-stepper" (nil String))))), conformance := "python3 -m unittest scripts.tests.test_r30.AccessibilityTests.test_landmarks_focus_motion_and_keyboard", coverage := "implemented"}) (cons (record Standard {id := "svg-2", name := "W3C SVG 2", authority := "https://www.w3.org/TR/SVG2/", version := "2 (Candidate Recommendation, 2018-10-04)", scope := "The Rule 30 picture, the logo and the visualizations are SVG documents with a title and a description, crisp cells, colours from the page's tokens.", realizedBy := (cons "picture" (cons "logo" (cons "viz-triangle" (cons "viz-tower" (cons "viz-ledger" (cons "viz-rays" (cons "viz-defects" (cons "viz-dyadic" (nil String))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.SiteTests.test_rule30_rows_and_logo (parsed as SVG, no script)", coverage := "implemented"}) (cons (record Standard {id := "wai-aria-graphics-1.0", name := "W3C WAI-ARIA Graphics Module 1.0", authority := "https://www.w3.org/TR/graphics-aria-1.0/", version := "1.0 (Recommendation, 2018-10-02)", scope := "Every drawing carries role=img with aria-labelledby pointing at its title and description; the interactive visualizations use graphics-document and graphics-symbol.", realizedBy := (cons "picture" (cons "logo" (cons "viz-triangle" (cons "viz-tower" (cons "viz-ledger" (cons "viz-rays" (cons "viz-defects" (cons "viz-dyadic" (nil String))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.SiteTests.test_statements_picture_and_explainer_artifacts (role=img, aria-labelledby)", coverage := "implemented"}) (cons (record Standard {id := "schema-org", name := "schema.org vocabulary (JSON-LD)", authority := "https://schema.org/", version := "current release (https://schema.org/docs/releases.html)", scope := "A LearningResource for every pedagogical step of every journey, the paper as ScholarlyArticle, the repository as SoftwareSourceCode, the register as Dataset, embedded in the page and published as schema.json.", realizedBy := (cons "jsonld" (cons "site" (cons "paper-pdf" (cons "register-json" (cons "readme" (cons "prize-review" (cons "research-session" (cons "reading" (cons "stdlib-feedback" (cons "mathematics" (cons "first-visit" (nil String)))))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_schema_org_describes_every_step_the_paper_the_repository_and_the_register", coverage := "implemented"}) (cons (record Standard {id := "json-ld-1.1", name := "W3C JSON-LD 1.1", authority := "https://www.w3.org/TR/json-ld11/", version := "1.1 (Recommendation, 2020-07-16)", scope := "The serialization of the schema.org and PROV-O graphs: a @context, a @graph, ids under the published URL.", realizedBy := (cons "jsonld" (cons "provenance" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests (both documents parse and carry @context and @graph)", coverage := "implemented"}) (cons (record Standard {id := "prov-o", name := "W3C PROV-O, the PROV Ontology", authority := "https://www.w3.org/TR/prov-o/", version := "Recommendation, 2013-04-30", scope := "Provenance of every claim: a proved claim prov:wasDerivedFrom its Lean theorem and prov:wasAttributedTo the Lean kernel, attested by the paper's LexLean attestation and the module's kappa-label; the view prov:wasGeneratedBy the render of this commit under the view workflow.", realizedBy := (cons "provenance" (cons "view-workflow" (cons "view_render" (cons "frontier_check" (cons "kappa" (cons "verify" (nil String))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_provenance_derives_every_proved_claim_from_its_theorem", coverage := "implemented"}) (cons (record Standard {id := "json-schema-2020-12", name := "JSON Schema 2020-12", authority := "https://json-schema.org/draft/2020-12/schema", version := "2020-12", scope := "The closed schemas of register.json, the interface sheets, standards.json and the --json reports (rule30-api/schemas), validated by the tests and referenced from openapi.json.", realizedBy := (cons "register-json" (cons "standards" (cons "openapi" (cons "api_check" (cons "api_production" (cons "brief" (cons "chain" (cons "claim" (cons "deduce" (cons "discover" (cons "engine_prune" (cons "engine_status" (cons "engine_tick" (cons "frontier_list" (cons "interface" (cons "kappa" (cons "sequences" (cons "status" (nil String))))))))))))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.ResultSchemaTests; bin/r30 api check", coverage := "implemented"}) (cons (record Standard {id := "openapi-3.1", name := "OpenAPI Specification 3.1", authority := "https://spec.openapis.org/oas/v3.1.1", version := "3.1.1 (2024-10-24)", scope := "The r30 command surface as an API description: one path per command of the parser, its arguments as parameters, its responses from the result schemas, the same leaves as Api.lex.tex and the MCP tools.", realizedBy := (prim append (cons "openapi" (cons "status" (cons "brief" (cons "chain" (cons "api_sync" (cons "api_check" (cons "api_production" (cons "view_render" (cons "interface" (cons "claim" (cons "audit" (cons "gate" (cons "lexicon_search" (cons "lexicon_show" (cons "lexicon_packages" (cons "sig" (cons "mentions" (cons "theorem_preview" (cons "theorem_add" (cons "theorem_remove" (cons "define" (cons "check" (cons "unpublished" (cons "selfcheck" (cons "verify" (cons "probe" (cons "axioms" (cons "choice_audit" (cons "frontier_list" (cons "frontier_add" (cons "frontier_set" (cons "frontier_check" (cons "frontier_render" (cons "commit" (cons "module_list" (cons "module_add" (cons "module_build" (cons "consolidate" (cons "kappa" (cons "sequences" (nil String))))))))))))))))))))))))))))))))))))))))) (cons "discover" (cons "deduce" (cons "engine_tick" (cons "engine_status" (cons "engine_hypotheses" (cons "engine_prune" (cons "experiment_list" (cons "experiment_run" (nil String))))))))) : (List String)), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_openapi_describes_the_command_surface; bin/r30 api check (Api.lex.tex)", coverage := "implemented"}) (cons (record Standard {id := "gherkin", name := "Gherkin (Cucumber reference)", authority := "https://cucumber.io/docs/gherkin/reference/", version := "Gherkin reference (current)", scope := "One scenario per conformance id in features/suites, tagged with the id and its honesty level, generated with the registers.", realizedBy := (cons "api_sync" (cons "api_check" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.ConformanceTests; bin/r30 api check", coverage := "implemented"}) (cons (record Standard {id := "citation-cff", name := "Citation File Format 1.2.0", authority := "https://citation-file-format.github.io/", version := "1.2.0", scope := "CITATION.cff at the repository root (and copied into the view): the author, the title of the paper, the repository and the published view.", realizedBy := (cons "citation" (cons "readme" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_citation_file_names_the_author_the_title_and_the_repository", coverage := "implemented"}) (cons (record Standard {id := "spdx", name := "SPDX License Expressions (SPDX 2.3, ISO/IEC 5962:2021)", authority := "https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/", version := "2.3", scope := "License identifiers of the vendored sources: the repository is MIT (LICENSE at the root, `license: MIT` in CITATION.cff); the prism-stdlib register carries the SPDX expression of its vendored license files.", realizedBy := (cons "stdlib-package" (cons "citation" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_spdx_expressions_are_well_formed", coverage := "implemented"}) (cons (record Standard {id := "sitemap-protocol", name := "Sitemaps XML protocol 0.9", authority := "https://www.sitemaps.org/protocol.html", version := "0.9", scope := "sitemap.xml: the page and the deep link of every step of every journey; robots.txt names the sitemap.", realizedBy := (cons "sitemap" (cons "robots" (cons "site" (cons "prize-review" (cons "research-session" (cons "reading" (cons "stdlib-feedback" (cons "mathematics" (cons "first-visit" (nil String)))))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_sitemap_lists_every_step_deep_link", coverage := "implemented"}) (cons (record Standard {id := "open-graph", name := "The Open Graph protocol", authority := "https://ogp.me/", version := "ogp.me (2014-10)", scope := "og:title, og:type, og:url, og:description and og:image in the page's head, injected with the JSON-LD at render.", realizedBy := (cons "site" (cons "logo" (nil String))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_site_head_carries_json_ld_and_open_graph", coverage := "implemented"}) (cons (record Standard {id := "rfc-8785", name := "RFC 8785, JSON Canonicalization Scheme (JCS)", authority := "https://www.rfc-editor.org/rfc/rfc8785", version := "2020-06", scope := "The identity of the published JSON contracts (sha256-canonical-json in contracts.toml) and the canonical JSON of the LexLean attestations; uor-addr labels JSON under JCS.", realizedBy := (cons "register-json" (cons "statements" (cons "kappa" (nil String)))), conformance := "python3 -m unittest scripts.tests.test_kappa (the no-prefix rule on the JCS vector)", coverage := "implemented"}) (cons (record Standard {id := "rivest-csexp", name := "Rivest, S-Expressions (canonical form, section 4.3)", authority := "https://people.csail.mit.edu/rivest/Sexp.txt", version := "draft-rivest-sexp-00, 1997-05-04", scope := "The kappa-label of a research module: the SHA-256 of the canonical S-expression of the declarations the kernel replays, as UOR-Foundation/uor-addr mints labels; the key of the replay receipts. The same canonical form labels the sequences of the basis, (sequence ), their transforms and the relations the discovery engines find, (relation ).", realizedBy := (cons "kappa" (cons "provenance" (cons "sequences" (cons "discover" (cons "Sequences" (cons "Discovery" (nil String))))))), conformance := "python3 -m unittest scripts.tests.test_kappa; bin/r30 kappa ; bin/r30 api check (sequences)", coverage := "implemented"}) (cons (record Standard {id := "in-toto-statement-v1", name := "in-toto Attestation Framework, Statement v1", authority := "https://github.com/in-toto/attestation/blob/main/spec/v1/statement.md", version := "v1", scope := "attestations.intoto.json: a Statement whose subjects are the attested PDFs and the paper's sources with their SHA-256 digests and whose predicate is the paper's LexLean attestation.", realizedBy := (cons "attestations" (cons "pdf-manifest" (cons "verify" (cons "paper-pdf" (cons "observations-pdf" (cons "core-pdf" (nil String))))))), conformance := "python3 -m unittest scripts.tests.test_r30.StandardsTests.test_in_toto_statement_subjects_are_the_attested_documents", coverage := "implemented"}) (cons (record Standard {id := "oci-distribution", name := "OCI Distribution Specification", authority := "https://github.com/opencontainers/distribution-spec/blob/main/spec.md", version := "1.1.0 (2024-02)", scope := "Planned: a kappa-registry serving the replay receipts and certified bundles by content address; today only the kappa-labels that would address them exist.", realizedBy := (cons "kappa" (nil String)), conformance := "bin/r30 kappa (the labels); no registry runs yet", coverage := "planned"}) (cons (record Standard {id := "iana-media-types", name := "IANA Media Types (RFC 6838)", authority := "https://www.iana.org/assignments/media-types/", version := "RFC 6838 (2013-01)", scope := "Every published artifact declares its media type in Presentation.lex.tex; the contracts register declares the vendor types of the JSON reports.", realizedBy := (prim append (cons "chain" (cons "register-json" (cons "register-text" (cons "frontier" (cons "interfaces" (cons "statements" (cons "explainer" (cons "picture" (cons "paper-pdf" (cons "observations-pdf" (cons "core-pdf" (cons "pdf-manifest" (cons "api-module" (cons "register-module" (cons "architecture-module" (cons "presentation-module" (cons "application-module" (cons "core-vectors" (cons "frontier-module" (cons "agents" (cons "round-workflow" (cons "strategy" (cons "readme" (cons "logo" (cons "standards" (cons "standards-module" (cons "openapi" (cons "sitemap" (cons "robots" (cons "provenance" (cons "jsonld" (cons "attestations" (cons "citation" (cons "observer-module" (cons "tokens" (cons "site" (cons "viz-core-js" (cons "viz-triangle-js" (cons "viz-tower-js" (cons "viz-ledger-js" (nil String))))))))))))))))))))))))))))))))))))))))) (cons "viz-rays-js" (cons "viz-defects-js" (cons "viz-dyadic-js" (nil String)))) : (List String)), conformance := "bin/r30 verify api: artifactPathsDistinct, panelsReadArtifacts (Presentation); python3 -m unittest scripts.tests.test_r30.StandardsTests", coverage := "implemented"}) (cons (record Standard {id := "lean-4", name := "Lean 4 (the kernel)", authority := "https://github.com/leanprover/lean4", version := "leanprover/lean4:v4.32.2", scope := "Every proved claim names a theorem the Lean kernel checked under propext and Quot.sound; the research modules are kernel-replayed with leanchecker.", realizedBy := (cons "Register" (cons "axioms" (cons "choice_audit" (cons "frontier_check" (cons "kappa" (cons "module_build" (nil String))))))), conformance := "bin/r30 frontier check; bin/r30 axioms ; bin/r30 choice-audit", coverage := "implemented"}) (cons (record Standard {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 59f64efe7278", 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.", realizedBy := (cons "Api" (cons "Register" (cons "Architecture" (cons "Presentation" (cons "Application" (cons "Observer" (cons "Convert" (cons "Standards" (cons "Rule30Core" (cons "Sequences" (cons "Discovery" (cons "verify" (cons "check" (cons "api_sync" (cons "api_check" (cons "api_production" (nil String))))))))))))))))), conformance := "bin/r30 verify api; bin/r30 check api; bin/r30 api check", coverage := "implemented"}) (nil Standard))))))))))))))))))))))))), axioms: [] } @@ -273,7 +273,7 @@ theorem{ name: leanToolchainPinned, parameters: [], - statement: ((prim equal (standardVersion "lean-4" (standards)) "leanprover/lean4:v4.32.1" : Bool) = true), + statement: ((prim equal (standardVersion "lean-4" (standards)) "leanprover/lean4:v4.32.2" : Bool) = true), proof: decide{}, axioms: [] } @@ -281,7 +281,7 @@ theorem{ name: lexleanPinned, parameters: [], - statement: ((prim equal (standardVersion "lexlean" (standards)) "0.4.0, language 1.2, compiler semantics 601e9f4a1824" : Bool) = true), + statement: ((prim equal (standardVersion "lexlean" (standards)) "0.4.0, language 1.2, compiler semantics 59f64efe7278" : Bool) = true), proof: decide{}, axioms: [] } diff --git a/rule30-bridge/lean-toolchain b/rule30-bridge/lean-toolchain index 2b61957..0ec5999 100644 --- a/rule30-bridge/lean-toolchain +++ b/rule30-bridge/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.32.1 +leanprover/lean4:v4.32.2 diff --git a/rule30-core-lean/lean-toolchain b/rule30-core-lean/lean-toolchain index 2b61957..0ec5999 100644 --- a/rule30-core-lean/lean-toolchain +++ b/rule30-core-lean/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.32.1 +leanprover/lean4:v4.32.2 diff --git a/rule30-lexlean/Core.pdf b/rule30-lexlean/Core.pdf index 03313fd47766d7acb4a7a2dc8dac989f188f850a..16d399baa6103f84f67a1cfc4625ac8d443605b2 100644 GIT binary patch delta 124 zcmcb6hWYLp<_)uNs+bs<8X6c|L}_yA`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s%>o t;OydJY+&H*X5r@MWb9(>WNd0?;bdUsXlUT#Xl!ApU_(gB=Ca4nnE(q*BN_kz delta 124 zcmcb6hWYLp<_)uNsu&s>nphZGMrm^C`{t*(B$lKqXt-Dz85o%v0s%yF^ZuJ9oX&2B t#wG^NhNiA2X66=-Cax~7u4X0{7OrLnZpLQj2F`X0HiVRHE_?i(2>=D%BLV;b diff --git a/rule30-lexlean/lean-toolchain b/rule30-lexlean/lean-toolchain index 2b61957..0ec5999 100644 --- a/rule30-lexlean/lean-toolchain +++ b/rule30-lexlean/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.32.1 +leanprover/lean4:v4.32.2 diff --git a/rule30-lexlean/lexlean.lock b/rule30-lexlean/lexlean.lock index 3fdf5c9..bb85528 100644 --- a/rule30-lexlean/lexlean.lock +++ b/rule30-lexlean/lexlean.lock @@ -1,8 +1,8 @@ spec = "lexlean/lock/2" language = "1.2" -compiler_semantics = "601e9f4a1824bb6aacf7c3c2243d4b33aaa315abdebd5ceaf920d178e196019e" -project_config_sha256 = "19b484b35998550fc91a00820ee56382eaf79bbb39852dfb7d54e82018f0cd7b" -lean_toolchain = "leanprover/lean4:v4.32.1" +compiler_semantics = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" +project_config_sha256 = "9861b4d9a1ffbbcb0b3900cd62aabb236d1dd257cfebdc2b64cca2cead61c8c6" +lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] path = "lake-manifest.json" @@ -14,7 +14,7 @@ sha256 = "bca442d0244cb137049951de8a60d4b85383478b659a2c58107a9fddf86cae03" [[workspace_file]] path = "lean-toolchain" -sha256 = "8e3538e0ab5f81a3ee04927d8838c8c674e0e112838b4b3ce87ec218143276af" +sha256 = "2bdc48adfa58d0017e538a0ad117c5d73d35deec879978f909406a80c8037273" [[package]] id = "lexlean.core" diff --git a/rule30-lexlean/lexlean.toml b/rule30-lexlean/lexlean.toml index 0dc28c6..9cfaf0e 100644 --- a/rule30-lexlean/lexlean.toml +++ b/rule30-lexlean/lexlean.toml @@ -7,7 +7,7 @@ entrypoints = ["src/Core.lex.tex"] build_root = ".lexlean" lockfile = "lexlean.lock" lean_workspace = "." -lean_toolchain = "leanprover/lean4:v4.32.1" +lean_toolchain = "leanprover/lean4:v4.32.2" [[lexicon_source]] package = "lexlean.std.bool" diff --git a/rule30-lexlean/pdf/Core.pdf b/rule30-lexlean/pdf/Core.pdf index 03313fd47766d7acb4a7a2dc8dac989f188f850a..16d399baa6103f84f67a1cfc4625ac8d443605b2 100644 GIT binary patch delta 124 zcmcb6hWYLp<_)uNs+bs<8X6c|L}_yA`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s%>o t;OydJY+&H*X5r@MWb9(>WNd0?;bdUsXlUT#Xl!ApU_(gB=Ca4nnE(q*BN_kz delta 124 zcmcb6hWYLp<_)uNsu&s>nphZGMrm^C`{t*(B$lKqXt-Dz85o%v0s%yF^ZuJ9oX&2B t#wG^NhNiA2X66=-Cax~7u4X0{7OrLnZpLQj2F`X0HiVRHE_?i(2>=D%BLV;b diff --git a/rule30-paper/Observations.pdf b/rule30-paper/Observations.pdf index b87ec2dd9c77a6f7cbd45dc36e9e2a99cafb1872..9c2293f4eaa627a7374cbf72615e5d9183adb202 100644 GIT binary patch delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y>?Q`Lh6X0a(-TEl#9*B5bs{V~c$^I!T@6i*%}rgL loXwqFjGbM9DvivHEnFNe%*~A~P3#nG2r1cKsmSt|8vu@%9+&_C delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y?1n~$CKg8K(-TEl#9*B5bs{V~c$`fw4INFKO{uWC%ymx diff --git a/rule30-paper/lean-toolchain b/rule30-paper/lean-toolchain index 2b61957..0ec5999 100644 --- a/rule30-paper/lean-toolchain +++ b/rule30-paper/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.32.1 +leanprover/lean4:v4.32.2 diff --git a/rule30-paper/lexlean.lock b/rule30-paper/lexlean.lock index 2cc0508..2abb613 100644 --- a/rule30-paper/lexlean.lock +++ b/rule30-paper/lexlean.lock @@ -1,8 +1,8 @@ spec = "lexlean/lock/2" language = "1.2" -compiler_semantics = "601e9f4a1824bb6aacf7c3c2243d4b33aaa315abdebd5ceaf920d178e196019e" -project_config_sha256 = "65f34bd573a071519ef77a8129d6aaba99072b7612e53043eac3033c4f4dfcbc" -lean_toolchain = "leanprover/lean4:v4.32.1" +compiler_semantics = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" +project_config_sha256 = "ef73e771e55d5624e2ecf2756d0c6d2e545f885db030ff2fd6bd523649c66604" +lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] path = "lake-manifest.json" @@ -14,7 +14,7 @@ sha256 = "c04aa0b9e7fd617560c419c4a94d236553b8385136159e63d6a74539f002476c" [[workspace_file]] path = "lean-toolchain" -sha256 = "8e3538e0ab5f81a3ee04927d8838c8c674e0e112838b4b3ce87ec218143276af" +sha256 = "2bdc48adfa58d0017e538a0ad117c5d73d35deec879978f909406a80c8037273" [[package]] id = "lexlean.core" diff --git a/rule30-paper/lexlean.toml b/rule30-paper/lexlean.toml index 5ba6346..db074e5 100644 --- a/rule30-paper/lexlean.toml +++ b/rule30-paper/lexlean.toml @@ -7,7 +7,7 @@ entrypoints = ["src/Frontier.lex.tex", "src/Observations.lex.tex", "src/Paper.le build_root = ".lexlean" lockfile = "lexlean.lock" lean_workspace = "." -lean_toolchain = "leanprover/lean4:v4.32.1" +lean_toolchain = "leanprover/lean4:v4.32.2" [[lexicon_source]] package = "lexlean.std.bool" diff --git a/rule30-paper/pdf/Observations.pdf b/rule30-paper/pdf/Observations.pdf index b87ec2dd9c77a6f7cbd45dc36e9e2a99cafb1872..9c2293f4eaa627a7374cbf72615e5d9183adb202 100644 GIT binary patch delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y>?Q`Lh6X0a(-TEl#9*B5bs{V~c$^I!T@6i*%}rgL loXwqFjGbM9DvivHEnFNe%*~A~P3#nG2r1cKsmSt|8vu@%9+&_C delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y?1n~$CKg8K(-TEl#9*B5bs{V~c$`fw4INFKO{uWC%ymx From 27a60a6404deac37bc084a3fcbabf2e0d7c07120 Mon Sep 17 00:00:00 2001 From: Alexander Flom Date: Sat, 14 Nov 2026 10:07:29 +0000 Subject: [PATCH 2/2] Add bounded environmental memory on native Lean 4.32.2 --- Rule30-Core.pdf | Bin 58973 -> 58973 bytes Rule30-Observations.pdf | Bin 273782 -> 273782 bytes Rule30-Paper.pdf | Bin 969094 -> 969094 bytes pdf-manifest.json | 10 +- rule30-api/ENVIRONMENT_MEMORY.md | 120 ++++++++++++++++++ .../examples/environment-inspection.json | 28 ++++ rule30-api/lexlean.lock | 2 +- rule30-api/lexlean.toml | 6 +- .../environment-memory-request.json | 8 ++ rule30-api/src/EnvironmentAcquisition.lex.tex | 79 ++++++++++++ rule30-api/src/EnvironmentMemory.lex.tex | 117 +++++++++++++++++ .../src/EnvironmentMemoryCommand.lex.tex | 102 +++++++++++++++ .../src/EnvironmentMemoryTraces.lex.tex | 86 +++++++++++++ rule30-api/src/ResearchCatalog.lex.tex | 13 +- rule30-api/src/ResearchTraces.lex.tex | 2 +- rule30-lexlean/Core.pdf | Bin 58973 -> 58973 bytes rule30-lexlean/pdf/Core.pdf | Bin 58973 -> 58973 bytes rule30-paper/Observations.pdf | Bin 273782 -> 273782 bytes rule30-paper/Paper.pdf | Bin 969094 -> 969094 bytes rule30-paper/pdf/Observations.pdf | Bin 273782 -> 273782 bytes rule30-paper/pdf/Paper.pdf | Bin 969094 -> 969094 bytes 21 files changed, 562 insertions(+), 11 deletions(-) create mode 100644 rule30-api/ENVIRONMENT_MEMORY.md create mode 100644 rule30-api/examples/environment-inspection.json create mode 100644 rule30-api/production/environment-memory-request.json create mode 100644 rule30-api/src/EnvironmentAcquisition.lex.tex create mode 100644 rule30-api/src/EnvironmentMemory.lex.tex create mode 100644 rule30-api/src/EnvironmentMemoryCommand.lex.tex create mode 100644 rule30-api/src/EnvironmentMemoryTraces.lex.tex diff --git a/Rule30-Core.pdf b/Rule30-Core.pdf index 16d399baa6103f84f67a1cfc4625ac8d443605b2..8b812ac07e65609ae2ae12eb7bc09a43688ee6d2 100644 GIT binary patch delta 123 zcmcb6hWYLp<_&XhDjOOY7#bKwX>#fN=BKzMmZU0ZxL6q(7?~Lw8k#^PH}Ah$!s%?` tW^C$WY3OWZ?(Ax0WNd0;>1g2WW@zkU>166^?Cff%U_(gB=Ca4nnE>GwdX>#fN=BKzMmZU0ZxL6q(7?~Lw8k#^PH}Ah$!s%>o t;OydJY+&H*X5r@MWb9(>WNd0?;bdUsXlUT#Xl!ApU_(gB=Ca4nnE>u}BIW=9 diff --git a/Rule30-Observations.pdf b/Rule30-Observations.pdf index 9c2293f4eaa627a7374cbf72615e5d9183adb202..e531f8fd83328b507c66502b922b02958eaaa761 100644 GIT binary patch delta 116 zcmex%OW@lrfrb{w7N!>FEiBO@Y=#B~h6d)-6Gd3Wq3rE-A}l+2oK2n0%`IFVjZH0# lEiD|K4P9K#T}@5QjGRmijGTFEiBO@YzC%=1}4VS6Gd3Wq3rE-A}l+2oDCdZ4NZ;BO=bMWDcN4B$nuvP09ZsGFaQ7m diff --git a/Rule30-Paper.pdf b/Rule30-Paper.pdf index 3da3c8ad088d2de23762893ce12de58677596dce..d3adb2e8c9c78584a13bf650fa9a0f470894f25c 100644 GIT binary patch delta 153 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`=bcMrMYFh9(fn?feV)MA@B<9i7eHT-@9&+?-uq%q)P~T-;m?EuGw) W%!~{zjm+&7YzQgYp1zz=bcMrMYFh9(fn?feV)MA@C43|%b@%p8p!om@@bjGfI4Ele%lEG!+} XT#O8ijol3F6l@47*`B_fPhJTCyoM*v diff --git a/pdf-manifest.json b/pdf-manifest.json index 35986a7..66e48bd 100644 --- a/pdf-manifest.json +++ b/pdf-manifest.json @@ -1,18 +1,18 @@ { "documents": { "Core": { - "pdf_sha256": "ad2a355ae743f71da775d30a133d07e528b618176058e61c39a06f1b50739bf4", + "pdf_sha256": "c0d3552b926faeb1b74cbe6d36d407059a31e073a3907226751a780971c372f2", "tex_sha256": "a7cd1807077baa1d1ca34015faf500a24477991859427f4db646e5f230fe54e2" }, "Observations": { - "pdf_sha256": "a418d5da42b05a1263003ba1471e70ce8879adbf2480cf64634f53522b122c76", + "pdf_sha256": "2a984eee66578dc5dd22049b2dbb0c5d5de652afacd227530771499bf2bc4d62", "tex_sha256": "056820f37ac40133e341f46ad6c81125e35981150a1cc86f2063faad3f26fbd4" }, "Paper": { - "pdf_sha256": "54fe39cc9bc55934b71bf54eda6c9dfacc1b59f07771cb655baa0314c870fde1", + "pdf_sha256": "b4e861207713fc915b1f3e7cf8e981951a95cd73cd8968f1d11a6df84e7d00dc", "tex_sha256": "000f988561d9621f9ba2f9a99aba971670864367ebd336e6fbad0e1f71da01cb" } }, - "generated_at_utc": "2026-11-14T05:10:46.765644+00:00", - "source_digest": "6ba59795030e46f94be04aaee3bc95f1cd199b293a86c354608ca09e7c414427" + "generated_at_utc": "2026-11-14T10:01:11.420998+00:00", + "source_digest": "f97eb4afb83521401b5665cd9e9eaba18116700500fd6e3924de66a18cca0ea8" } diff --git a/rule30-api/ENVIRONMENT_MEMORY.md b/rule30-api/ENVIRONMENT_MEMORY.md new file mode 100644 index 0000000..83df7e3 --- /dev/null +++ b/rule30-api/ENVIRONMENT_MEMORY.md @@ -0,0 +1,120 @@ +# Bounded environmental memory + +`EnvironmentMemoryCommand.step` is a native LexLean Host entry for a bounded, +local environmental-memory inspection. It acquires a file from an exact local +Git commit, retains the observation, reopens and validates the store, and returns +relevant source context alongside the caller's unchanged `Research.Task`. + +This is a usable acquisition/retrieval interface, not autonomous Engine learning, +GitHub crawling, or an integration with the unpublished source inspector. + +## Run + +Build the production root with the project's qualified compiler and unchanged +acceptance policy: + +``` +lexlean production build --project rule30-api/lexlean.toml \ + --request rule30-api/production/environment-memory-request.json +``` + +Use the generated `rule30_environment_memory` executable from that certified +bundle. It takes exactly two arguments: an existing private state directory and +a request JSON file. Run from the repository root for the example's `.` source: + +``` +mkdir -m 700 /tmp/r30-memory-example +rule30_environment_memory /tmp/r30-memory-example \ + rule30-api/examples/environment-inspection.json +``` + +The example selects the public main snapshot's Host abstraction and searches for +`Request`. Its task target is explicitly an unverified interface fixture. Replace +the entire `task` with a real caller-owned task before using the returned context +in research. The command does not resolve, inspect, or prove that task's goal. + +For a later process, keep the same state directory and change `operation` to +`query`. The local source need not exist for a query. Keep all eight request keys; +`local_repository` and `path` can be empty strings for a query. Change `query` to +another nonempty, case-sensitive byte substring (at most 128 bytes). An unrelated +query or a different exact revision returns no observations, not stale context. + +## Versioned interface + +Input `r30/environment-inspection/1` has exactly these keys: `spec`, `operation` +(`ingest` or `query`), `local_repository`, `repository`, `revision`, `path`, +`query`, and `task`. The existing `ResearchInput.task` decoder admits the task; +all its fields, including every contextual-sequent field, are returned unchanged. + +Output `r30/environment-context/1` contains `task`, `observations`, and the fixed +trust label `observed-sources-not-proof`. Each observation has the claimed GitHub +`repository` label, exact `revision`, `path`, locally resolved Git `blob`, raw +`content`, SHA-256 `digest`, and `acquisition: local-git-object`. + +The source owner/repository label is a claim supplied by the caller. The command +does not authenticate GitHub ownership or prove that the commit is published +there. Local acquisition establishes a commit/path/blob relation through fixed +Git commands and checks content length before retention. On disk, even matching +digests and acquisition labels are untrusted records, not authentication receipts. + +The later source inspector can consume the observations as search hints for the +same supplied task. It must inspect any proposed declaration against its owned +snapshot and exact goal, then use the existing kernel/axiom gates. This command +constructs neither `Research.ResultKind.inspected` nor `checked`, changes no +registered claim, and never executes text or instructions from observations. + +## Bounds and ownership + +- One ingestion acquires one SHA-1 Git commit/path, at most 4 KiB of content. + SHA-256-format Git repositories are explicitly unsupported in this increment. +- Fixed Git invocations resolve `COMMIT^{commit}:PATH`, read the resolved object's + size, then read exactly that blob. No shell, textconv, filters, hooks, replace + objects, lazy fetch, credential prompts, or network protocol is enabled. +- Each of the three Git jobs has a 10-second allowance and bounded poll count. +- At most 32 observations are retained. Duplicate keys/content are idempotent; + changed revisions remain separate; conflicting content for an existing + repository/revision/path is refused. A full store is refused, never evicted. +- Both serialized stores and readback are limited to 1 MiB, including escaped + JSON. Requests are limited to 64 KiB. Retrieval returns at most eight records. +- The caller owns a dedicated private state directory and source repository. + There must be no competing writer or adversarial filesystem mutation. The + existing Host lock blocks on contention; this interface does not claim a + bounded lock-acquisition timeout. Do not share the state directory with + unrelated tools or place symlinks at its fixed filenames. +- `store.lock`, `git-output`, `git-errors`, `observations.pending`, and + `observations.json` are reserved in that directory. Source data never selects + paths or executable arguments outside the validated source identity. + +## Persistence and failures + +A writer locks the directory's store lock, validates any prior store, writes a +canonical pending file, renames it over the store, then reads and validates the +exact bytes again. Only successful readback produces context output with exit 0. +A malformed prior store is never overwritten. Interrupted/failed pending writes +must not be called learned memory. Keep the private directory after an uncertain +rename/readback or child-cleanup error and inspect it before retrying. + +This provides process-restart persistence, not a power-loss durability guarantee: +Host does not expose fsync. Host reads are preceded by size checks for caller +files; those checks rely on the private-path/no-adversarial-mutation assumption. + +## Acceptance + +Use the generated executable, not a handwritten substitute, to check: + +1. Ingest the pinned example, compare returned blob with local Git resolution, + digest with acquired bytes, and every task/sequent field with the input. +2. End that process. Query in a new process; obtain the same observation. +3. Repeat ingestion; retain exactly one record. Change query or revision; obtain + no old context. Ingest a changed fixture commit; retain both revisions. +4. Reject malformed JSON, duplicate or unknown fields, forged content digests, + conflicting immutable keys, excessive content/store budgets, and path escape. +5. Attempt writes with an obstructed pending or destination path. Require failure + and no successful learned/context output; preserve the prior valid store. +6. Ingest a fixture containing hostile instructions; return it only as observed + data. Exercise worst-case JSON escapes and reopen the result. + +Kernel traces cover core retrieval, idempotence, revision separation, malformed +records, round-trip readback, escaped-size budget and unchanged exact task. Native +acceptance and the full repository gate must be reported separately; neither a +parse/link check nor a fixed-kernel test-only manifest is main's acceptance. diff --git a/rule30-api/examples/environment-inspection.json b/rule30-api/examples/environment-inspection.json new file mode 100644 index 0000000..fb4d851 --- /dev/null +++ b/rule30-api/examples/environment-inspection.json @@ -0,0 +1,28 @@ +{ + "spec": "r30/environment-inspection/1", + "operation": "ingest", + "local_repository": ".", + "repository": "afflom/rule30", + "revision": "e3be477fded263029479127363f7fb6a3597e7d4", + "path": "lexlean-stdlib/src/Host.lex.tex", + "query": "Request", + "task": { + "id": "memory-interface-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [], + "schema": "Host request constructors", + "sequent": { + "origin": "InterfaceExample.goal", + "theorem": "InterfaceExample.goal", + "premise": 0, + "telescope": "", + "target": "UNVERIFIED INTERFACE FIXTURE: replace with the exact task target", + "kind": "closed" + }, + "age": 0, + "weight": 1 + } +} diff --git a/rule30-api/lexlean.lock b/rule30-api/lexlean.lock index e4e11d1..2fa4239 100644 --- a/rule30-api/lexlean.lock +++ b/rule30-api/lexlean.lock @@ -1,7 +1,7 @@ spec = "lexlean/lock/2" language = "1.2" compiler_semantics = "59f64efe727898bcf6a337630c38eb4ea7ffc08cd83a49a0ea669c61c3b23587" -project_config_sha256 = "99ecdcaed78165fcbb3a81a0fb1b4902fe7cba10e078fd288a31dfb80b81bc94" +project_config_sha256 = "163e328801aa738fabc9a0fb01059000b9bf81d003e2ffa0473fc96869fcda70" lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] diff --git a/rule30-api/lexlean.toml b/rule30-api/lexlean.toml index f16edd2..398f881 100644 --- a/rule30-api/lexlean.toml +++ b/rule30-api/lexlean.toml @@ -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/ArtifactIdentity.lex.tex", "src/ArtifactIdentityTraces.lex.tex", "src/Audit.lex.tex", "src/BindingFixture.lex.tex", "src/CandidateBinding.lex.tex", "src/CandidateBindingTraces.lex.tex", "src/CandidateSource.lex.tex", "src/CandidateSourceChecks0.lex.tex", "src/CandidateSourceChecks1.lex.tex", "src/CandidateSourceChecks2.lex.tex", "src/CandidateSourceChecks3.lex.tex", "src/CandidateSourceTraces.lex.tex", "src/ClosedBindingFixture.lex.tex", "src/ClosedGoalChecks0.lex.tex", "src/ClosedGoalChecks1.lex.tex", "src/ClosedGoalChecks2.lex.tex", "src/ClosedGoalChecks3.lex.tex", "src/ClosedGoalChecks4.lex.tex", "src/ClosedGoalChecks5.lex.tex", "src/ClosedGoalTraces.lex.tex", "src/CompilerSnapshot.lex.tex", "src/CompilerSnapshotTraces.lex.tex", "src/Convert.lex.tex", "src/CoreBinding.lex.tex", "src/CoreBindingTraces.lex.tex", "src/CoreNotation.lex.tex", "src/CoreNotationTraces.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/ResearchArchitecture.lex.tex", "src/ResearchCandidate.lex.tex", "src/ResearchCandidateTraces.lex.tex", "src/ResearchCatalog.lex.tex", "src/ResearchCohort.lex.tex", "src/ResearchCohortChecks0.lex.tex", "src/ResearchCohortChecks1.lex.tex", "src/ResearchCohortChecks2.lex.tex", "src/ResearchCohortCommand.lex.tex", "src/ResearchCohortInput.lex.tex", "src/ResearchCohortTraces.lex.tex", "src/ResearchCommand.lex.tex", "src/ResearchCommandTraces.lex.tex", "src/ResearchEvidence.lex.tex", "src/ResearchEvidenceTraces.lex.tex", "src/ResearchExecution.lex.tex", "src/ResearchExecutionTraces.lex.tex", "src/ResearchFactory.lex.tex", "src/ResearchFactoryTraces.lex.tex", "src/ResearchInput.lex.tex", "src/ResearchInputTraces.lex.tex", "src/ResearchJournal.lex.tex", "src/ResearchJournalTraces.lex.tex", "src/ResearchProject.lex.tex", "src/ResearchProjectTraces.lex.tex", "src/ResearchProof.lex.tex", "src/ResearchProofTraces.lex.tex", "src/ResearchRecord.lex.tex", "src/ResearchRunner.lex.tex", "src/ResearchRunnerTraces.lex.tex", "src/ResearchSession.lex.tex", "src/ResearchSessionTraces.lex.tex", "src/ResearchTraces.lex.tex", "src/ResearchVerification.lex.tex", "src/ResearchVerificationChecks0.lex.tex", "src/ResearchVerificationChecks1.lex.tex", "src/ResearchVerificationChecks2.lex.tex", "src/ResearchVerificationChecks3.lex.tex", "src/ResearchVerificationChecks4.lex.tex", "src/ResearchVerificationChecks5.lex.tex", "src/ResearchVerificationChecks6.lex.tex", "src/ResearchVerificationTraces.lex.tex", "src/ResearchWorkspace.lex.tex", "src/ResearchWorkspaceTraces.lex.tex", "src/Rule30Core.lex.tex", "src/Sequences.lex.tex", "src/Standards.lex.tex", "src/Toml.lex.tex", "src/VerificationCommandFixtures.lex.tex", "src/VerificationHashData.lex.tex", "src/VerificationHashFixtures.lex.tex", "src/VerificationHashSteps0.lex.tex", "src/VerificationHashSteps1.lex.tex", "src/VerificationHashSteps2.lex.tex", "src/VerificationHashSteps3.lex.tex", "src/VerificationHashSteps4.lex.tex", "src/VerificationHashSteps5.lex.tex", "src/VerificationIdentityTraces.lex.tex", "src/VerificationJsonData.lex.tex", "src/VerificationJsonFixtures.lex.tex", "src/VerificationJsonSteps0.lex.tex", "src/VerificationJsonSteps1.lex.tex", "src/VerificationJsonSteps10.lex.tex", "src/VerificationJsonSteps11.lex.tex", "src/VerificationJsonSteps2.lex.tex", "src/VerificationJsonSteps3.lex.tex", "src/VerificationJsonSteps4.lex.tex", "src/VerificationJsonSteps5.lex.tex", "src/VerificationJsonSteps6.lex.tex", "src/VerificationJsonSteps7.lex.tex", "src/VerificationJsonSteps8.lex.tex", "src/VerificationJsonSteps9.lex.tex", "src/VerificationMetadataChecks0.lex.tex", "src/VerificationMetadataChecks1.lex.tex", "src/VerificationMetadataTraces.lex.tex", "src/VerificationPolicyChecks0.lex.tex", "src/VerificationPolicyTraces.lex.tex", "src/VerificationProcessChecks0.lex.tex", "src/VerificationProcessTraces.lex.tex", "src/VerificationReport.lex.tex", "src/VerificationReportTraces.lex.tex", "src/VerificationUtf8Fixtures.lex.tex", "src/VerificationUtf8Steps0.lex.tex", "src/VerificationUtf8Steps1.lex.tex", "src/VerificationUtf8Steps2.lex.tex", "src/VerificationUtf8Steps3.lex.tex", "src/VerificationUtf8Steps4.lex.tex", "src/VerificationUtf8Steps5.lex.tex", "src/VerificationUtf8Steps6.lex.tex", "src/VerificationUtf8Steps7.lex.tex", "src/VerificationUtf8Steps8.lex.tex", "src/VerificationUtf8Steps9.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/CandidateSource.lex.tex", "src/CandidateSourceChecks0.lex.tex", "src/CandidateSourceChecks1.lex.tex", "src/CandidateSourceChecks2.lex.tex", "src/CandidateSourceChecks3.lex.tex", "src/CandidateSourceTraces.lex.tex", "src/ClosedBindingFixture.lex.tex", "src/ClosedGoalChecks0.lex.tex", "src/ClosedGoalChecks1.lex.tex", "src/ClosedGoalChecks2.lex.tex", "src/ClosedGoalChecks3.lex.tex", "src/ClosedGoalChecks4.lex.tex", "src/ClosedGoalChecks5.lex.tex", "src/ClosedGoalTraces.lex.tex", "src/CompilerSnapshot.lex.tex", "src/CompilerSnapshotTraces.lex.tex", "src/Convert.lex.tex", "src/CoreBinding.lex.tex", "src/CoreBindingTraces.lex.tex", "src/CoreNotation.lex.tex", "src/CoreNotationTraces.lex.tex", "src/Discovery.lex.tex", "src/Engine.lex.tex", "src/EnvironmentAcquisition.lex.tex", "src/EnvironmentMemory.lex.tex", "src/EnvironmentMemoryCommand.lex.tex", "src/EnvironmentMemoryTraces.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/ResearchArchitecture.lex.tex", "src/ResearchCandidate.lex.tex", "src/ResearchCandidateTraces.lex.tex", "src/ResearchCatalog.lex.tex", "src/ResearchCohort.lex.tex", "src/ResearchCohortChecks0.lex.tex", "src/ResearchCohortChecks1.lex.tex", "src/ResearchCohortChecks2.lex.tex", "src/ResearchCohortCommand.lex.tex", "src/ResearchCohortInput.lex.tex", "src/ResearchCohortTraces.lex.tex", "src/ResearchCommand.lex.tex", "src/ResearchCommandTraces.lex.tex", "src/ResearchEvidence.lex.tex", "src/ResearchEvidenceTraces.lex.tex", "src/ResearchExecution.lex.tex", "src/ResearchExecutionTraces.lex.tex", "src/ResearchFactory.lex.tex", "src/ResearchFactoryTraces.lex.tex", "src/ResearchInput.lex.tex", "src/ResearchInputTraces.lex.tex", "src/ResearchJournal.lex.tex", "src/ResearchJournalTraces.lex.tex", "src/ResearchProject.lex.tex", "src/ResearchProjectTraces.lex.tex", "src/ResearchProof.lex.tex", "src/ResearchProofTraces.lex.tex", "src/ResearchRecord.lex.tex", "src/ResearchRunner.lex.tex", "src/ResearchRunnerTraces.lex.tex", "src/ResearchSession.lex.tex", "src/ResearchSessionTraces.lex.tex", "src/ResearchTraces.lex.tex", "src/ResearchVerification.lex.tex", "src/ResearchVerificationChecks0.lex.tex", "src/ResearchVerificationChecks1.lex.tex", "src/ResearchVerificationChecks2.lex.tex", "src/ResearchVerificationChecks3.lex.tex", "src/ResearchVerificationChecks4.lex.tex", "src/ResearchVerificationChecks5.lex.tex", "src/ResearchVerificationChecks6.lex.tex", "src/ResearchVerificationTraces.lex.tex", "src/ResearchWorkspace.lex.tex", "src/ResearchWorkspaceTraces.lex.tex", "src/Rule30Core.lex.tex", "src/Sequences.lex.tex", "src/Standards.lex.tex", "src/Toml.lex.tex", "src/VerificationCommandFixtures.lex.tex", "src/VerificationHashData.lex.tex", "src/VerificationHashFixtures.lex.tex", "src/VerificationHashSteps0.lex.tex", "src/VerificationHashSteps1.lex.tex", "src/VerificationHashSteps2.lex.tex", "src/VerificationHashSteps3.lex.tex", "src/VerificationHashSteps4.lex.tex", "src/VerificationHashSteps5.lex.tex", "src/VerificationIdentityTraces.lex.tex", "src/VerificationJsonData.lex.tex", "src/VerificationJsonFixtures.lex.tex", "src/VerificationJsonSteps0.lex.tex", "src/VerificationJsonSteps1.lex.tex", "src/VerificationJsonSteps10.lex.tex", "src/VerificationJsonSteps11.lex.tex", "src/VerificationJsonSteps2.lex.tex", "src/VerificationJsonSteps3.lex.tex", "src/VerificationJsonSteps4.lex.tex", "src/VerificationJsonSteps5.lex.tex", "src/VerificationJsonSteps6.lex.tex", "src/VerificationJsonSteps7.lex.tex", "src/VerificationJsonSteps8.lex.tex", "src/VerificationJsonSteps9.lex.tex", "src/VerificationMetadataChecks0.lex.tex", "src/VerificationMetadataChecks1.lex.tex", "src/VerificationMetadataTraces.lex.tex", "src/VerificationPolicyChecks0.lex.tex", "src/VerificationPolicyTraces.lex.tex", "src/VerificationProcessChecks0.lex.tex", "src/VerificationProcessTraces.lex.tex", "src/VerificationReport.lex.tex", "src/VerificationReportTraces.lex.tex", "src/VerificationUtf8Fixtures.lex.tex", "src/VerificationUtf8Steps0.lex.tex", "src/VerificationUtf8Steps1.lex.tex", "src/VerificationUtf8Steps2.lex.tex", "src/VerificationUtf8Steps3.lex.tex", "src/VerificationUtf8Steps4.lex.tex", "src/VerificationUtf8Steps5.lex.tex", "src/VerificationUtf8Steps6.lex.tex", "src/VerificationUtf8Steps7.lex.tex", "src/VerificationUtf8Steps8.lex.tex", "src/VerificationUtf8Steps9.lex.tex"] build_root = ".lexlean" lockfile = "lexlean.lock" lean_workspace = "." @@ -40,7 +40,7 @@ path = "lexlean-stdlib" [limits] max_file_bytes = 16777216 -max_total_source_bytes = 100663296 +max_total_source_bytes = 134217728 max_primitive_atoms = 2000000 max_token_lattice_edges = 4000000 max_parse_states = 4000000 @@ -48,5 +48,5 @@ max_ir_nodes = 2000000 max_scope_depth = 1024 max_import_depth = 128 max_diagnostics = 256 -max_child_output_bytes = 16777216 +max_child_output_bytes = 25165824 child_timeout_ms = 600000 diff --git a/rule30-api/production/environment-memory-request.json b/rule30-api/production/environment-memory-request.json new file mode 100644 index 0000000..b796391 --- /dev/null +++ b/rule30-api/production/environment-memory-request.json @@ -0,0 +1,8 @@ +{ + "spec": "lexlean/production-request/1", + "roots": [{ + "package": {"name": "rule30_environment_memory", "version": "0.1.0"}, + "root": "Rule30Api.EnvironmentMemoryCommand.step", + "targets": [{"id": "rust-std", "digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f"}] + }] +} diff --git a/rule30-api/src/EnvironmentAcquisition.lex.tex b/rule30-api/src/EnvironmentAcquisition.lex.tex new file mode 100644 index 0000000..0fc5d02 --- /dev/null +++ b/rule30-api/src/EnvironmentAcquisition.lex.tex @@ -0,0 +1,79 @@ +\begin{lexlean}{EnvironmentAcquisition} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentMemory} +\importmodule{ResearchExecution} +\importmodule{Research} +\importmodule{LexLeanStd.Host} +\importmodule{LexLeanStd.Sha256} +\importmodule{Host} +\importmodule{Json} +\importmodule{Toml} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Config, type_parameters: [], parameters: [], + fields: [{name: request, type: Research::Request}, {name: directory, type: String}, {name: repository, type: Bytes}, {name: revision, type: Bytes}, {name: path, type: Bytes}, {name: output, type: String}, {name: errors, type: String}] +} +inductive{ + name: Operation, type_parameters: [], parameters: [], + constructors: [{name: identify, fields: []}, {name: size, fields: []}, {name: content, fields: []}] +} +inductive{ + name: Phase, type_parameters: [], parameters: [], + constructors: [{name: executing, fields: [ResearchExecution::State]}, {name: reading, fields: []}, {name: ended, fields: []}] +} +structure{ + name: State, type_parameters: [], parameters: [], + fields: [{name: config, type: Config}, {name: operation, type: Operation}, {name: blob, type: Bytes}, {name: size, type: Nat}, {name: phase, type: Phase}] +} +inductive{ + name: Emission, type_parameters: [], parameters: [], + constructors: [{name: host, fields: [LexLeanStd.Host::Request]}, {name: complete, fields: [EnvironmentMemory::Observation]}, {name: failed, fields: [String]}] +} +definition{ + name: join, parameters: [left : String, right : String], result: String, + body: (Host::textOf (prim append (prim utf8_encode left : Bytes) (prim utf8_encode right : Bytes) : Bytes)), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: environment, parameters: [], result: (List (String * String)), + body: (cons ("GIT_CONFIG_NOSYSTEM", "1") (cons ("GIT_CONFIG_GLOBAL", "/dev/null") (cons ("GIT_NO_REPLACE_OBJECTS", "1") (cons ("GIT_NO_LAZY_FETCH", "1") (cons ("GIT_TERMINAL_PROMPT", "0") (cons ("GIT_OPTIONAL_LOCKS", "0") (nil (String * String)))))))), executable: true +} +definition{ + name: arguments, parameters: [state : State], result: (List String), + body: (prim append (cons "--no-replace-objects" (cons "--no-optional-locks" (cons "-c" (cons "core.hooksPath=/dev/null" (cons "-c" (cons "core.fsmonitor=false" (cons "-c" (cons "protocol.allow=never" (nil String))))))))) (match (project state operation) | Operation.identify => (cons "rev-parse" (cons "--verify" (cons "--end-of-options" (cons (join (Host::textOf (project (project state config) revision)) (join "^{commit}:" (Host::textOf (project (project state config) path)))) (nil String))))) | Operation.size => (cons "cat-file" (cons "-s" (cons (Host::textOf (project state blob)) (nil String)))) | Operation.content => (cons "cat-file" (cons "blob" (cons (Host::textOf (project state blob)) (nil String))))) : (List String)), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: job, parameters: [state : State], result: ResearchExecution::Job, + body: (let config : Config := (project state config); (record ResearchExecution::Job {request := (project config request), tool := (ctor ResearchExecution::Tool.git), arguments := (arguments state), directory := (project config directory), environment := (environment), output := (project config output), errors := (project config errors), allowance := 10000, quantum := 100, polls := 128})), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: fail, parameters: [state : State, reason : String], result: (State * Emission), + body: (state, (ctor Emission.failed reason)), executable: true +} +definition{ + name: advance, parameters: [state : State, result : (ResearchExecution::State * ResearchExecution::Emission)], result: (State * Emission), + body: (let next : State := (record State {config := (project state config), operation := (project state operation), blob := (project state blob), size := (project state size), phase := (ctor Phase.executing (first result))}); (match (second result) | ResearchExecution::Emission.host request => (next, (ctor Emission.host request)) | ResearchExecution::Emission.awaiting => (fail next "acquisition has no outstanding effect") | ResearchExecution::Emission.complete completion => (match (project completion kind) | ResearchExecution::EndKind.succeeded => (match (project completion code) | Option.none => (fail next "acquisition did not exit normally") | Option.some code => (if (prim equal code (0 : Int32) : Bool) then ((record State {config := (project next config), operation := (project next operation), blob := (project next blob), size := (project next size), phase := (ctor Phase.reading)}), (ctor Emission.host (ctor LexLeanStd.Host::Request.read (project (project next config) output)))) else (fail next "acquisition failed"))) | ResearchExecution::EndKind.failed => (fail next "git rejected pinned object") | ResearchExecution::EndKind.cut => (fail next "acquisition budget cut; keep private directory") | ResearchExecution::EndKind.unavailable => (fail next "git unavailable") | ResearchExecution::EndKind.protocol => (fail next "acquisition protocol error; keep private directory") | ResearchExecution::EndKind.cleanupFailed => (fail next "cleanup uncertain; keep private directory") | ResearchExecution::EndKind.refused => (fail next "acquisition refused")))), executable: true +} +definition{ + name: launch, parameters: [state : State, operation : Operation, blob : Bytes, size : Nat], result: (State * Emission), + body: (let next : State := (record State {config := (project state config), operation := operation, blob := blob, size := size, phase := (ctor Phase.ended)}); (advance next (ResearchExecution::begin (job next)))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: begin, parameters: [config : Config], result: (State * Emission), + body: (let state : State := (record State {config := config, operation := (ctor Operation.identify), blob := 0x, size := 0, phase := (ctor Phase.ended)}); (if ((EnvironmentMemory::repositoryLabel (project config repository)) && (((prim length (project config revision) : Nat) =? 40) && ((EnvironmentMemory::hexadecimal (project config revision) 0 40) && ((EnvironmentMemory::bounded (project config path) 256) && ((EnvironmentMemory::safeName (project config path) 0 (prim length (project config path) : Nat)) && ((not (EnvironmentMemory::contains (project config path) 0x2e2e)) && (not (Toml::byteIs (project config path) 0 (47 : UInt8))))))))) then (launch state (ctor Operation.identify) 0x 0) else (fail state "invalid pinned source identity"))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: readResult, parameters: [state : State, data : Bytes], result: (State * Emission), + body: (match (project state operation) | Operation.identify => (if (((prim length data : Nat) =? 41) && ((Toml::byteIs data 40 (10 : UInt8)) && (EnvironmentMemory::hexadecimal data 0 40))) then (launch state (ctor Operation.size) (Toml::sliceOr data 0 40) 0) else (fail state "git object identity is not exact SHA-1 plus newline")) | Operation.size => (if ((EnvironmentMemory::bounded data 6) && (Toml::byteIs data (prim subtract (prim length data : Nat) 1 : Nat) (10 : UInt8))) then (match (Json::natural (ctor Json::Value.number (Toml::sliceOr data 0 (prim subtract (prim length data : Nat) 1 : Nat))) 4096) | Option.none => (fail state "source exceeds 4096 byte budget") | Option.some size => (if (0 (if ((prim length data : Nat) =? (project state size)) then (let item : EnvironmentMemory::Observation := (record EnvironmentMemory::Observation {repository := (project (project state config) repository), revision := (project (project state config) revision), path := (project (project state config) path), content := data, blob := (project state blob), digest := (LexLeanStd.Sha256::sha256Hex data), acquisition := 0x6c6f63616c2d6769742d6f626a656374}); (if (EnvironmentMemory::valid item) then ((record State {config := (project state config), operation := (project state operation), blob := (project state blob), size := (project state size), phase := (ctor Phase.ended)}), (ctor Emission.complete item)) else (fail state "source observation invalid"))) else (fail state "git content length differs from bound object"))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: step, parameters: [state : State, event : LexLeanStd.Host::Event], result: (State * Emission), + body: (match (project state phase) | Phase.executing active => (advance state (ResearchExecution::step active event)) | Phase.reading => (match (Host::asRead event) | Option.none => (fail state "expected owned git output read") | Option.some reply => (match reply | Result.error failure => (fail state "git output unreadable") | Result.ok data => (readResult state data))) | Phase.ended => (fail state "acquisition cannot restart")), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "fixed-local-git-object-reader" (cons "explicit-commit-path-blob-binding" (cons "no-network-filters-or-hooks" (cons "bounded-source-and-supervised-time" (nil String))))), executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentMemory.lex.tex b/rule30-api/src/EnvironmentMemory.lex.tex new file mode 100644 index 0000000..f5ee940 --- /dev/null +++ b/rule30-api/src/EnvironmentMemory.lex.tex @@ -0,0 +1,117 @@ +\begin{lexlean}{EnvironmentMemory} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{Json} +\importmodule{JsonCanonical} +\importmodule{Toml} +\importmodule{Host} +\importmodule{Research} +\importmodule{LexLeanStd.Sha256} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Observation, type_parameters: [], parameters: [], + fields: [{name: repository, type: Bytes}, {name: revision, type: Bytes}, {name: path, type: Bytes}, {name: content, type: Bytes}, {name: blob, type: Bytes}, {name: digest, type: Bytes}, {name: acquisition, type: Bytes}] +} +structure{ + name: Context, type_parameters: [], parameters: [], + fields: [{name: task, type: Research::Task}, {name: observations, type: (List Observation)}] +} +definition{ + name: get, parameters: [value : Json::Value, key : Bytes], result: Bytes, + body: (match (Json::field value key) | Option.none => 0x | Option.some field => (match field | Json::Value.string data => data | Json::Value.null => 0x | Json::Value.boolean b => 0x | Json::Value.number n => 0x | Json::Value.array a => 0x | Json::Value.object o => 0x)), executable: true +} +definition{ + name: bounded, parameters: [value : Bytes, maximum : Nat], result: Bool, + body: ((0 true | Nat.succ more => (match (prim index value at : (Option UInt8)) | Option.none => false | Option.some b => (((Toml::between b (48 : UInt8) (57 : UInt8)) || (Toml::between b (97 : UInt8) (102 : UInt8))) && (hexadecimal value (at + 1) more)))), recursive_argument: remaining, axioms: [propext], executable: true +} +definition{ + name: safeName, parameters: [value : Bytes, at : Nat, remaining : Nat], result: Bool, + body: (match remaining | Nat.zero => true | Nat.succ more => (match (prim index value at : (Option UInt8)) | Option.none => false | Option.some b => (((Toml::between b (48 : UInt8) (57 : UInt8)) || ((Toml::between b (65 : UInt8) (90 : UInt8)) || ((Toml::between b (97 : UInt8) (122 : UInt8)) || ((prim equal b (45 : UInt8) : Bool) || ((prim equal b (95 : UInt8) : Bool) || ((prim equal b (46 : UInt8) : Bool) || (prim equal b (47 : UInt8) : Bool))))))) && (safeName value (at + 1) more)))), recursive_argument: remaining, axioms: [propext], executable: true +} +definition{ + name: containsFrom, parameters: [source : Bytes, query : Bytes, at : Nat, fuel : Nat], result: Bool, + body: (match fuel | Nat.zero => false | Nat.succ more => ((Host::bytesAgreeFrom source at query 0 (prim length query : Nat)) || (containsFrom source query (at + 1) more))), recursive_argument: fuel, executable: true +} +definition{ + name: contains, parameters: [source : Bytes, query : Bytes], result: Bool, + body: ((bounded query 128) && (containsFrom source query 0 ((prim length source : Nat) + 1))), executable: true +} +definition{ + name: slashCount, parameters: [value : Bytes, at : Nat, remaining : Nat], result: Nat, + body: (match remaining | Nat.zero => 0 | Nat.succ more => ((if (Toml::byteIs value at (47 : UInt8)) then 1 else 0) + (slashCount value (at + 1) more))), recursive_argument: remaining, executable: true +} +definition{ + name: repositoryLabel, parameters: [value : Bytes], result: Bool, + body: ((bounded value 140) && ((safeName value 0 (prim length value : Nat)) && (((slashCount value 0 (prim length value : Nat)) =? 1) && ((not (Toml::byteIs value 0 (47 : UInt8))) && ((not (Toml::byteIs value (prim subtract (prim length value : Nat) 1 : Nat) (47 : UInt8))) && (not (contains value 0x2e2e))))))), axioms: [propext], executable: true +} +definition{ + name: objectSize, parameters: [value : Json::Value, expected : Nat], result: Bool, + body: (match value | Json::Value.object fields => ((prim length fields : Nat) =? expected) | Json::Value.null => false | Json::Value.boolean b => false | Json::Value.number n => false | Json::Value.string s => false | Json::Value.array a => false), executable: true +} +definition{ + name: valid, parameters: [item : Observation], result: Bool, + body: ((repositoryLabel (project item repository)) && ((safeName (project item repository) 0 (prim length (project item repository) : Nat)) && ((contains (project item repository) 0x2f) && ((((prim length (project item blob) : Nat) =? 40) && ((hexadecimal (project item blob) 0 40) && ((prim length (project item revision) : Nat) =? 40))) && ((hexadecimal (project item revision) 0 40) && ((bounded (project item path) 256) && ((safeName (project item path) 0 (prim length (project item path) : Nat)) && ((not (contains (project item path) 0x2e2e)) && ((not (Toml::byteIs (project item path) 0 (47 : UInt8))) && ((bounded (project item content) 4096) && ((Toml::sameBytes (project item acquisition) 0x6c6f63616c2d6769742d6f626a656374) && (Toml::sameBytes (project item digest) (LexLeanStd.Sha256::sha256Hex (project item content)))))))))))))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: encode, parameters: [item : Observation], result: Json::Value, + body: (ctor Json::Value.object (cons (0x7265706f7369746f7279, (ctor Json::Value.string (project item repository))) (cons (0x7265766973696f6e, (ctor Json::Value.string (project item revision))) (cons (0x70617468, (ctor Json::Value.string (project item path))) (cons (0x636f6e74656e74, (ctor Json::Value.string (project item content))) (cons (0x626c6f62, (ctor Json::Value.string (project item blob))) (cons (0x646967657374, (ctor Json::Value.string (project item digest))) (cons (0x6163717569736974696f6e, (ctor Json::Value.string (project item acquisition))) (nil (Bytes * Json::Value)))))))))), executable: true +} +definition{ + name: decode, parameters: [value : Json::Value], result: (Option Observation), + body: (let item : Observation := (record Observation {repository := (get value 0x7265706f7369746f7279), revision := (get value 0x7265766973696f6e), path := (get value 0x70617468), content := (get value 0x636f6e74656e74), blob := (get value 0x626c6f62), digest := (get value 0x646967657374), acquisition := (get value 0x6163717569736974696f6e)}); (match value | Json::Value.object fields => (if (((prim length fields : Nat) =? 7) && (valid item)) then (ctor Option.some [Observation] item) else (ctor Option.none [Observation])) | Json::Value.null => (ctor Option.none [Observation]) | Json::Value.boolean b => (ctor Option.none [Observation]) | Json::Value.number n => (ctor Option.none [Observation]) | Json::Value.string s => (ctor Option.none [Observation]) | Json::Value.array a => (ctor Option.none [Observation]))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: sameKey, parameters: [left : Observation, right : Observation], result: Bool, + body: ((Toml::sameBytes (project left repository) (project right repository)) && ((Toml::sameBytes (project left revision) (project right revision)) && (Toml::sameBytes (project left path) (project right path)))), executable: true +} +definition{ + name: insert, parameters: [item : Observation, store : (List Observation)], result: (Option (List Observation)), + body: (match store | List.nil => (ctor Option.some [(List Observation)] (cons item (nil Observation))) | List.cons head tail => (if (sameKey item head) then (if ((Toml::sameBytes (project item digest) (project head digest)) && ((Toml::sameBytes (project item blob) (project head blob)) && ((Toml::sameBytes (project item content) (project head content)) && (Toml::sameBytes (project item acquisition) (project head acquisition))))) then (ctor Option.some [(List Observation)] (cons head tail)) else (ctor Option.none [(List Observation)])) else (match (insert item tail) | Option.none => (ctor Option.none [(List Observation)]) | Option.some rest => (ctor Option.some [(List Observation)] (cons head rest))))), recursive_argument: store, executable: true +} +definition{ + name: ingest, parameters: [item : Observation, store : (List Observation)], result: (Option (List Observation)), + body: (if (valid item) then (match (insert item store) | Option.none => (ctor Option.none [(List Observation)]) | Option.some next => (if (32 (nil Json::Value) | List.cons head tail => (cons (encode head) (encodeItems tail))), recursive_argument: items, executable: true +} +definition{ + name: decodeItems, parameters: [items : (List Json::Value), store : (List Observation)], result: (Option (List Observation)), + body: (match items | List.nil => (ctor Option.some [(List Observation)] store) | List.cons head tail => (match (decode head) | Option.none => (ctor Option.none [(List Observation)]) | Option.some item => (match (ingest item store) | Option.none => (ctor Option.none [(List Observation)]) | Option.some next => (decodeItems tail next)))), recursive_argument: items, axioms: [Quot.sound, propext], executable: true +} +definition{ + name: document, parameters: [store : (List Observation)], result: Json::Value, + body: (ctor Json::Value.object (cons (0x73706563, (ctor Json::Value.string 0x7233302f656e7669726f6e6d656e742d6d656d6f72792f31)) (cons (0x6f62736572766174696f6e73, (ctor Json::Value.array (encodeItems store))) (nil (Bytes * Json::Value))))), executable: true +} +definition{ + name: serialize, parameters: [store : (List Observation)], result: (Option Bytes), + body: (if (32 (ctor Option.none [(List Observation)]) | Result.ok value => (if ((objectSize value 2) && (Toml::sameBytes (get value 0x73706563) 0x7233302f656e7669726f6e6d656e742d6d656d6f72792f31)) then (match (Json::field value 0x6f62736572766174696f6e73) | Option.none => (ctor Option.none [(List Observation)]) | Option.some entries => (match entries | Json::Value.array items => (if (32 (ctor Option.none [(List Observation)]) | Json::Value.boolean b => (ctor Option.none [(List Observation)]) | Json::Value.number n => (ctor Option.none [(List Observation)]) | Json::Value.string s => (ctor Option.none [(List Observation)]) | Json::Value.object o => (ctor Option.none [(List Observation)]))) else (ctor Option.none [(List Observation)]))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: retrieve, parameters: [store : (List Observation), repository : Bytes, revision : Bytes, query : Bytes, limit : Nat], result: (List Observation), + body: (match store | List.nil => (nil Observation) | List.cons head tail => (match limit | Nat.zero => (nil Observation) | Nat.succ remaining => (if ((Toml::sameBytes repository (project head repository)) && ((Toml::sameBytes revision (project head revision)) && (contains (project head content) query))) then (cons head (retrieve tail repository revision query remaining)) else (retrieve tail repository revision query limit)))), recursive_argument: store, executable: true +} +definition{ + name: candidateContext, parameters: [task : Research::Task, store : (List Observation), repository : Bytes, revision : Bytes, query : Bytes], result: Context, + body: (record Context {task := task, observations := (retrieve store repository revision query 8)}), executable: true +} +definition{ + name: boundary, parameters: [], result: String, + body: "Repository labels claim a GitHub origin; they do not authenticate it. Acquisition must bind the exact local Git commit, path and blob before creating an observation. SHA-256 validation detects changed content, not forged provenance. Durable records are untrusted source observations, not conjecture acceptance or verified local proof. Retrieval requires an explicit repository and revision, does not infer a latest revision, and never executes source text. The candidate task and its contextual sequent remain unchanged. The native store writer must use serialize and acknowledge a successful replacement followed by exact readback before reporting retention. Both serialization and readback share a 1 MiB bound; 32 records of at most 4 KiB have room for worst-case six-byte JSON escapes.", executable: true +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "bounded-pinned-source-observations" (cons "sha256-validated-readback" (cons "idempotent-conflict-rejecting-ingestion" (cons "revision-scoped-retrieval" (cons "candidate-context-with-unchanged-exact-task" (nil String)))))), executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentMemoryCommand.lex.tex b/rule30-api/src/EnvironmentMemoryCommand.lex.tex new file mode 100644 index 0000000..97c521d --- /dev/null +++ b/rule30-api/src/EnvironmentMemoryCommand.lex.tex @@ -0,0 +1,102 @@ +\begin{lexlean}{EnvironmentMemoryCommand} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentMemory} +\importmodule{EnvironmentAcquisition} +\importmodule{ResearchInput} +\importmodule{ResearchRecord} +\importmodule{Research} +\importmodule{LexLeanStd.Host} +\importmodule{Host} +\importmodule{Json} +\importmodule{JsonCanonical} +\importmodule{Toml} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Config, type_parameters: [], parameters: [], + fields: [{name: home, type: String}, {name: source, type: String}, {name: repository, type: Bytes}, {name: revision, type: Bytes}, {name: path, type: Bytes}, {name: query, type: Bytes}, {name: ingest, type: Bool}, {name: task, type: Research::Task}] +} +inductive{ + name: State, type_parameters: [], parameters: [], + constructors: [{name: checkingRequest, fields: [String, String]}, {name: readingRequest, fields: [String]}, {name: locking, fields: [Config]}, {name: checkingStore, fields: [Config]}, {name: readingStore, fields: [Config]}, {name: acquiring, fields: [Config, (List EnvironmentMemory::Observation), EnvironmentAcquisition::State]}, {name: writing, fields: [Config, Bytes]}, {name: renaming, fields: [Config, Bytes]}, {name: reopening, fields: [Config, Bytes]}, {name: ended, fields: []}] +} +definition{ + name: field, parameters: [value : Json::Value, key : Bytes], result: Json::Value, + body: (match (Json::field value key) | Option.none => (ctor Json::Value.null) | Option.some data => data), executable: true +} +definition{ + name: error, parameters: [reason : String], result: (State * LexLeanStd.Host::Request), + body: ((ctor State.ended), (ctor LexLeanStd.Host::Request.exit (2 : UInt8) 0x (prim utf8_encode reason : Bytes))), axioms: [], executable: true +} +definition{ + name: path, parameters: [config : Config, suffix : String], result: String, + body: (EnvironmentAcquisition::join (project config home) suffix), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: parseConfig, parameters: [home : String, data : Bytes], result: (Option Config), + body: (match (Json::parse data 65536 16) | Result.error problem => (ctor Option.none [Config]) | Result.ok value => (if (((EnvironmentMemory::objectSize value 8) && (ResearchInput::stringIs (field value 0x70617468) (EnvironmentMemory::get value 0x70617468))) && ((Toml::sameBytes (EnvironmentMemory::get value 0x73706563) 0x7233302f656e7669726f6e6d656e742d696e7370656374696f6e2f31) && ((EnvironmentMemory::repositoryLabel (EnvironmentMemory::get value 0x7265706f7369746f7279)) && ((EnvironmentMemory::bounded (EnvironmentMemory::get value 0x7175657279) 128) && ((Toml::sameBytes (EnvironmentMemory::get value 0x6f7065726174696f6e) 0x696e67657374) || (Toml::sameBytes (EnvironmentMemory::get value 0x6f7065726174696f6e) 0x7175657279)))))) then (match (ResearchInput::task (field value 0x7461736b)) | Option.none => (ctor Option.none [Config]) | Option.some task => (match (ResearchInput::text (field value 0x6c6f63616c5f7265706f7369746f7279)) | Option.none => (ctor Option.none [Config]) | Option.some source => (let config : Config := (record Config {home := home, source := source, repository := (EnvironmentMemory::get value 0x7265706f7369746f7279), revision := (EnvironmentMemory::get value 0x7265766973696f6e), path := (EnvironmentMemory::get value 0x70617468), query := (EnvironmentMemory::get value 0x7175657279), ingest := (Toml::sameBytes (EnvironmentMemory::get value 0x6f7065726174696f6e) 0x696e67657374), task := task}); (if (((prim length (project config revision) : Nat) =? 40) && (EnvironmentMemory::hexadecimal (project config revision) 0 40)) then (ctor Option.some [Config] config) else (ctor Option.none [Config]))))) else (ctor Option.none [Config]))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: inspect, parameters: [config : Config, store : (List EnvironmentMemory::Observation)], result: Json::Value, + body: (let context : EnvironmentMemory::Context := (EnvironmentMemory::candidateContext (project config task) store (project config repository) (project config revision) (project config query)); (ctor Json::Value.object (cons (0x73706563, (ctor Json::Value.string 0x7233302f656e7669726f6e6d656e742d636f6e746578742f31)) (cons (0x7472757374, (ctor Json::Value.string 0x6f627365727665642d736f75726365732d6e6f742d70726f6f66)) (cons (0x7461736b, (ResearchRecord::task (project context task))) (cons (0x6f62736572766174696f6e73, (ctor Json::Value.array (EnvironmentMemory::encodeItems (project context observations)))) (nil (Bytes * Json::Value)))))))), executable: true +} +definition{ + name: finish, parameters: [config : Config, store : (List EnvironmentMemory::Observation)], result: (State * LexLeanStd.Host::Request), + body: (match (JsonCanonical::file (inspect config store) 1048576 2097152) | Option.none => (error "inspection context exceeds output budget") | Option.some data => ((ctor State.ended), (ctor LexLeanStd.Host::Request.exit (0 : UInt8) data 0x))), axioms: [propext], executable: true +} +definition{ + name: acquisitionConfig, parameters: [config : Config], result: EnvironmentAcquisition::Config, + body: (record EnvironmentAcquisition::Config {request := (record Research::Request {serial := 0, snapshot := (record Research::Snapshot {library := (project config revision), compiler := 0x, model := 0x}), task := (project config task)}), directory := (project config source), repository := (project config repository), revision := (project config revision), path := (project config path), output := (path config "/git-output"), errors := (path config "/git-errors")}), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: acquired, parameters: [config : Config, store : (List EnvironmentMemory::Observation), result : (EnvironmentAcquisition::State * EnvironmentAcquisition::Emission)], result: (State * LexLeanStd.Host::Request), + body: (match (second result) | EnvironmentAcquisition::Emission.host request => ((ctor State.acquiring config store (first result)), request) | EnvironmentAcquisition::Emission.failed reason => (error reason) | EnvironmentAcquisition::Emission.complete item => (match (EnvironmentMemory::ingest item store) | Option.none => (error "memory full or immutable source conflicts with stored content") | Option.some next => (match (EnvironmentMemory::serialize next) | Option.none => (error "memory cannot be serialized within durable byte budget") | Option.some data => ((ctor State.writing config data), (ctor LexLeanStd.Host::Request.write (path config "/observations.pending") data))))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: useStore, parameters: [config : Config, store : (List EnvironmentMemory::Observation)], result: (State * LexLeanStd.Host::Request), + body: (if (project config ingest) then (acquired config store (EnvironmentAcquisition::begin (acquisitionConfig config))) else (finish config store)), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: finished, parameters: [event : LexLeanStd.Host::Event], result: Bool, + body: (match event | LexLeanStd.Host::Event.finished reply => (match reply | Result.ok unit => true | Result.error failure => false) | LexLeanStd.Host::Event.start s => false | LexLeanStd.Host::Event.read r => false | LexLeanStd.Host::Event.listed l => false | LexLeanStd.Host::Event.stat s => false | LexLeanStd.Host::Event.canonical c => false | LexLeanStd.Host::Event.spawned s => false | LexLeanStd.Host::Event.waited w => false), executable: true +} +definition{ + name: fileWithin, parameters: [entry : LexLeanStd.Host::Entry, maximum : Nat], result: Bool, + body: (match (project entry kind) | LexLeanStd.Host::EntryKind.file => (not (maximum false | LexLeanStd.Host::EntryKind.symlink => false | LexLeanStd.Host::EntryKind.other => false), executable: true +} +definition{ + name: checkingStore, parameters: [config : Config, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asStated event) | Option.none => (error "expected memory metadata") | Option.some reply => (match reply | Result.ok entry => (if (fileWithin entry 1048576) then ((ctor State.readingStore config), (ctor LexLeanStd.Host::Request.read (path config "/observations.json"))) else (error "memory must be a regular file within 1 MiB")) | Result.error failure => (match (project failure kind) | LexLeanStd.Host::FailureKind.notFound => (if (project config ingest) then (useStore config (nil EnvironmentMemory::Observation)) else (error "memory store does not exist")) | LexLeanStd.Host::FailureKind.alreadyExists => (error "memory stat failed") | LexLeanStd.Host::FailureKind.denied => (error "memory access denied") | LexLeanStd.Host::FailureKind.other => (error "memory stat failed")))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: readingStore, parameters: [config : Config, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error "expected memory read") | Option.some reply => (match reply | Result.error failure => (error "memory read failed") | Result.ok data => (match (EnvironmentMemory::readback data) | Option.none => (error "malformed or conflicting memory; no overwrite") | Option.some store => (useStore config store)))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: readingRequest, parameters: [home : String, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error "expected request read") | Option.some reply => (match reply | Result.error failure => (error "request read failed") | Result.ok data => (match (parseConfig home data) | Option.none => (error "invalid environment inspection request") | Option.some config => ((ctor State.locking config), (ctor LexLeanStd.Host::Request.lock (path config "/store.lock")))))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: reopening, parameters: [config : Config, expected : Bytes, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error "expected durable memory readback") | Option.some reply => (match reply | Result.error failure => (error "durable memory readback failed; outcome uncertain") | Result.ok data => (if (Toml::sameBytes data expected) then (match (EnvironmentMemory::readback data) | Option.none => (error "stored memory failed validation") | Option.some store => (finish config store)) else (error "stored memory differs; outcome uncertain")))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: resume, parameters: [state : State, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match state | State.checkingRequest home requestPath => (match (Host::asStated event) | Option.none => (error "expected request metadata") | Option.some reply => (match reply | Result.error failure => (error "request metadata failed") | Result.ok entry => (if (fileWithin entry 65536) then ((ctor State.readingRequest home), (ctor LexLeanStd.Host::Request.read requestPath)) else (error "request must be a regular file within 64 KiB")))) | State.readingRequest home => (readingRequest home event) | State.locking config => (if (finished event) then ((ctor State.checkingStore config), (ctor LexLeanStd.Host::Request.stat (path config "/observations.json"))) else (error "memory lock unavailable")) | State.checkingStore config => (checkingStore config event) | State.readingStore config => (readingStore config event) | State.acquiring config store active => (acquired config store (EnvironmentAcquisition::step active event)) | State.writing config data => (if (finished event) then ((ctor State.renaming config data), (ctor LexLeanStd.Host::Request.rename (path config "/observations.pending") (path config "/observations.json"))) else (error "memory write failed; previous store retained")) | State.renaming config data => (if (finished event) then ((ctor State.reopening config data), (ctor LexLeanStd.Host::Request.read (path config "/observations.json"))) else (error "memory replacement failed; inspect private directory")) | State.reopening config data => (reopening config data event) | State.ended => (error "memory command cannot restart")), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: start, parameters: [initial : LexLeanStd.Host::Start], result: (State * LexLeanStd.Host::Request), + body: (match (project initial arguments) | List.nil => (error "usage: environment-memory PRIVATE_STATE_DIRECTORY REQUEST.json") | List.cons home rest => (match rest | List.nil => (error "expected state directory and request") | List.cons requestPath tail => (match tail | List.cons extra more => (error "expected exactly two arguments") | List.nil => (match (ResearchInput::text (ctor Json::Value.string home)) | Option.none => (error "state directory must be printable ASCII") | Option.some directory => (match (ResearchInput::text (ctor Json::Value.string requestPath)) | Option.none => (error "request path must be printable ASCII") | Option.some file => (if ((EnvironmentMemory::bounded home 1024) && (EnvironmentMemory::bounded requestPath 1024)) then ((ctor State.checkingRequest directory file), (ctor LexLeanStd.Host::Request.stat file)) else (error "empty or excessive path"))))))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: step, parameters: [state : (Option State), event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match state | Option.none => (match (Host::asStart event) | Option.none => (error "expected Host start") | Option.some initial => (start initial)) | Option.some active => (resume active event)), axioms: [Quot.sound, propext], executable: true, + production: {effects: [allocation, files, overflow, process, recursion], targets: [rust-std]} +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "native-bounded-environment-inspection" (cons "locked-atomic-store-replacement" (cons "validated-durable-reopen" (cons "exact-task-context-output-without-proof-receipts" (nil String))))), executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentMemoryTraces.lex.tex b/rule30-api/src/EnvironmentMemoryTraces.lex.tex new file mode 100644 index 0000000..0e03a25 --- /dev/null +++ b/rule30-api/src/EnvironmentMemoryTraces.lex.tex @@ -0,0 +1,86 @@ +\begin{lexlean}{EnvironmentMemoryTraces} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentMemory} +\importmodule{Research} +\importmodule{JsonCanonical} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: observation, parameters: [pin : Bytes], result: EnvironmentMemory::Observation, + body: (record EnvironmentMemory::Observation {repository := 0x6166666c6f6d2f72756c653330, revision := pin, path := 0x524541444d452e6d64, content := 0x616263, blob := 0x66326261386638346162356331626365383461376234343163623732313231336461343339363731, digest := 0x62613738313662663866303163666561343134313430646535646165323232336230303336316133393631373761396362343130666636316632303031356164, acquisition := 0x6c6f63616c2d6769742d6f626a656374}) +} +definition{ + name: revision, parameters: [], result: Bytes, + body: 0x65336265343737666465643236333032393437393132373336336637666236613335393765376434 +} +definition{ + name: store, parameters: [], result: (List EnvironmentMemory::Observation), + body: (cons (observation (revision)) (nil EnvironmentMemory::Observation)) +} +definition{ + name: count, parameters: [value : (Option (List EnvironmentMemory::Observation))], result: Nat, + body: (match value | Option.none => 999 | Option.some items => (prim length items : Nat)) +} +theorem{ + name: matchingAbstractionChangesContext, parameters: [], + statement: ((prim length (EnvironmentMemory::retrieve (store) 0x6166666c6f6d2f72756c653330 (revision) 0x6263 8) : Nat) = 1), proof: decide{} +} +theorem{ + name: unrelatedAbstractionHasNoContext, parameters: [], + statement: ((prim length (EnvironmentMemory::retrieve (store) 0x6166666c6f6d2f72756c653330 (revision) 0x7a 8) : Nat) = 0), proof: decide{} +} +theorem{ + name: differentRevisionExcludesOldObservation, parameters: [], + statement: ((prim length (EnvironmentMemory::retrieve (store) 0x6166666c6f6d2f72756c653330 0x30303030303030303030303030303030303030303030303030303030303030303030303030303030 0x6162 8) : Nat) = 0), proof: decide{} +} +theorem{ + name: duplicateIsIdempotent, parameters: [], + statement: ((count (EnvironmentMemory::ingest (observation (revision)) (store))) = 1), proof: decide{}, axioms: [Quot.sound, propext] +} +definition{ + name: falseBlob, parameters: [], result: EnvironmentMemory::Observation, + body: (record EnvironmentMemory::Observation {repository := 0x6166666c6f6d2f72756c653330, revision := (revision), path := 0x524541444d452e6d64, content := 0x616263, blob := 0x30303030303030303030303030303030303030303030303030303030303030303030303030303030, digest := 0x62613738313662663866303163666561343134313430646535646165323232336230303336316133393631373761396362343130666636316632303031356164, acquisition := 0x6c6f63616c2d6769742d6f626a656374}) +} +theorem{ + name: forgedBlobHasOtherwiseValidRecordShape, parameters: [], + statement: ((EnvironmentMemory::valid (falseBlob)) = true), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: freshAcquisitionRejectsStoredFalseBlob, parameters: [], + statement: ((count (EnvironmentMemory::ingest (observation (revision)) (cons (falseBlob) (nil EnvironmentMemory::Observation)))) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: changedRevisionRetainsBoth, parameters: [], + statement: ((count (EnvironmentMemory::ingest (observation 0x30303030303030303030303030303030303030303030303030303030303030303030303030303030) (store))) = 2), proof: decide{}, axioms: [Quot.sound, propext] +} +definition{ + name: reopened, parameters: [], result: Nat, + body: (match (EnvironmentMemory::serialize (store)) | Option.none => 999 | Option.some data => (count (EnvironmentMemory::readback data))), axioms: [Quot.sound, propext] +} +theorem{ + name: serializedStoreReopens, parameters: [], statement: ((reopened) = 1), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: malformedStoreRejected, parameters: [], + statement: ((count (EnvironmentMemory::readback 0x7b)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: duplicateFieldRejected, parameters: [], + statement: ((count (EnvironmentMemory::readback 0x7b2273706563223a227233302f656e7669726f6e6d656e742d6d656d6f72792f31222c2273706563223a227233302f656e7669726f6e6d656e742d6d656d6f72792f31222c226f62736572766174696f6e73223a5b5d7d)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: unknownFieldRejected, parameters: [], + statement: ((count (EnvironmentMemory::readback 0x7b2273706563223a227233302f656e7669726f6e6d656e742d6d656d6f72792f31222c226f62736572766174696f6e73223a5b5d2c2270726f766564223a747275657d)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: escapedRecordBudgetFitsReadback, parameters: [], + statement: ((prim multiply 32 ((prim multiply 6 4096 : Nat) + ((prim multiply 6 556 : Nat) + 256)) : Nat) < 1048576), proof: decide{} +} +theorem{ + name: exactTaskIsPreserved, + parameters: [task : Research::Task, observations : (List EnvironmentMemory::Observation), repository : Bytes, pin : Bytes, query : Bytes], + statement: ((project (EnvironmentMemory::candidateContext task observations repository pin query) task) = task), proof: reflexivity{} +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/ResearchCatalog.lex.tex b/rule30-api/src/ResearchCatalog.lex.tex index a9b8e16..1f664e9 100644 --- a/rule30-api/src/ResearchCatalog.lex.tex +++ b/rule30-api/src/ResearchCatalog.lex.tex @@ -38,6 +38,9 @@ \importmodule{ResearchCohortInput} \importmodule{ResearchCohortCommand} \importmodule{ResearchExecution} +\importmodule{EnvironmentMemory} +\importmodule{EnvironmentAcquisition} +\importmodule{EnvironmentMemoryCommand} \title{Boolean} \begin{semanticmodule} structure{ @@ -89,11 +92,19 @@ axioms: [] } +definition{ + name: environmentScopes, + parameters: [], + result: (List Scope), + body: (cons (record Scope {id := 0x656e7669726f6e6d656e742d6d656d6f7279, module := "EnvironmentMemory", features := (EnvironmentMemory::features)}) (cons (record Scope {id := 0x656e7669726f6e6d656e742d6163717569736974696f6e, module := "EnvironmentAcquisition", features := (EnvironmentAcquisition::features)}) (cons (record Scope {id := 0x656e7669726f6e6d656e742d6d656d6f72792d636f6d6d616e64, module := "EnvironmentMemoryCommand", features := (EnvironmentMemoryCommand::features)}) (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e744d656d6f7279 "EnvironmentMemory") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e744d656d6f7279547261636573 "EnvironmentMemoryTraces") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e744163717569736974696f6e "EnvironmentAcquisition") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e744d656d6f7279436f6d6d616e64 "EnvironmentMemoryCommand") (nil Scope)))))))), + axioms: [] +} + definition{ name: registeredScopes, parameters: [], result: (List Scope), - body: (prim append (facetScopes) (moduleScopes) : (List Scope)), + body: (prim append (environmentScopes) (prim append (facetScopes) (moduleScopes) : (List Scope)) : (List Scope)), axioms: [] } diff --git a/rule30-api/src/ResearchTraces.lex.tex b/rule30-api/src/ResearchTraces.lex.tex index 8bc994a..c79b971 100644 --- a/rule30-api/src/ResearchTraces.lex.tex +++ b/rule30-api/src/ResearchTraces.lex.tex @@ -345,7 +345,7 @@ theorem{ name: everyApplicationAndLibraryModuleGetsOneMaintenanceTask, parameters: [], - statement: ((prim length (ResearchCatalog::maintenanceTasks (ResearchCatalog::registeredScopes)) : Nat) = 146), + statement: ((prim length (ResearchCatalog::maintenanceTasks (ResearchCatalog::registeredScopes)) : Nat) = 150), proof: decide{} } definition{ diff --git a/rule30-lexlean/Core.pdf b/rule30-lexlean/Core.pdf index 16d399baa6103f84f67a1cfc4625ac8d443605b2..8b812ac07e65609ae2ae12eb7bc09a43688ee6d2 100644 GIT binary patch delta 123 zcmcb6hWYLp<_&XhDjOOY7#bKwX>#fN=BKzMmZU0ZxL6q(7?~Lw8k#^PH}Ah$!s%?` tW^C$WY3OWZ?(Ax0WNd0;>1g2WW@zkU>166^?Cff%U_(gB=Ca4nnE>GwdX>#fN=BKzMmZU0ZxL6q(7?~Lw8k#^PH}Ah$!s%>o t;OydJY+&H*X5r@MWb9(>WNd0?;bdUsXlUT#Xl!ApU_(gB=Ca4nnE>u}BIW=9 diff --git a/rule30-lexlean/pdf/Core.pdf b/rule30-lexlean/pdf/Core.pdf index 16d399baa6103f84f67a1cfc4625ac8d443605b2..8b812ac07e65609ae2ae12eb7bc09a43688ee6d2 100644 GIT binary patch delta 123 zcmcb6hWYLp<_&XhDjOOY7#bKwX>#fN=BKzMmZU0ZxL6q(7?~Lw8k#^PH}Ah$!s%?` tW^C$WY3OWZ?(Ax0WNd0;>1g2WW@zkU>166^?Cff%U_(gB=Ca4nnE>GwdX>#fN=BKzMmZU0ZxL6q(7?~Lw8k#^PH}Ah$!s%>o t;OydJY+&H*X5r@MWb9(>WNd0?;bdUsXlUT#Xl!ApU_(gB=Ca4nnE>u}BIW=9 diff --git a/rule30-paper/Observations.pdf b/rule30-paper/Observations.pdf index 9c2293f4eaa627a7374cbf72615e5d9183adb202..e531f8fd83328b507c66502b922b02958eaaa761 100644 GIT binary patch delta 116 zcmex%OW@lrfrb{w7N!>FEiBO@Y=#B~h6d)-6Gd3Wq3rE-A}l+2oK2n0%`IFVjZH0# lEiD|K4P9K#T}@5QjGRmijGTFEiBO@YzC%=1}4VS6Gd3Wq3rE-A}l+2oDCdZ4NZ;BO=bMWDcN4B$nuvP09ZsGFaQ7m diff --git a/rule30-paper/Paper.pdf b/rule30-paper/Paper.pdf index 3da3c8ad088d2de23762893ce12de58677596dce..d3adb2e8c9c78584a13bf650fa9a0f470894f25c 100644 GIT binary patch delta 153 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`=bcMrMYFh9(fn?feV)MA@B<9i7eHT-@9&+?-uq%q)P~T-;m?EuGw) W%!~{zjm+&7YzQgYp1zz=bcMrMYFh9(fn?feV)MA@C43|%b@%p8p!om@@bjGfI4Ele%lEG!+} XT#O8ijol3F6l@47*`B_fPhJTCyoM*v diff --git a/rule30-paper/pdf/Observations.pdf b/rule30-paper/pdf/Observations.pdf index 9c2293f4eaa627a7374cbf72615e5d9183adb202..e531f8fd83328b507c66502b922b02958eaaa761 100644 GIT binary patch delta 116 zcmex%OW@lrfrb{w7N!>FEiBO@Y=#B~h6d)-6Gd3Wq3rE-A}l+2oK2n0%`IFVjZH0# lEiD|K4P9K#T}@5QjGRmijGTFEiBO@YzC%=1}4VS6Gd3Wq3rE-A}l+2oDCdZ4NZ;BO=bMWDcN4B$nuvP09ZsGFaQ7m diff --git a/rule30-paper/pdf/Paper.pdf b/rule30-paper/pdf/Paper.pdf index 3da3c8ad088d2de23762893ce12de58677596dce..d3adb2e8c9c78584a13bf650fa9a0f470894f25c 100644 GIT binary patch delta 153 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`=bcMrMYFh9(fn?feV)MA@B<9i7eHT-@9&+?-uq%q)P~T-;m?EuGw) W%!~{zjm+&7YzQgYp1zz=bcMrMYFh9(fn?feV)MA@C43|%b@%p8p!om@@bjGfI4Ele%lEG!+} XT#O8ijol3F6l@47*`B_fPhJTCyoM*v