From ef0f7a9ae5ef405e0b7dce37ee5d242d17e16b52 Mon Sep 17 00:00:00 2001 From: Alexander Flom Date: Sun, 15 Nov 2026 15:37:25 +0000 Subject: [PATCH] Add supplied-context research attempts --- 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/lexlean.lock | 2 +- rule30-api/lexlean.toml | 2 +- rule30-api/production/ENVIRONMENT-RESEARCH.md | 106 +++++++++ .../environment-research-example.json | 222 ++++++++++++++++++ .../environment-research-request.json | 18 ++ .../src/EnvironmentResearchCommand.lex.tex | 74 ++++++ .../src/EnvironmentResearchInput.lex.tex | 104 ++++++++ .../src/EnvironmentResearchSelection.lex.tex | 55 +++++ .../src/EnvironmentResearchTraces.lex.tex | 129 ++++++++++ .../src/EnvironmentResearchWireTraces.lex.tex | 72 ++++++ rule30-api/src/ResearchCatalog.lex.tex | 11 +- 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 22 files changed, 796 insertions(+), 11 deletions(-) create mode 100644 rule30-api/production/ENVIRONMENT-RESEARCH.md create mode 100644 rule30-api/production/environment-research-example.json create mode 100644 rule30-api/production/environment-research-request.json create mode 100644 rule30-api/src/EnvironmentResearchCommand.lex.tex create mode 100644 rule30-api/src/EnvironmentResearchInput.lex.tex create mode 100644 rule30-api/src/EnvironmentResearchSelection.lex.tex create mode 100644 rule30-api/src/EnvironmentResearchTraces.lex.tex create mode 100644 rule30-api/src/EnvironmentResearchWireTraces.lex.tex diff --git a/Rule30-Core.pdf b/Rule30-Core.pdf index f2a86ff129cbc3080b2b49f2ad3b7f2b4da13dde..8e8515bbe5dda018e37ca242c8c888ec7d475505 100644 GIT binary patch delta 124 zcmcb6hWYLp<_)uNs+by@8yOjyL}_yA`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s+bh rG delta 124 zcmcb6hWYLp<_)uNs+brV8JZg#M`?2D`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s%>i tVQg$*YG&bTY~*Ha?B-}_XkhBdqB1ixL diff --git a/Rule30-Observations.pdf b/Rule30-Observations.pdf index 0314f9ccb017e0669a295872f8b7ede8ade52905..0ca2989ed2e81778f783af1d830cbd75c2261eb2 100644 GIT binary patch delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y?52k1Mn=X4(-TEl#9*B5bs{V~c%03g9L-IQ%v~%j mEL@EZTudzuElo@<9i2>EUCqr5%w6mhYzQgYUa83Pmm2_(pdPXS delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y>?TG=hUUf=(-TEl#9*B5bs{V~c$`g*44j<|oJ~yK mT%4Uvoh=PqT$~LJEZyAPOikP@+)V5gYzQgYUa83Pmm2`7p&w8H diff --git a/Rule30-Paper.pdf b/Rule30-Paper.pdf index ca9cc31a467b7395a1cdb9b2461038a95fe85954..5d886ffe6e8cc9927541dad5abb58103cafa3733 100644 GIT binary patch delta 154 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`FQJP%( zzWFIGi6yBD8ZK5w21aIvhK5kd?feV)MA@A!OpQ&A-Hgl)Elpfp4P4EPjoh3q3{6ek XTudxnolTtW6l@47*`B_fPhJTC-2f-{ delta 154 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg` (ctor LexLeanStd.Host::Request.exit (70 : UInt8) 0x 0x726573756c7420656e636f64696e67206661696c65643b20696e73706563742072657461696e65642065766964656e6365206265666f72652072657472790a) | Option.some data => (ctor LexLeanStd.Host::Request.exit status data 0x))), + axioms: [propext], executable: true +} +definition{ + name: error, parameters: [session : (Option ResearchSession::State), status : UInt8, selection : Json::Value, reason : Bytes], result: (State * LexLeanStd.Host::Request), + body: (finish session status selection (ctor Json::Value.object (cons (0x73706563, (ctor Json::Value.string 0x7233302f72657365617263682d726573756c742f31)) (cons (0x737461747573, (ctor Json::Value.string 0x6661696c6564)) (cons (0x726561736f6e, (ctor Json::Value.string reason)) (cons (0x7265636f766572795f776f726b7370616365, (ResearchCommand::recoveryPath session)) (nil (Bytes * Json::Value)))))))), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: empty, parameters: [], result: Json::Value, + body: (ctor Json::Value.object (nil (Bytes * Json::Value))), + axioms: [], executable: true +} +definition{ + name: advance, parameters: [selection : Json::Value, result : (ResearchSession::State * ResearchSession::Emission)], result: (State * LexLeanStd.Host::Request), + body: (match (second result) | ResearchSession::Emission.host request => ((ctor State.active selection (first result)), request) | ResearchSession::Emission.complete answer identity => (finish (ctor Option.some [ResearchSession::State] (first result)) (if (ResearchSession::isChecked answer) then (0 : UInt8) else (1 : UInt8)) selection (ctor Json::Value.object (cons (0x73706563, (ctor Json::Value.string 0x7233302f72657365617263682d726573756c742f31)) (cons (0x737461747573, (ResearchCommand::status (project answer result))) (cons (0x72657175657374, (ResearchRecord::request (project answer request))) (cons (0x65766964656e6365, (ctor Json::Value.string identity)) (cons (0x64657461696c, (ResearchCommand::detail (project answer result))) (nil (Bytes * Json::Value))))))))) | ResearchSession::Emission.blocked reason => (error (ctor Option.some [ResearchSession::State] (first result)) (1 : UInt8) selection (prim utf8_encode reason : Bytes)) | ResearchSession::Emission.awaiting => (error (ctor Option.some [ResearchSession::State] (first result)) (70 : UInt8) selection 0x73657373696f6e20686173206e6f206f75747374616e64696e6720686f73742072657175657374)), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: acceptInput, parameters: [data : Bytes, environment : (List (Bytes * Bytes))], result: (State * LexLeanStd.Host::Request), + body: (match (EnvironmentResearchInput::decode data environment) | Option.none => (error (ctor Option.none [ResearchSession::State]) (2 : UInt8) (empty) 0x696e76616c696420737570706c69656420636f6e746578742c20706c616e206f722063616e64696461746520706f6f6c) | Option.some input => (match (EnvironmentResearchSelection::choose (project input candidates) (project input observations)) | Option.none => (error (ctor Option.none [ResearchSession::State]) (2 : UInt8) (empty) 0x656d7074792063616e64696461746520706f6f6c) | Option.some choice => (advance (EnvironmentResearchSelection::document choice (project input inputDigest)) (ResearchSession::begin (project (project choice candidate) config))))), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: readResult, parameters: [environment : (List (Bytes * Bytes)), event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error (ctor Option.none [ResearchSession::State]) (70 : UInt8) (empty) 0x657870656374656420726571756573742072656164) | Option.some response => (match response | Result.error failure => (error (ctor Option.none [ResearchSession::State]) (1 : UInt8) (empty) (project failure message)) | Result.ok data => (acceptInput data environment))), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: help, parameters: [], result: (State * LexLeanStd.Host::Request), + body: ((ctor State.ended (ctor Option.none [ResearchSession::State])), (ctor LexLeanStd.Host::Request.exit (0 : UInt8) 0x75736167653a207233302d656e7669726f6e6d656e742d726573656172636820524551554553542e6a736f6e0a52756e206f6e6520737570706c69656420636c6f7365642d676f616c2063616e6469646174652073656c656374656420627920756e7472757374656420737570706c69656420636f6e746578742e0a4e6f206163717569736974696f6e206f72206d656d6f72792d73746f7265206163636573732e2043616c6c6572206d75737420656e666f72636520612077686f6c652d72756e20646561646c696e652e0a41206b696c6c65642070726f6365737320646f6573206e6f742065737461626c6973682064657363656e64616e7420636c65616e75702e20496e73706563742072657461696e65642065766964656e6365206265666f72652072657472792e0a 0x)), + axioms: [], executable: true +} +definition{ + name: start, parameters: [incoming : LexLeanStd.Host::Start], result: (State * LexLeanStd.Host::Request), + body: (match (project incoming arguments) | List.nil => (help) | List.cons path rest => (match rest | List.cons extra more => (error (ctor Option.none [ResearchSession::State]) (2 : UInt8) (empty) 0x6578706563746564206f6e6520726571756573742066696c656e616d65) | List.nil => (if ((Toml::sameBytes path 0x2d2d68656c70) || (Toml::sameBytes path 0x2d68)) then (help) else (if ((0 (match (Host::asStart event) | Option.none => (error (ctor Option.none [ResearchSession::State]) (70 : UInt8) (empty) 0x6578706563746564206e617469766520686f7374207374617274) | Option.some incoming => (start incoming)) | Option.some current => (match current | State.reading environment => (readResult environment event) | State.active selection session => (advance selection (ResearchSession::step session (ctor ResearchSession::Event.host event))) | State.ended session => (error session (70 : UInt8) (empty) 0x656e64656420636f6d6d616e642063616e6e6f74207265747279))), + 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 "single-owned-research-session" (cons "no-memory-store-access" (cons "supplied-context-is-not-proof-authority" (cons "terminal-no-retry" (nil String))))), + axioms: [], executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentResearchInput.lex.tex b/rule30-api/src/EnvironmentResearchInput.lex.tex new file mode 100644 index 0000000..d0b6faa --- /dev/null +++ b/rule30-api/src/EnvironmentResearchInput.lex.tex @@ -0,0 +1,104 @@ +\begin{lexlean}{EnvironmentResearchInput} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentPlan} +\importmodule{EnvironmentMemory} +\importmodule{ResearchInput} +\importmodule{ResearchProject} +\importmodule{ResearchFactory} +\importmodule{ResearchRecord} +\importmodule{Research} +\importmodule{CandidateBinding} +\importmodule{CoreBinding} +\importmodule{CoreNotation} +\importmodule{Json} +\importmodule{JsonCanonical} +\importmodule{Toml} +\importmodule{LexLeanStd.Sha256} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Candidate, type_parameters: [], parameters: [], + fields: [{name: cue, type: Bytes}, {name: config, type: ResearchProject::Config}] +} +structure{ + name: Input, type_parameters: [], parameters: [], + fields: [{name: plan, type: EnvironmentPlan::Plan}, {name: observations, type: (List EnvironmentMemory::Observation)}, {name: candidates, type: (List Candidate)}, {name: inputDigest, type: Bytes}] +} +definition{ + name: statusCode, parameters: [value : Research::Status], result: Nat, + body: (match value | Research::Status.ready => 0 | Research::Status.waiting => 1 | Research::Status.blocked => 2 | Research::Status.established => 3 | Research::Status.exhausted => 4), + axioms: [], executable: true +} +definition{ + name: sameTask, parameters: [left : Research::Task, right : Research::Task], result: Bool, + body: (((project left age) =? (project right age)) && (((project left weight) =? (project right weight)) && (((statusCode (project left status)) =? (statusCode (project right status))) && ((Toml::sameBytes (project left id) (project right id)) && ((Research::samePurpose (project left purpose) (project right purpose)) && ((Research::samePurpose (project left intent) (project right intent)) && ((prim equal (project left component) (project right component) : Bool) && ((Research::sameSources (project left sources) (project right sources)) && ((Toml::sameBytes (project left schema) (project right schema)) && (Research::sameSequent (project left sequent) (project right sequent))))))))))), + axioms: [], executable: true +} +definition{ + name: ordered, parameters: [sources : (List EnvironmentPlan::Source), items : (List EnvironmentMemory::Observation), query : Bytes], result: Bool, + body: (match sources | List.nil => (match items | List.nil => true | List.cons item remaining => false) | List.cons source rest => (match items | List.nil => true | List.cons item remaining => (if (EnvironmentPlan::matches source item) then ((EnvironmentMemory::contains (project item content) query) && (ordered rest remaining query)) else (ordered rest items query)))), + axioms: [], recursive_argument: sources, executable: true +} +definition{ + name: observations, parameters: [values : (List Json::Value), fuel : Nat], result: (Option (List EnvironmentMemory::Observation)), + body: (match values | List.nil => (ctor Option.some [(List EnvironmentMemory::Observation)] (nil EnvironmentMemory::Observation)) | List.cons value tail => (match fuel | Nat.zero => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Nat.succ more => (match (EnvironmentMemory::decode value) | Option.none => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Option.some item => (match (observations tail more) | Option.none => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Option.some rest => (ctor Option.some [(List EnvironmentMemory::Observation)] (cons item rest)))))), + axioms: [Quot.sound, propext], recursive_argument: values, executable: true +} +definition{ + name: queryPlan, parameters: [value : Json::Value], result: (Option EnvironmentPlan::Plan), + body: (match (JsonCanonical::encode value 65536 131072) | Option.none => (ctor Option.none [EnvironmentPlan::Plan]) | Option.some data => (match (EnvironmentPlan::parse data) | Option.none => (ctor Option.none [EnvironmentPlan::Plan]) | Option.some plan => (if (not (project plan ingest)) then (ctor Option.some [EnvironmentPlan::Plan] plan) else (ctor Option.none [EnvironmentPlan::Plan])))), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: contextValue, parameters: [plan : EnvironmentPlan::Plan, value : Json::Value], result: (Option (List EnvironmentMemory::Observation)), + body: (if ((CoreNotation::shape value (cons 0x73706563 (cons 0x7472757374 (cons 0x7461736b (cons 0x6f62736572766174696f6e73 (nil Bytes)))))) && ((ResearchInput::stringIs (CoreBinding::get value 0x73706563) 0x7233302f656e7669726f6e6d656e742d636f6e746578742f31) && (ResearchInput::stringIs (CoreBinding::get value 0x7472757374) 0x6f627365727665642d736f75726365732d6e6f742d70726f6f66))) then (match (ResearchInput::task (CoreBinding::get value 0x7461736b)) | Option.none => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Option.some task => (if (sameTask task (project plan task)) then (match (ResearchInput::array (CoreBinding::get value 0x6f62736572766174696f6e73)) | Option.none => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Option.some values => (match (observations values 8) | Option.none => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Option.some items => (if (ordered (project plan sources) items (project plan query)) then (ctor Option.some [(List EnvironmentMemory::Observation)] items) else (ctor Option.none [(List EnvironmentMemory::Observation)])))) else (ctor Option.none [(List EnvironmentMemory::Observation)]))) else (ctor Option.none [(List EnvironmentMemory::Observation)])), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: context, parameters: [plan : EnvironmentPlan::Plan, value : Json::Value], result: (Option (List EnvironmentMemory::Observation)), + body: (match (JsonCanonical::encode value 1048576 2097152) | Option.none => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Option.some data => (match (Json::parse data 1048576 16) | Result.error problem => (ctor Option.none [(List EnvironmentMemory::Observation)]) | Result.ok parsed => (contextValue plan parsed))), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: shared, parameters: [left : ResearchProject::Config, right : ResearchProject::Config], result: Bool, + body: ((ResearchProject::sameWorkspace (project left workspace) (project right workspace)) && ((ResearchFactory::sameTools (project left tools) (project right tools)) && (((Research::sameRequest (project left request) (project right request)) && (sameTask (project (project left request) task) (project (project right request) task))) && (((project left maxBytes) =? (project right maxBytes)) && (((project left maxDepth) =? (project right maxDepth)) && ((project left maxSteps) =? (project right maxSteps))))))), + axioms: [], executable: true +} +definition{ + name: strictTarget, parameters: [data : Bytes, maxBytes : Nat, maxDepth : Nat, maxSteps : Nat], result: Bool, + body: (match (Json::parse data maxBytes maxDepth) | Result.error problem => false | Result.ok value => (match (ResearchInput::arena value) | Option.none => false | Option.some goal => (if ((project goal root) false | Option.some rendered => true) else false))), + axioms: [propext], executable: true +} +definition{ + name: closed, parameters: [config : ResearchProject::Config], result: Bool, + body: ((strictTarget (project (project (project (project config request) task) sequent) target) (project config maxBytes) (project config maxDepth) (project config maxSteps)) && (match (CandidateBinding::selectedClosed (project config request) (project config maxBytes) (project config maxDepth) (project config maxSteps)) | Option.none => false | Option.some goal => true)), + axioms: [propext], executable: true +} +definition{ + name: candidate, parameters: [value : Json::Value, task : Research::Task, environment : (List (String * String))], result: (Option Candidate), + body: (if (CoreNotation::shape value (cons 0x637565 (cons 0x617474656d7074 (nil Bytes)))) then (match (ResearchInput::bytes (CoreBinding::get value 0x637565)) | Option.none => (ctor Option.none [Candidate]) | Option.some cue => (if (EnvironmentMemory::bounded cue 128) then (match (ResearchInput::suppliedConfig (CoreBinding::get value 0x617474656d7074) environment) | Option.none => (ctor Option.none [Candidate]) | Option.some config => (if ((sameTask (project (project config request) task) task) && ((closed config) && (ResearchFactory::candidateReady config))) then (ctor Option.some [Candidate] (record Candidate {cue := cue, config := config})) else (ctor Option.none [Candidate]))) else (ctor Option.none [Candidate]))) else (ctor Option.none [Candidate])), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: candidates, parameters: [values : (List Json::Value), task : Research::Task, environment : (List (String * String)), base : ResearchProject::Config, fuel : Nat], result: (Option (List Candidate)), + body: (match values | List.nil => (ctor Option.some [(List Candidate)] (nil Candidate)) | List.cons head tail => (match fuel | Nat.zero => (ctor Option.none [(List Candidate)]) | Nat.succ more => (match (candidate head task environment) | Option.none => (ctor Option.none [(List Candidate)]) | Option.some item => (if (shared base (project item config)) then (match (candidates tail task environment base more) | Option.none => (ctor Option.none [(List Candidate)]) | Option.some rest => (ctor Option.some [(List Candidate)] (cons item rest))) else (ctor Option.none [(List Candidate)]))))), + axioms: [Quot.sound, propext], recursive_argument: values, executable: true +} +definition{ + name: admitValue, parameters: [value : Json::Value, environment : (List (String * String)), digest : Bytes], result: (Option Input), + body: (if ((CoreNotation::shape value (cons 0x73706563 (cons 0x706c616e (cons 0x636f6e74657874 (cons 0x63616e64696461746573 (nil Bytes)))))) && (ResearchInput::stringIs (CoreBinding::get value 0x73706563) 0x7233302f656e7669726f6e6d656e742d72657365617263682f31)) then (match (queryPlan (CoreBinding::get value 0x706c616e)) | Option.none => (ctor Option.none [Input]) | Option.some plan => (match (context plan (CoreBinding::get value 0x636f6e74657874)) | Option.none => (ctor Option.none [Input]) | Option.some items => (match (ResearchInput::array (CoreBinding::get value 0x63616e64696461746573)) | Option.none => (ctor Option.none [Input]) | Option.some values => (match values | List.nil => (ctor Option.none [Input]) | List.cons head tail => (match (candidate head (project plan task) environment) | Option.none => (ctor Option.none [Input]) | Option.some initial => (match (candidates tail (project plan task) environment (project initial config) 15) | Option.none => (ctor Option.none [Input]) | Option.some pool => (ctor Option.some [Input] (record Input {plan := plan, observations := items, candidates := (cons initial pool), inputDigest := digest})))))))) else (ctor Option.none [Input])), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: decode, parameters: [data : Bytes, environment : (List (Bytes * Bytes))], result: (Option Input), + body: (match (Json::parse data 8388608 96) | Result.error problem => (ctor Option.none [Input]) | Result.ok value => (match (ResearchInput::environment environment) | Option.none => (ctor Option.none [Input]) | Option.some env => (admitValue value env (LexLeanStd.Sha256::sha256Hex data)))), + axioms: [Quot.sound, propext], executable: true +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "complete-task-and-control-equality" (cons "closed-supplied-candidates-only" (cons "ordered-digest-checked-context-before-effects" (nil String)))), + axioms: [], executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentResearchSelection.lex.tex b/rule30-api/src/EnvironmentResearchSelection.lex.tex new file mode 100644 index 0000000..446d246 --- /dev/null +++ b/rule30-api/src/EnvironmentResearchSelection.lex.tex @@ -0,0 +1,55 @@ +\begin{lexlean}{EnvironmentResearchSelection} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentResearchInput} +\importmodule{EnvironmentMemory} +\importmodule{Json} +\importmodule{CoreBinding} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Choice, type_parameters: [], parameters: [], + fields: [{name: candidate, type: EnvironmentResearchInput::Candidate}, {name: index, type: Nat}, {name: score, type: Nat}, {name: matched, type: (List Nat)}] +} +definition{ + name: hits, parameters: [cue : Bytes, items : (List EnvironmentMemory::Observation), index : Nat], result: (List Nat), + body: (match items | List.nil => (nil Nat) | List.cons head tail => (if (EnvironmentMemory::contains (project head content) cue) then (cons index (hits cue tail (index + 1))) else (hits cue tail (index + 1)))), + axioms: [], recursive_argument: items, executable: true +} +definition{ + name: rank, parameters: [candidate : EnvironmentResearchInput::Candidate, items : (List EnvironmentMemory::Observation), index : Nat], result: Choice, + body: (let matched : (List Nat) := (hits (project candidate cue) items 0); (record Choice {candidate := candidate, index := index, score := (prim length matched : Nat), matched := matched})), + axioms: [], executable: true +} +definition{ + name: better, parameters: [best : Choice, candidate : Choice], result: Choice, + body: (if ((project best score) best | List.cons head tail => (rest tail items (index + 1) (better best (rank head items index)))), + axioms: [], recursive_argument: pool, executable: true +} +definition{ + name: choose, parameters: [pool : (List EnvironmentResearchInput::Candidate), items : (List EnvironmentMemory::Observation)], result: (Option Choice), + body: (match pool | List.nil => (ctor Option.none [Choice]) | List.cons head tail => (ctor Option.some [Choice] (rest tail items 1 (rank head items 0)))), + axioms: [], executable: true +} +definition{ + name: indices, parameters: [values : (List Nat)], result: (List Json::Value), + body: (match values | List.nil => (nil Json::Value) | List.cons head tail => (cons (CoreBinding::number head) (indices tail))), + axioms: [], recursive_argument: values, executable: true +} +definition{ + name: document, parameters: [choice : Choice, digest : Bytes], result: Json::Value, + body: (ctor Json::Value.object (cons (0x706f6c696379, (ctor Json::Value.string 0x7233302f636f6e746578742d6375652d636f756e742f31)) (cons (0x636f6e746578745f617574686f72697479, (ctor Json::Value.string 0x737570706c6965642f73656c662d636f6e73697374656e742f6e6f742d61757468656e74696361746564)) (cons (0x726571756573745f736861323536, (ctor Json::Value.string digest)) (cons (0x63686f73656e5f696e646578, (CoreBinding::number (project choice index))) (cons (0x73636f7265, (CoreBinding::number (project choice score))) (cons (0x6d6174636865645f6f62736572766174696f6e73, (ctor Json::Value.array (indices (project choice matched)))) (cons (0x66616c6c6261636b, (ctor Json::Value.boolean ((project choice score) =? 0))) (nil (Bytes * Json::Value)))))))))), + axioms: [], executable: true +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "one-hit-per-observation" (cons "stable-first-maximum" (cons "unchanged-selected-candidate" (nil String)))), + axioms: [], executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentResearchTraces.lex.tex b/rule30-api/src/EnvironmentResearchTraces.lex.tex new file mode 100644 index 0000000..45b8b98 --- /dev/null +++ b/rule30-api/src/EnvironmentResearchTraces.lex.tex @@ -0,0 +1,129 @@ +\begin{lexlean}{EnvironmentResearchTraces} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentResearchInput} +\importmodule{EnvironmentResearchSelection} +\importmodule{EnvironmentResearchCommand} +\importmodule{EnvironmentMemory} +\importmodule{EnvironmentPlan} +\importmodule{Research} +\importmodule{ResearchProject} +\importmodule{ResearchSession} +\importmodule{LexLeanStd.Host} +\importmodule{Json} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: item, parameters: [repo : Bytes, content : Bytes], result: EnvironmentMemory::Observation, + body: (record EnvironmentMemory::Observation {repository := repo, revision := 0x72, path := 0x70, content := content, blob := 0x62, digest := 0x64, acquisition := 0x61}), + axioms: [], executable: true +} +definition{ + name: source, parameters: [repo : Bytes], result: EnvironmentPlan::Source, + body: (record EnvironmentPlan::Source {repository := repo, revision := 0x72, path := 0x70, directory := ""}), + axioms: [], executable: true +} +definition{ + name: task, parameters: [age : Nat, weight : Nat, status : Research::Status], result: Research::Task, + body: (record Research::Task {id := 0x69, purpose := (ctor Research::Purpose.prove), intent := (ctor Research::Purpose.prove), status := status, component := "deduction", sources := (cons 0x54727565 (nil Bytes)), schema := 0x73, sequent := (record Research::Sequent {origin := 0x54727565, theorem := 0x54727565, premise := 0, telescope := 0x, target := 0x74, kind := (ctor Research::GoalKind.closed)}), age := age, weight := weight}), + axioms: [], executable: true +} +theorem{ + name: ageIsPartOfTaskIdentity, parameters: [], + statement: ((EnvironmentResearchInput::sameTask (task 0 1 (ctor Research::Status.ready)) (task 1 1 (ctor Research::Status.ready))) = false), proof: decide{}, axioms: [] +} +theorem{ + name: weightIsPartOfTaskIdentity, parameters: [], + statement: ((EnvironmentResearchInput::sameTask (task 0 1 (ctor Research::Status.ready)) (task 0 2 (ctor Research::Status.ready))) = false), proof: decide{}, axioms: [] +} +theorem{ + name: statusIsPartOfTaskIdentity, parameters: [], + statement: ((EnvironmentResearchInput::sameTask (task 0 1 (ctor Research::Status.ready)) (task 0 1 (ctor Research::Status.blocked))) = false), proof: decide{}, axioms: [] +} +theorem{ + name: missingPlannedObservationsAllowed, parameters: [], + statement: ((EnvironmentResearchInput::ordered (cons (source 0x61) (cons (source 0x62) (cons (source 0x63) (nil EnvironmentPlan::Source)))) (cons (item 0x61 0x78) (cons (item 0x63 0x78) (nil EnvironmentMemory::Observation))) 0x78) = true), proof: decide{}, axioms: [] +} +theorem{ + name: unexpectedKeyRefused, parameters: [], + statement: ((EnvironmentResearchInput::ordered (cons (source 0x61) (cons (source 0x62) (cons (source 0x63) (nil EnvironmentPlan::Source)))) (cons (item 0x64 0x78) (nil EnvironmentMemory::Observation)) 0x78) = false), proof: decide{}, axioms: [] +} +theorem{ + name: reversedPlanOrderRefused, parameters: [], + statement: ((EnvironmentResearchInput::ordered (cons (source 0x61) (cons (source 0x62) (cons (source 0x63) (nil EnvironmentPlan::Source)))) (cons (item 0x62 0x78) (cons (item 0x61 0x78) (nil EnvironmentMemory::Observation))) 0x78) = false), proof: decide{}, axioms: [] +} +theorem{ + name: duplicateObservationRefused, parameters: [], + statement: ((EnvironmentResearchInput::ordered (cons (source 0x61) (cons (source 0x62) (cons (source 0x63) (nil EnvironmentPlan::Source)))) (cons (item 0x61 0x78) (cons (item 0x61 0x78) (nil EnvironmentMemory::Observation))) 0x78) = false), proof: decide{}, axioms: [] +} +theorem{ + name: queryMismatchRefused, parameters: [], + statement: ((EnvironmentResearchInput::ordered (cons (source 0x61) (cons (source 0x62) (cons (source 0x63) (nil EnvironmentPlan::Source)))) (cons (item 0x61 0x79) (nil EnvironmentMemory::Observation)) 0x78) = false), proof: decide{}, axioms: [] +} +theorem{ + name: emptyContextAllowed, parameters: [], + statement: ((EnvironmentResearchInput::ordered (cons (source 0x61) (cons (source 0x62) (cons (source 0x63) (nil EnvironmentPlan::Source)))) (nil EnvironmentMemory::Observation) 0x78) = true), proof: decide{}, axioms: [] +} +theorem{ + name: oneHitPerObservation, parameters: [], + statement: ((EnvironmentResearchSelection::hits 0x78 (cons (item 0x61 0x787878) (cons (item 0x62 0x79) (cons (item 0x63 0x7879) (nil EnvironmentMemory::Observation)))) 0) = (cons 0 (cons 2 (nil Nat)))), proof: decide{}, axioms: [] +} +theorem{ + name: hostileTextHasNoSpecialInterpretation, parameters: [], + statement: ((EnvironmentResearchSelection::hits 0x2428 (cons (item 0x61 0x2428726d20616e797468696e67293b20696d706f7274204576696c) (nil EnvironmentMemory::Observation)) 0) = (cons 0 (nil Nat))), proof: decide{}, axioms: [] +} +theorem{ + name: emptyContextHasNoHits, parameters: [cue : Bytes], + statement: ((EnvironmentResearchSelection::hits cue (nil EnvironmentMemory::Observation) 0) = (nil Nat)), proof: reflexivity{}, axioms: [] +} +theorem{ + name: singletonRetainsTheEntireCandidate, parameters: [entry : EnvironmentResearchInput::Candidate, items : (List EnvironmentMemory::Observation)], + statement: ((EnvironmentResearchSelection::choose (cons entry (nil EnvironmentResearchInput::Candidate)) items) = (ctor Option.some [EnvironmentResearchSelection::Choice] (EnvironmentResearchSelection::rank entry items 0))), proof: reflexivity{}, axioms: [] +} +theorem{ + name: emptyPoolCannotSelect, parameters: [], + statement: ((EnvironmentResearchSelection::choose (nil EnvironmentResearchInput::Candidate) (nil EnvironmentMemory::Observation)) = (ctor Option.none [EnvironmentResearchSelection::Choice])), proof: reflexivity{}, axioms: [] +} +theorem{ + name: equalScoreKeepsEarlierCandidate, parameters: [a : EnvironmentResearchInput::Candidate, b : EnvironmentResearchInput::Candidate], + statement: ((EnvironmentResearchSelection::better (record EnvironmentResearchSelection::Choice {candidate := a, index := 0, score := 1, matched := (nil Nat)}) (record EnvironmentResearchSelection::Choice {candidate := b, index := 1, score := 1, matched := (nil Nat)})) = (record EnvironmentResearchSelection::Choice {candidate := a, index := 0, score := 1, matched := (nil Nat)})), proof: reflexivity{}, axioms: [] +} +theorem{ + name: higherScoreWins, parameters: [a : EnvironmentResearchInput::Candidate, b : EnvironmentResearchInput::Candidate], + statement: ((EnvironmentResearchSelection::better (record EnvironmentResearchSelection::Choice {candidate := a, index := 0, score := 1, matched := (nil Nat)}) (record EnvironmentResearchSelection::Choice {candidate := b, index := 1, score := 2, matched := (nil Nat)})) = (record EnvironmentResearchSelection::Choice {candidate := b, index := 1, score := 2, matched := (nil Nat)})), proof: reflexivity{}, axioms: [] +} +theorem{ + name: zeroContextFallsBackToFirst, parameters: [a : EnvironmentResearchInput::Candidate, b : EnvironmentResearchInput::Candidate], + statement: ((EnvironmentResearchSelection::choose (cons a (cons b (nil EnvironmentResearchInput::Candidate))) (nil EnvironmentMemory::Observation)) = (ctor Option.some [EnvironmentResearchSelection::Choice] (EnvironmentResearchSelection::rank a (nil EnvironmentMemory::Observation) 0))), proof: reflexivity{}, axioms: [] +} +theorem{ + name: contextSelectsFirst, parameters: [config : ResearchProject::Config], + statement: ((match (EnvironmentResearchSelection::choose (cons (record EnvironmentResearchInput::Candidate {cue := 0x78, config := config}) (cons (record EnvironmentResearchInput::Candidate {cue := 0x79, config := config}) (nil EnvironmentResearchInput::Candidate))) (cons (item 0x61 0x78) (nil EnvironmentMemory::Observation))) | Option.none => 999 | Option.some choice => (project choice index)) = 0), proof: reflexivity{}, axioms: [] +} +theorem{ + name: contextSelectsSecond, parameters: [config : ResearchProject::Config], + statement: ((match (EnvironmentResearchSelection::choose (cons (record EnvironmentResearchInput::Candidate {cue := 0x78, config := config}) (cons (record EnvironmentResearchInput::Candidate {cue := 0x79, config := config}) (nil EnvironmentResearchInput::Candidate))) (cons (item 0x61 0x79) (nil EnvironmentMemory::Observation))) | Option.none => 999 | Option.some choice => (project choice index)) = 1), proof: reflexivity{}, axioms: [] +} +theorem{ + name: zeroScoresKeepFirst, parameters: [config : ResearchProject::Config], + statement: ((match (EnvironmentResearchSelection::choose (cons (record EnvironmentResearchInput::Candidate {cue := 0x78, config := config}) (cons (record EnvironmentResearchInput::Candidate {cue := 0x79, config := config}) (nil EnvironmentResearchInput::Candidate))) (cons (item 0x61 0x7a) (nil EnvironmentMemory::Observation))) | Option.none => 999 | Option.some choice => (project choice index)) = 0), proof: reflexivity{}, axioms: [] +} +theorem{ + name: positiveTieKeepsFirst, parameters: [config : ResearchProject::Config], + statement: ((match (EnvironmentResearchSelection::choose (cons (record EnvironmentResearchInput::Candidate {cue := 0x78, config := config}) (cons (record EnvironmentResearchInput::Candidate {cue := 0x79, config := config}) (nil EnvironmentResearchInput::Candidate))) (cons (item 0x61 0x7879) (nil EnvironmentMemory::Observation))) | Option.none => 999 | Option.some choice => (project choice index)) = 0), proof: reflexivity{}, axioms: [] +} +theorem{ + name: activeStateOnlyAdvancesOwnedSession, parameters: [selection : Json::Value, session : ResearchSession::State, event : LexLeanStd.Host::Event], + statement: ((EnvironmentResearchCommand::step (ctor Option.some [EnvironmentResearchCommand::State] (ctor EnvironmentResearchCommand::State.active selection session)) event) = (EnvironmentResearchCommand::advance selection (ResearchSession::step session (ctor ResearchSession::Event.host event)))), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: endedStateCannotStartAlternative, parameters: [session : (Option ResearchSession::State), event : LexLeanStd.Host::Event], + statement: ((EnvironmentResearchCommand::step (ctor Option.some [EnvironmentResearchCommand::State] (ctor EnvironmentResearchCommand::State.ended session)) event) = (EnvironmentResearchCommand::error session (70 : UInt8) (EnvironmentResearchCommand::empty) 0x656e64656420636f6d6d616e642063616e6e6f74207265747279)), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "complete-task-identity-regressions" (cons "ordered-subsequence-rejections" (cons "deterministic-context-selection" (cons "owned-session-no-alternative-retry" (nil String))))), + axioms: [], executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentResearchWireTraces.lex.tex b/rule30-api/src/EnvironmentResearchWireTraces.lex.tex new file mode 100644 index 0000000..89097a2 --- /dev/null +++ b/rule30-api/src/EnvironmentResearchWireTraces.lex.tex @@ -0,0 +1,72 @@ +\begin{lexlean}{EnvironmentResearchWireTraces} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentResearchInput} +\importmodule{Json} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: rejected, parameters: [value : (Option EnvironmentResearchInput::Input)], result: Bool, + body: (match value | Option.none => true | Option.some admitted => false), + axioms: [], executable: true +} +definition{ + name: parseRejected, parameters: [value : (Result Json::Value Json::Problem)], result: Bool, + body: (match value | Result.error problem => true | Result.ok parsed => false), + axioms: [], executable: true +} +theorem{ + name: duplicateRootFieldRefused, parameters: [], + statement: ((parseRejected (Json::parse 0x7b2273706563223a2278222c2273706563223a2279227d 8388608 96)) = true), proof: decide{}, axioms: [propext] +} +theorem{ + name: escapedDuplicateFieldRefused, parameters: [], + statement: ((parseRejected (Json::parse 0x7b2273706563223a2278222c225c7530303733706563223a2279227d 8388608 96)) = true), proof: decide{}, axioms: [propext] +} +theorem{ + name: nestedDuplicateFieldRefused, parameters: [], + statement: ((parseRejected (Json::parse 0x7b2263616e64696461746573223a5b7b22637565223a2261222c225c75303036337565223a2262227d5d7d 8388608 96)) = true), proof: decide{}, axioms: [propext] +} +theorem{ + name: unknownEnvelopeRefused, parameters: [], + statement: ((rejected (EnvironmentResearchInput::decode 0x7b2273706563223a227233302f656e7669726f6e6d656e742d72657365617263682f31222c226578747261223a307d (nil (Bytes * Bytes)))) = true), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: synthesisEnvelopeRefused, parameters: [], + statement: ((rejected (EnvironmentResearchInput::decode 0x7b2273706563223a227233302f72657365617263682d73796e7468657369732f31227d (nil (Bytes * Bytes)))) = true), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: emptyEnvelopeRefused, parameters: [], + statement: ((rejected (EnvironmentResearchInput::decode 0x7b7d (nil (Bytes * Bytes)))) = true), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: validNamedTarget, parameters: [], + statement: ((EnvironmentResearchInput::strictTarget 0x7b226e6f646573223a5b7b226b223a2263222c226e223a2254727565222c2275223a5b5d7d5d2c22726f6f74223a307d 4096 32 1024) = true), proof: reflexivity{}, axioms: [propext] +} +theorem{ + name: extraTargetFieldRefused, parameters: [], + statement: ((EnvironmentResearchInput::strictTarget 0x7b226578747261223a302c226e6f646573223a5b7b226b223a2263222c226e223a2254727565222c2275223a5b5d7d5d2c22726f6f74223a307d 4096 32 1024) = false), proof: reflexivity{}, axioms: [propext] +} +theorem{ + name: unreachableMalformedTargetNodeRefused, parameters: [], + statement: ((EnvironmentResearchInput::strictTarget 0x7b226e6f646573223a5b7b226b223a2263222c226e223a2254727565222c2275223a5b5d7d2c7b226b223a22756e6b6e6f776e227d5d2c22726f6f74223a307d 4096 32 1024) = false), proof: reflexivity{}, axioms: [propext] +} +theorem{ + name: nestedInvalidTargetFieldRefused, parameters: [], + statement: ((EnvironmentResearchInput::strictTarget 0x7b226e6f646573223a5b7b226b223a2263222c226e223a2254727565222c2275223a5b5d7d2c7b226b223a2263222c226e223a224e6174222c2275223a5b7b226578747261223a302c226b223a227a227d5d7d5d2c22726f6f74223a307d 4096 32 1024) = false), proof: reflexivity{}, axioms: [propext] +} +theorem{ + name: validUnusedNodeAndNonzeroRoot, parameters: [], + statement: ((EnvironmentResearchInput::strictTarget 0x7b226e6f646573223a5b7b226b223a2263222c226e223a224e6174222c2275223a5b5d7d2c7b226b223a2263222c226e223a2254727565222c2275223a5b5d7d5d2c22726f6f74223a317d 4096 32 1024) = true), proof: reflexivity{}, axioms: [propext] +} +theorem{ + name: outOfRangeTargetRootRefused, parameters: [], + statement: ((EnvironmentResearchInput::strictTarget 0x7b226e6f646573223a5b7b226b223a2263222c226e223a2254727565222c2275223a5b5d7d5d2c22726f6f74223a317d 4096 32 1024) = false), proof: reflexivity{}, axioms: [propext] +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "actual-wire-duplicate-rejection" (cons "unknown-and-synthesis-envelope-refusal" (nil String))), + axioms: [], executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/ResearchCatalog.lex.tex b/rule30-api/src/ResearchCatalog.lex.tex index 0375a96..da5ef81 100644 --- a/rule30-api/src/ResearchCatalog.lex.tex +++ b/rule30-api/src/ResearchCatalog.lex.tex @@ -43,6 +43,11 @@ \importmodule{EnvironmentMemoryCommand} \importmodule{EnvironmentPlan} \importmodule{EnvironmentPlanCommand} +\importmodule{EnvironmentResearchInput} +\importmodule{EnvironmentResearchSelection} +\importmodule{EnvironmentResearchCommand} +\importmodule{EnvironmentResearchTraces} +\importmodule{EnvironmentResearchWireTraces} \title{Boolean} \begin{semanticmodule} structure{ @@ -63,7 +68,7 @@ name: moduleScopes, parameters: [], result: (List Scope), - body: (prim append (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e "EnvironmentPlan") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e436f6d6d616e64 "EnvironmentPlanCommand") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e547261636573 "EnvironmentPlanTraces") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e5769726554726163657330 "EnvironmentPlanWireTraces0") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e5769726554726163657331 "EnvironmentPlanWireTraces1") (nil Scope)))))) (prim append (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707330 "VerificationUtf8Steps0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707331 "VerificationUtf8Steps1") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707332 "VerificationUtf8Steps2") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707333 "VerificationUtf8Steps3") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707334 "VerificationUtf8Steps4") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707335 "VerificationUtf8Steps5") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707336 "VerificationUtf8Steps6") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707337 "VerificationUtf8Steps7") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707338 "VerificationUtf8Steps8") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707339 "VerificationUtf8Steps9") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e53746570733131 "VerificationJsonSteps11") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e53746570733130 "VerificationJsonSteps10") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707339 "VerificationJsonSteps9") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707338 "VerificationJsonSteps8") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707337 "VerificationJsonSteps7") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707336 "VerificationJsonSteps6") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707335 "VerificationJsonSteps5") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707334 "VerificationJsonSteps4") (cons (unitScope 0x6d6f64756c652f466f756e646174696f6e2e536563 "Foundation.Sec") (cons (unitScope 0x6d6f64756c652f5265736561726368417263686974656374757265 "ResearchArchitecture") (cons (unitScope 0x6d6f64756c652f52657365617263684a6f75726e616c547261636573 "ResearchJournalTraces") (cons (unitScope 0x6d6f64756c652f52657365617263684a6f75726e616c "ResearchJournal") (cons (unitScope 0x6d6f64756c652f5265736561726368466163746f7279 "ResearchFactory") (cons (unitScope 0x6d6f64756c652f5265736561726368466163746f7279547261636573 "ResearchFactoryTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707332 "VerificationHashSteps2") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707333 "VerificationHashSteps3") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707334 "VerificationHashSteps4") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707335 "VerificationHashSteps5") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4d65746164617461547261636573 "VerificationMetadataTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e50726f63657373547261636573 "VerificationProcessTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e506f6c696379547261636573 "VerificationPolicyTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4964656e74697479547261636573 "VerificationIdentityTraces") (nil Scope))))))))))))))))))))))))))))))))) (prim append (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4861736844617461 "VerificationHashData") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707330 "VerificationHashSteps0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707331 "VerificationHashSteps1") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436f6d6d616e64 "ResearchCohortCommand") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274496e707574 "ResearchCohortInput") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274547261636573 "ResearchCohortTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274 "ResearchCohort") (cons (unitScope 0x6d6f64756c652f5265736561726368496e707574 "ResearchInput") (cons (unitScope 0x6d6f64756c652f5265736561726368496e707574547261636573 "ResearchInputTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368436f6d6d616e64 "ResearchCommand") (cons (unitScope 0x6d6f64756c652f5265736561726368436f6d6d616e64547261636573 "ResearchCommandTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368576f726b7370616365 "ResearchWorkspace") (cons (unitScope 0x6d6f64756c652f5265736561726368576f726b7370616365547261636573 "ResearchWorkspaceTraces") (cons (unitScope 0x6d6f64756c652f526573656172636845766964656e6365 "ResearchEvidence") (cons (unitScope 0x6d6f64756c652f526573656172636845766964656e6365547261636573 "ResearchEvidenceTraces") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6a656374 "ResearchProject") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6a656374547261636573 "ResearchProjectTraces") (cons (unitScope 0x6d6f64756c652f52657365617263685265636f7264 "ResearchRecord") (cons (unitScope 0x6d6f64756c652f526573656172636853657373696f6e "ResearchSession") (cons (unitScope 0x6d6f64756c652f526573656172636853657373696f6e547261636573 "ResearchSessionTraces") (cons (unitScope 0x6d6f64756c652f436f72654e6f746174696f6e547261636573 "CoreNotationTraces") (cons (unitScope 0x6d6f64756c652f436f72654e6f746174696f6e "CoreNotation") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365 "CandidateSource") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365547261636573 "CandidateSourceTraces") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c547261636573 "ClosedGoalTraces") (cons (unitScope 0x6d6f64756c652f436c6f73656442696e64696e6746697874757265 "ClosedBindingFixture") (cons (unitScope 0x6d6f64756c652f436f6d70696c6572536e617073686f74 "CompilerSnapshot") (cons (unitScope 0x6d6f64756c652f436f6d70696c6572536e617073686f74547261636573 "CompilerSnapshotTraces") (cons (unitScope 0x6d6f64756c652f526573656172636843616e646964617465 "ResearchCandidate") (cons (unitScope 0x6d6f64756c652f526573656172636843616e646964617465547261636573 "ResearchCandidateTraces") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6f66547261636573 "ResearchProofTraces") (cons (unitScope 0x6d6f64756c652f43616e64696461746542696e64696e67547261636573 "CandidateBindingTraces") (nil Scope))))))))))))))))))))))))))))))))) (prim append (cons (unitScope 0x6d6f64756c652f42696e64696e6746697874757265 "BindingFixture") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6f66 "ResearchProof") (cons (unitScope 0x6d6f64756c652f43616e64696461746542696e64696e67 "CandidateBinding") (cons (unitScope 0x6d6f64756c652f41727469666163744964656e74697479547261636573 "ArtifactIdentityTraces") (cons (unitScope 0x6d6f64756c652f41727469666163744964656e74697479 "ArtifactIdentity") (cons (unitScope 0x6d6f64756c652f436f726542696e64696e67547261636573 "CoreBindingTraces") (cons (unitScope 0x6d6f64756c652f436f726542696e64696e67 "CoreBinding") (cons (unitScope 0x6d6f64756c652f4a736f6e43616e6f6e6963616c547261636573 "JsonCanonicalTraces") (cons (unitScope 0x6d6f64756c652f4a736f6e43616e6f6e6963616c "JsonCanonical") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e557466384669787475726573 "VerificationUtf8Fixtures") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e436f6d6d616e644669787475726573 "VerificationCommandFixtures") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e44617461 "VerificationJsonData") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707330 "VerificationJsonSteps0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707331 "VerificationJsonSteps1") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707332 "VerificationJsonSteps2") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707333 "VerificationJsonSteps3") (cons (unitScope 0x6d6f64756c652f417069 "Api") (cons (unitScope 0x6d6f64756c652f4170706c69636174696f6e "Application") (cons (unitScope 0x6d6f64756c652f417263686974656374757265 "Architecture") (cons (unitScope 0x6d6f64756c652f4175646974 "Audit") (cons (unitScope 0x6d6f64756c652f436f6e76657274 "Convert") (cons (unitScope 0x6d6f64756c652f446973636f76657279 "Discovery") (cons (unitScope 0x6d6f64756c652f456e67696e65 "Engine") (cons (unitScope 0x6d6f64756c652f486f7374 "Host") (cons (unitScope 0x6d6f64756c652f4879706f746865736573 "Hypotheses") (cons (unitScope 0x6d6f64756c652f4f62736572766572 "Observer") (cons (unitScope 0x6d6f64756c652f50726573656e746174696f6e "Presentation") (cons (unitScope 0x6d6f64756c652f523330 "R30") (cons (unitScope 0x6d6f64756c652f523330547261636573 "R30Traces") (cons (unitScope 0x6d6f64756c652f523330547261636573436c61696d73 "R30TracesClaims") (cons (unitScope 0x6d6f64756c652f523330547261636573466f726d73 "R30TracesForms") (cons (unitScope 0x6d6f64756c652f5233305472616365735265676973746572 "R30TracesRegister") (nil Scope))))))))))))))))))))))))))))))))) (prim append (cons (unitScope 0x6d6f64756c652f5265676973746572 "Register") (cons (unitScope 0x6d6f64756c652f5265736561726368 "Research") (cons (unitScope 0x6d6f64756c652f5265736561726368436174616c6f67 "ResearchCatalog") (cons (unitScope 0x6d6f64756c652f5265736561726368547261636573 "ResearchTraces") (cons (unitScope 0x6d6f64756c652f52756c653330436f7265 "Rule30Core") (cons (unitScope 0x6d6f64756c652f53657175656e636573 "Sequences") (cons (unitScope 0x6d6f64756c652f5374616e6461726473 "Standards") (cons (unitScope 0x6d6f64756c652f546f6d6c "Toml") (cons (unitScope 0x6d6f64756c652f466f756e646174696f6e2e41726368 "Foundation.Arch") (cons (unitScope 0x6d6f64756c652f466f756e646174696f6e2e5175616c "Foundation.Qual") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e427566666572 "LexLeanStd.Buffer") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e54657874 "LexLeanStd.Text") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e536861323536 "LexLeanStd.Sha256") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e486f7374 "LexLeanStd.Host") (cons (unitScope 0x6d6f64756c652f5265736561726368457865637574696f6e "ResearchExecution") (cons (unitScope 0x6d6f64756c652f5265736561726368457865637574696f6e547261636573 "ResearchExecutionTraces") (cons (unitScope 0x6d6f64756c652f526573656172636852756e6e6572 "ResearchRunner") (cons (unitScope 0x6d6f64756c652f526573656172636852756e6e6572547261636573 "ResearchRunnerTraces") (cons (unitScope 0x6d6f64756c652f4a736f6e "Json") (cons (unitScope 0x6d6f64756c652f4a736f6e547261636573 "JsonTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e5265706f7274 "VerificationReport") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e5265706f7274547261636573 "VerificationReportTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e "ResearchVerification") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e547261636573 "ResearchVerificationTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e4669787475726573 "VerificationJsonFixtures") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e486173684669787475726573 "VerificationHashFixtures") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7330 "ClosedGoalChecks0") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7331 "ClosedGoalChecks1") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7332 "ClosedGoalChecks2") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7333 "ClosedGoalChecks3") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436865636b7330 "ResearchCohortChecks0") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436865636b7331 "ResearchCohortChecks1") (nil Scope))))))))))))))))))))))))))))))))) (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436865636b7332 "ResearchCohortChecks2") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7330 "CandidateSourceChecks0") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7331 "CandidateSourceChecks1") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7332 "CandidateSourceChecks2") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7333 "CandidateSourceChecks3") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7330 "ResearchVerificationChecks0") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7331 "ResearchVerificationChecks1") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7332 "ResearchVerificationChecks2") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7333 "ResearchVerificationChecks3") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7334 "ResearchVerificationChecks4") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7335 "ResearchVerificationChecks5") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7336 "ResearchVerificationChecks6") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e506f6c696379436865636b7330 "VerificationPolicyChecks0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e50726f63657373436865636b7330 "VerificationProcessChecks0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4d65746164617461436865636b7330 "VerificationMetadataChecks0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4d65746164617461436865636b7331 "VerificationMetadataChecks1") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7334 "ClosedGoalChecks4") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7335 "ClosedGoalChecks5") (nil Scope))))))))))))))))))) : (List Scope)) : (List Scope)) : (List Scope)) : (List Scope)) : (List Scope)), + body: (prim append (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e745265736561726368496e707574 "EnvironmentResearchInput") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74526573656172636853656c656374696f6e "EnvironmentResearchSelection") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e745265736561726368436f6d6d616e64 "EnvironmentResearchCommand") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e745265736561726368547261636573 "EnvironmentResearchTraces") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74526573656172636857697265547261636573 "EnvironmentResearchWireTraces") (nil Scope)))))) (prim append (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e "EnvironmentPlan") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e436f6d6d616e64 "EnvironmentPlanCommand") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e547261636573 "EnvironmentPlanTraces") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e5769726554726163657330 "EnvironmentPlanWireTraces0") (cons (unitScope 0x6d6f64756c652f456e7669726f6e6d656e74506c616e5769726554726163657331 "EnvironmentPlanWireTraces1") (nil Scope)))))) (prim append (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707330 "VerificationUtf8Steps0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707331 "VerificationUtf8Steps1") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707332 "VerificationUtf8Steps2") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707333 "VerificationUtf8Steps3") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707334 "VerificationUtf8Steps4") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707335 "VerificationUtf8Steps5") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707336 "VerificationUtf8Steps6") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707337 "VerificationUtf8Steps7") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707338 "VerificationUtf8Steps8") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e55746638537465707339 "VerificationUtf8Steps9") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e53746570733131 "VerificationJsonSteps11") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e53746570733130 "VerificationJsonSteps10") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707339 "VerificationJsonSteps9") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707338 "VerificationJsonSteps8") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707337 "VerificationJsonSteps7") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707336 "VerificationJsonSteps6") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707335 "VerificationJsonSteps5") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707334 "VerificationJsonSteps4") (cons (unitScope 0x6d6f64756c652f466f756e646174696f6e2e536563 "Foundation.Sec") (cons (unitScope 0x6d6f64756c652f5265736561726368417263686974656374757265 "ResearchArchitecture") (cons (unitScope 0x6d6f64756c652f52657365617263684a6f75726e616c547261636573 "ResearchJournalTraces") (cons (unitScope 0x6d6f64756c652f52657365617263684a6f75726e616c "ResearchJournal") (cons (unitScope 0x6d6f64756c652f5265736561726368466163746f7279 "ResearchFactory") (cons (unitScope 0x6d6f64756c652f5265736561726368466163746f7279547261636573 "ResearchFactoryTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707332 "VerificationHashSteps2") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707333 "VerificationHashSteps3") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707334 "VerificationHashSteps4") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707335 "VerificationHashSteps5") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4d65746164617461547261636573 "VerificationMetadataTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e50726f63657373547261636573 "VerificationProcessTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e506f6c696379547261636573 "VerificationPolicyTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4964656e74697479547261636573 "VerificationIdentityTraces") (nil Scope))))))))))))))))))))))))))))))))) (prim append (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4861736844617461 "VerificationHashData") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707330 "VerificationHashSteps0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e48617368537465707331 "VerificationHashSteps1") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436f6d6d616e64 "ResearchCohortCommand") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274496e707574 "ResearchCohortInput") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274547261636573 "ResearchCohortTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274 "ResearchCohort") (cons (unitScope 0x6d6f64756c652f5265736561726368496e707574 "ResearchInput") (cons (unitScope 0x6d6f64756c652f5265736561726368496e707574547261636573 "ResearchInputTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368436f6d6d616e64 "ResearchCommand") (cons (unitScope 0x6d6f64756c652f5265736561726368436f6d6d616e64547261636573 "ResearchCommandTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368576f726b7370616365 "ResearchWorkspace") (cons (unitScope 0x6d6f64756c652f5265736561726368576f726b7370616365547261636573 "ResearchWorkspaceTraces") (cons (unitScope 0x6d6f64756c652f526573656172636845766964656e6365 "ResearchEvidence") (cons (unitScope 0x6d6f64756c652f526573656172636845766964656e6365547261636573 "ResearchEvidenceTraces") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6a656374 "ResearchProject") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6a656374547261636573 "ResearchProjectTraces") (cons (unitScope 0x6d6f64756c652f52657365617263685265636f7264 "ResearchRecord") (cons (unitScope 0x6d6f64756c652f526573656172636853657373696f6e "ResearchSession") (cons (unitScope 0x6d6f64756c652f526573656172636853657373696f6e547261636573 "ResearchSessionTraces") (cons (unitScope 0x6d6f64756c652f436f72654e6f746174696f6e547261636573 "CoreNotationTraces") (cons (unitScope 0x6d6f64756c652f436f72654e6f746174696f6e "CoreNotation") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365 "CandidateSource") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365547261636573 "CandidateSourceTraces") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c547261636573 "ClosedGoalTraces") (cons (unitScope 0x6d6f64756c652f436c6f73656442696e64696e6746697874757265 "ClosedBindingFixture") (cons (unitScope 0x6d6f64756c652f436f6d70696c6572536e617073686f74 "CompilerSnapshot") (cons (unitScope 0x6d6f64756c652f436f6d70696c6572536e617073686f74547261636573 "CompilerSnapshotTraces") (cons (unitScope 0x6d6f64756c652f526573656172636843616e646964617465 "ResearchCandidate") (cons (unitScope 0x6d6f64756c652f526573656172636843616e646964617465547261636573 "ResearchCandidateTraces") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6f66547261636573 "ResearchProofTraces") (cons (unitScope 0x6d6f64756c652f43616e64696461746542696e64696e67547261636573 "CandidateBindingTraces") (nil Scope))))))))))))))))))))))))))))))))) (prim append (cons (unitScope 0x6d6f64756c652f42696e64696e6746697874757265 "BindingFixture") (cons (unitScope 0x6d6f64756c652f526573656172636850726f6f66 "ResearchProof") (cons (unitScope 0x6d6f64756c652f43616e64696461746542696e64696e67 "CandidateBinding") (cons (unitScope 0x6d6f64756c652f41727469666163744964656e74697479547261636573 "ArtifactIdentityTraces") (cons (unitScope 0x6d6f64756c652f41727469666163744964656e74697479 "ArtifactIdentity") (cons (unitScope 0x6d6f64756c652f436f726542696e64696e67547261636573 "CoreBindingTraces") (cons (unitScope 0x6d6f64756c652f436f726542696e64696e67 "CoreBinding") (cons (unitScope 0x6d6f64756c652f4a736f6e43616e6f6e6963616c547261636573 "JsonCanonicalTraces") (cons (unitScope 0x6d6f64756c652f4a736f6e43616e6f6e6963616c "JsonCanonical") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e557466384669787475726573 "VerificationUtf8Fixtures") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e436f6d6d616e644669787475726573 "VerificationCommandFixtures") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e44617461 "VerificationJsonData") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707330 "VerificationJsonSteps0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707331 "VerificationJsonSteps1") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707332 "VerificationJsonSteps2") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e537465707333 "VerificationJsonSteps3") (cons (unitScope 0x6d6f64756c652f417069 "Api") (cons (unitScope 0x6d6f64756c652f4170706c69636174696f6e "Application") (cons (unitScope 0x6d6f64756c652f417263686974656374757265 "Architecture") (cons (unitScope 0x6d6f64756c652f4175646974 "Audit") (cons (unitScope 0x6d6f64756c652f436f6e76657274 "Convert") (cons (unitScope 0x6d6f64756c652f446973636f76657279 "Discovery") (cons (unitScope 0x6d6f64756c652f456e67696e65 "Engine") (cons (unitScope 0x6d6f64756c652f486f7374 "Host") (cons (unitScope 0x6d6f64756c652f4879706f746865736573 "Hypotheses") (cons (unitScope 0x6d6f64756c652f4f62736572766572 "Observer") (cons (unitScope 0x6d6f64756c652f50726573656e746174696f6e "Presentation") (cons (unitScope 0x6d6f64756c652f523330 "R30") (cons (unitScope 0x6d6f64756c652f523330547261636573 "R30Traces") (cons (unitScope 0x6d6f64756c652f523330547261636573436c61696d73 "R30TracesClaims") (cons (unitScope 0x6d6f64756c652f523330547261636573466f726d73 "R30TracesForms") (cons (unitScope 0x6d6f64756c652f5233305472616365735265676973746572 "R30TracesRegister") (nil Scope))))))))))))))))))))))))))))))))) (prim append (cons (unitScope 0x6d6f64756c652f5265676973746572 "Register") (cons (unitScope 0x6d6f64756c652f5265736561726368 "Research") (cons (unitScope 0x6d6f64756c652f5265736561726368436174616c6f67 "ResearchCatalog") (cons (unitScope 0x6d6f64756c652f5265736561726368547261636573 "ResearchTraces") (cons (unitScope 0x6d6f64756c652f52756c653330436f7265 "Rule30Core") (cons (unitScope 0x6d6f64756c652f53657175656e636573 "Sequences") (cons (unitScope 0x6d6f64756c652f5374616e6461726473 "Standards") (cons (unitScope 0x6d6f64756c652f546f6d6c "Toml") (cons (unitScope 0x6d6f64756c652f466f756e646174696f6e2e41726368 "Foundation.Arch") (cons (unitScope 0x6d6f64756c652f466f756e646174696f6e2e5175616c "Foundation.Qual") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e427566666572 "LexLeanStd.Buffer") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e54657874 "LexLeanStd.Text") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e536861323536 "LexLeanStd.Sha256") (cons (unitScope 0x6d6f64756c652f4c65784c65616e5374642e486f7374 "LexLeanStd.Host") (cons (unitScope 0x6d6f64756c652f5265736561726368457865637574696f6e "ResearchExecution") (cons (unitScope 0x6d6f64756c652f5265736561726368457865637574696f6e547261636573 "ResearchExecutionTraces") (cons (unitScope 0x6d6f64756c652f526573656172636852756e6e6572 "ResearchRunner") (cons (unitScope 0x6d6f64756c652f526573656172636852756e6e6572547261636573 "ResearchRunnerTraces") (cons (unitScope 0x6d6f64756c652f4a736f6e "Json") (cons (unitScope 0x6d6f64756c652f4a736f6e547261636573 "JsonTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e5265706f7274 "VerificationReport") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e5265706f7274547261636573 "VerificationReportTraces") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e "ResearchVerification") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e547261636573 "ResearchVerificationTraces") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4a736f6e4669787475726573 "VerificationJsonFixtures") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e486173684669787475726573 "VerificationHashFixtures") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7330 "ClosedGoalChecks0") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7331 "ClosedGoalChecks1") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7332 "ClosedGoalChecks2") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7333 "ClosedGoalChecks3") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436865636b7330 "ResearchCohortChecks0") (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436865636b7331 "ResearchCohortChecks1") (nil Scope))))))))))))))))))))))))))))))))) (cons (unitScope 0x6d6f64756c652f5265736561726368436f686f7274436865636b7332 "ResearchCohortChecks2") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7330 "CandidateSourceChecks0") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7331 "CandidateSourceChecks1") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7332 "CandidateSourceChecks2") (cons (unitScope 0x6d6f64756c652f43616e646964617465536f75726365436865636b7333 "CandidateSourceChecks3") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7330 "ResearchVerificationChecks0") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7331 "ResearchVerificationChecks1") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7332 "ResearchVerificationChecks2") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7333 "ResearchVerificationChecks3") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7334 "ResearchVerificationChecks4") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7335 "ResearchVerificationChecks5") (cons (unitScope 0x6d6f64756c652f5265736561726368566572696669636174696f6e436865636b7336 "ResearchVerificationChecks6") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e506f6c696379436865636b7330 "VerificationPolicyChecks0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e50726f63657373436865636b7330 "VerificationProcessChecks0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4d65746164617461436865636b7330 "VerificationMetadataChecks0") (cons (unitScope 0x6d6f64756c652f566572696669636174696f6e4d65746164617461436865636b7331 "VerificationMetadataChecks1") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7334 "ClosedGoalChecks4") (cons (unitScope 0x6d6f64756c652f436c6f736564476f616c436865636b7335 "ClosedGoalChecks5") (nil Scope))))))))))))))))))) : (List Scope)) : (List Scope)) : (List Scope)) : (List Scope)) : (List Scope)) : (List Scope)), axioms: [] } @@ -71,7 +76,7 @@ name: facetScopes, parameters: [], result: (List Scope), - body: (prim append (cons (record Scope {id := 0x456e7669726f6e6d656e74506c616e, module := "EnvironmentPlan", features := (EnvironmentPlan::features)}) (cons (record Scope {id := 0x456e7669726f6e6d656e74506c616e436f6d6d616e64, module := "EnvironmentPlanCommand", features := (EnvironmentPlanCommand::features)}) (nil Scope))) (cons (record Scope {id := 0x72657365617263682d617263686974656374757265, module := "ResearchArchitecture", features := (ResearchArchitecture::features)}) (cons (record Scope {id := 0x72657365617263682d6a6f75726e616c, module := "ResearchJournal", features := (ResearchJournal::features)}) (cons (record Scope {id := 0x72657365617263682d666163746f7279, module := "ResearchFactory", features := (ResearchFactory::features)}) (cons (record Scope {id := 0x5265736561726368436f686f7274436f6d6d616e64, module := "ResearchCohortCommand", features := (ResearchCohortCommand::features)}) (cons (record Scope {id := 0x5265736561726368436f686f7274496e707574, module := "ResearchCohortInput", features := (ResearchCohortInput::features)}) (cons (record Scope {id := 0x72657365617263682d636f686f7274, module := "ResearchCohort", features := (ResearchCohort::features)}) (cons (record Scope {id := 0x72657365617263682d696e707574, module := "ResearchInput", features := (ResearchInput::features)}) (cons (record Scope {id := 0x72657365617263682d636f6d6d616e64, module := "ResearchCommand", features := (ResearchCommand::features)}) (cons (record Scope {id := 0x72657365617263682d657865637574696f6e, module := "ResearchExecution", features := (ResearchExecution::features)}) (cons (record Scope {id := 0x72657365617263682d776f726b7370616365, module := "ResearchWorkspace", features := (ResearchWorkspace::features)}) (cons (record Scope {id := 0x72657365617263682d65766964656e6365, module := "ResearchEvidence", features := (ResearchEvidence::features)}) (cons (record Scope {id := 0x72657365617263682d70726f6a656374, module := "ResearchProject", features := (ResearchProject::features)}) (cons (record Scope {id := 0x72657365617263682d7265636f7264, module := "ResearchRecord", features := (ResearchRecord::features)}) (cons (record Scope {id := 0x72657365617263682d73657373696f6e, module := "ResearchSession", features := (ResearchSession::features)}) (cons (record Scope {id := 0x636f72652d6e6f746174696f6e, module := "CoreNotation", features := (CoreNotation::features)}) (cons (record Scope {id := 0x63616e6469646174652d736f75726365, module := "CandidateSource", features := (CandidateSource::features)}) (cons (record Scope {id := 0x726567697374657265642d636c6f7365642d676f616c73, module := "ResearchCatalog", features := (cons "registered-closed-proposition-goals" (cons "canonical-prize-goal" (cons "block-goal-redirection" (nil String))))}) (cons (record Scope {id := 0x636f6d70696c65722d736e617073686f74, module := "CompilerSnapshot", features := (CompilerSnapshot::features)}) (cons (record Scope {id := 0x72657365617263682d63616e646964617465, module := "ResearchCandidate", features := (ResearchCandidate::features)}) (cons (record Scope {id := 0x70726f6f662d766572696669636174696f6e, module := "ResearchProof", features := (ResearchProof::features)}) (cons (record Scope {id := 0x63616e6469646174652d62696e64696e67, module := "CandidateBinding", features := (CandidateBinding::features)}) (cons (record Scope {id := 0x61727469666163742d6964656e74697479, module := "ArtifactIdentity", features := (ArtifactIdentity::features)}) (cons (record Scope {id := 0x636f72652d62696e64696e67, module := "CoreBinding", features := (CoreBinding::features)}) (cons (record Scope {id := 0x63616e6f6e6963616c2d6a736f6e, module := "JsonCanonical", features := (JsonCanonical::features)}) (cons (record Scope {id := 0x617069, module := "Api", features := (Architecture::commandNames (Api::commands))}) + body: (prim append (cons (record Scope {id := 0x456e7669726f6e6d656e745265736561726368496e707574, module := "EnvironmentResearchInput", features := (EnvironmentResearchInput::features)}) (cons (record Scope {id := 0x456e7669726f6e6d656e74526573656172636853656c656374696f6e, module := "EnvironmentResearchSelection", features := (EnvironmentResearchSelection::features)}) (cons (record Scope {id := 0x456e7669726f6e6d656e745265736561726368436f6d6d616e64, module := "EnvironmentResearchCommand", features := (EnvironmentResearchCommand::features)}) (cons (record Scope {id := 0x456e7669726f6e6d656e745265736561726368547261636573, module := "EnvironmentResearchTraces", features := (EnvironmentResearchTraces::features)}) (cons (record Scope {id := 0x456e7669726f6e6d656e74526573656172636857697265547261636573, module := "EnvironmentResearchWireTraces", features := (EnvironmentResearchWireTraces::features)}) (nil Scope)))))) (prim append (cons (record Scope {id := 0x456e7669726f6e6d656e74506c616e, module := "EnvironmentPlan", features := (EnvironmentPlan::features)}) (cons (record Scope {id := 0x456e7669726f6e6d656e74506c616e436f6d6d616e64, module := "EnvironmentPlanCommand", features := (EnvironmentPlanCommand::features)}) (nil Scope))) (cons (record Scope {id := 0x72657365617263682d617263686974656374757265, module := "ResearchArchitecture", features := (ResearchArchitecture::features)}) (cons (record Scope {id := 0x72657365617263682d6a6f75726e616c, module := "ResearchJournal", features := (ResearchJournal::features)}) (cons (record Scope {id := 0x72657365617263682d666163746f7279, module := "ResearchFactory", features := (ResearchFactory::features)}) (cons (record Scope {id := 0x5265736561726368436f686f7274436f6d6d616e64, module := "ResearchCohortCommand", features := (ResearchCohortCommand::features)}) (cons (record Scope {id := 0x5265736561726368436f686f7274496e707574, module := "ResearchCohortInput", features := (ResearchCohortInput::features)}) (cons (record Scope {id := 0x72657365617263682d636f686f7274, module := "ResearchCohort", features := (ResearchCohort::features)}) (cons (record Scope {id := 0x72657365617263682d696e707574, module := "ResearchInput", features := (ResearchInput::features)}) (cons (record Scope {id := 0x72657365617263682d636f6d6d616e64, module := "ResearchCommand", features := (ResearchCommand::features)}) (cons (record Scope {id := 0x72657365617263682d657865637574696f6e, module := "ResearchExecution", features := (ResearchExecution::features)}) (cons (record Scope {id := 0x72657365617263682d776f726b7370616365, module := "ResearchWorkspace", features := (ResearchWorkspace::features)}) (cons (record Scope {id := 0x72657365617263682d65766964656e6365, module := "ResearchEvidence", features := (ResearchEvidence::features)}) (cons (record Scope {id := 0x72657365617263682d70726f6a656374, module := "ResearchProject", features := (ResearchProject::features)}) (cons (record Scope {id := 0x72657365617263682d7265636f7264, module := "ResearchRecord", features := (ResearchRecord::features)}) (cons (record Scope {id := 0x72657365617263682d73657373696f6e, module := "ResearchSession", features := (ResearchSession::features)}) (cons (record Scope {id := 0x636f72652d6e6f746174696f6e, module := "CoreNotation", features := (CoreNotation::features)}) (cons (record Scope {id := 0x63616e6469646174652d736f75726365, module := "CandidateSource", features := (CandidateSource::features)}) (cons (record Scope {id := 0x726567697374657265642d636c6f7365642d676f616c73, module := "ResearchCatalog", features := (cons "registered-closed-proposition-goals" (cons "canonical-prize-goal" (cons "block-goal-redirection" (nil String))))}) (cons (record Scope {id := 0x636f6d70696c65722d736e617073686f74, module := "CompilerSnapshot", features := (CompilerSnapshot::features)}) (cons (record Scope {id := 0x72657365617263682d63616e646964617465, module := "ResearchCandidate", features := (ResearchCandidate::features)}) (cons (record Scope {id := 0x70726f6f662d766572696669636174696f6e, module := "ResearchProof", features := (ResearchProof::features)}) (cons (record Scope {id := 0x63616e6469646174652d62696e64696e67, module := "CandidateBinding", features := (CandidateBinding::features)}) (cons (record Scope {id := 0x61727469666163742d6964656e74697479, module := "ArtifactIdentity", features := (ArtifactIdentity::features)}) (cons (record Scope {id := 0x636f72652d62696e64696e67, module := "CoreBinding", features := (CoreBinding::features)}) (cons (record Scope {id := 0x63616e6f6e6963616c2d6a736f6e, module := "JsonCanonical", features := (JsonCanonical::features)}) (cons (record Scope {id := 0x617069, module := "Api", features := (Architecture::commandNames (Api::commands))}) (cons (record Scope {id := 0x636c61696d73, module := "Register", features := (Register::idsOf (Register::claims))}) (cons (record Scope {id := 0x7374616b65686f6c64657273, module := "Architecture", features := (Architecture::stakeholderIds (Architecture::stakeholders))}) (cons (record Scope {id := 0x636f6e6365726e73, module := "Architecture", features := (Architecture::concernIds (Architecture::concerns))}) @@ -90,7 +95,7 @@ (cons (record Scope {id := 0x706f7274666f6c696f, module := "Engine", features := (Engine::strategyIdsOf (Engine::portfolio))}) (cons (record Scope {id := 0x7265616c697a657273, module := "Standards", features := (Standards::declaredIds)}) (cons (record Scope {id := 0x7374646c6962, module := "Research", features := (cons "Foundation.Arch" (cons "Foundation.Qual" (cons "LexLeanStd.Buffer" (cons "LexLeanStd.Text" (cons "LexLeanStd.Sha256" (cons "LexLeanStd.Host" (nil String)))))))}) - (cons (record Scope {id := 0x6a736f6e, module := "Json", features := (Json::features)}) (cons (record Scope {id := 0x766572696669636174696f6e2d7265706f727473, module := "VerificationReport", features := (VerificationReport::features)}) (cons (record Scope {id := 0x766572696669636174696f6e2d657865637574696f6e, module := "ResearchVerification", features := (ResearchVerification::features)}) (nil Scope))))))))))))))))))))))))))))))))))))))))))))))) : (List Scope)), + (cons (record Scope {id := 0x6a736f6e, module := "Json", features := (Json::features)}) (cons (record Scope {id := 0x766572696669636174696f6e2d7265706f727473, module := "VerificationReport", features := (VerificationReport::features)}) (cons (record Scope {id := 0x766572696669636174696f6e2d657865637574696f6e, module := "ResearchVerification", features := (ResearchVerification::features)}) (nil Scope))))))))))))))))))))))))))))))))))))))))))))))) : (List Scope)) : (List Scope)), axioms: [] } diff --git a/rule30-api/src/ResearchTraces.lex.tex b/rule30-api/src/ResearchTraces.lex.tex index 416e635..891eeb1 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) = 155), + statement: ((prim length (ResearchCatalog::maintenanceTasks (ResearchCatalog::registeredScopes)) : Nat) = 160), proof: decide{} } definition{ diff --git a/rule30-lexlean/Core.pdf b/rule30-lexlean/Core.pdf index f2a86ff129cbc3080b2b49f2ad3b7f2b4da13dde..8e8515bbe5dda018e37ca242c8c888ec7d475505 100644 GIT binary patch delta 124 zcmcb6hWYLp<_)uNs+by@8yOjyL}_yA`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s+bh rG delta 124 zcmcb6hWYLp<_)uNs+brV8JZg#M`?2D`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s%>i tVQg$*YG&bTY~*Ha?B-}_XkhBdqB1ixL diff --git a/rule30-lexlean/pdf/Core.pdf b/rule30-lexlean/pdf/Core.pdf index f2a86ff129cbc3080b2b49f2ad3b7f2b4da13dde..8e8515bbe5dda018e37ca242c8c888ec7d475505 100644 GIT binary patch delta 124 zcmcb6hWYLp<_)uNs+by@8yOjyL}_yA`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s+bh rG delta 124 zcmcb6hWYLp<_)uNs+brV8JZg#M`?2D`{t*(B$lKqXt-Dz85o%v8X7_+H}Ah$!s%>i tVQg$*YG&bTY~*Ha?B-}_XkhBdqB1ixL diff --git a/rule30-paper/Observations.pdf b/rule30-paper/Observations.pdf index 0314f9ccb017e0669a295872f8b7ede8ade52905..0ca2989ed2e81778f783af1d830cbd75c2261eb2 100644 GIT binary patch delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y?52k1Mn=X4(-TEl#9*B5bs{V~c%03g9L-IQ%v~%j mEL@EZTudzuElo@<9i2>EUCqr5%w6mhYzQgYUa83Pmm2_(pdPXS delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y>?TG=hUUf=(-TEl#9*B5bs{V~c$`g*44j<|oJ~yK mT%4Uvoh=PqT$~LJEZyAPOikP@+)V5gYzQgYUa83Pmm2`7p&w8H diff --git a/rule30-paper/Paper.pdf b/rule30-paper/Paper.pdf index ca9cc31a467b7395a1cdb9b2461038a95fe85954..5d886ffe6e8cc9927541dad5abb58103cafa3733 100644 GIT binary patch delta 154 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`FQJP%( zzWFIGi6yBD8ZK5w21aIvhK5kd?feV)MA@A!OpQ&A-Hgl)Elpfp4P4EPjoh3q3{6ek XTudxnolTtW6l@47*`B_fPhJTC-2f-{ delta 154 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`FEi6$Y?52k1Mn=X4(-TEl#9*B5bs{V~c%03g9L-IQ%v~%j mEL@EZTudzuElo@<9i2>EUCqr5%w6mhYzQgYUa83Pmm2_(pdPXS delta 118 zcmex%OW@lrfrb{w7N!>FEi6$Y>?TG=hUUf=(-TEl#9*B5bs{V~c$`g*44j<|oJ~yK mT%4Uvoh=PqT$~LJEZyAPOikP@+)V5gYzQgYUa83Pmm2`7p&w8H diff --git a/rule30-paper/pdf/Paper.pdf b/rule30-paper/pdf/Paper.pdf index ca9cc31a467b7395a1cdb9b2461038a95fe85954..5d886ffe6e8cc9927541dad5abb58103cafa3733 100644 GIT binary patch delta 154 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`FQJP%( zzWFIGi6yBD8ZK5w21aIvhK5kd?feV)MA@A!OpQ&A-Hgl)Elpfp4P4EPjoh3q3{6ek XTudxnolTtW6l@47*`B_fPhJTC-2f-{ delta 154 zcmZphY~425x}k-!g{g(Pg{6hHg{_6Xg`