diff --git a/Rule30-Core.pdf b/Rule30-Core.pdf index f2a86ff..8e8515b 100644 Binary files a/Rule30-Core.pdf and b/Rule30-Core.pdf differ diff --git a/Rule30-Observations.pdf b/Rule30-Observations.pdf index 0314f9c..0ca2989 100644 Binary files a/Rule30-Observations.pdf and b/Rule30-Observations.pdf differ diff --git a/Rule30-Paper.pdf b/Rule30-Paper.pdf index ca9cc31..5d886ff 100644 Binary files a/Rule30-Paper.pdf and b/Rule30-Paper.pdf differ diff --git a/pdf-manifest.json b/pdf-manifest.json index 31c4a85..bad17c1 100644 --- a/pdf-manifest.json +++ b/pdf-manifest.json @@ -1,18 +1,18 @@ { "documents": { "Core": { - "pdf_sha256": "99bfdc208dce94d81e4c4cbb4f24e4f56daaa006175b7d96799e2f79ff24b98e", + "pdf_sha256": "cb0ad414329ba221d54ea3e2d0a2860529e3ff3109558a346b94c828aad059a1", "tex_sha256": "a7cd1807077baa1d1ca34015faf500a24477991859427f4db646e5f230fe54e2" }, "Observations": { - "pdf_sha256": "946c0151ff19b9bea418524c9184fd2614ed1d0d8786be167e69be79fadd53c5", + "pdf_sha256": "4c0c6ceb328610bd2850f85ac19d719409a3973b61f6eb437202423be0a88cee", "tex_sha256": "056820f37ac40133e341f46ad6c81125e35981150a1cc86f2063faad3f26fbd4" }, "Paper": { - "pdf_sha256": "29083b380af1b4ba59d478e8f8b1defaa41df051d44a49bc6f1f487a403e774e", + "pdf_sha256": "c51fda82f4a4394a1e4099e35fc3a548f8d9aed95504e23fa77f43789cf145c0", "tex_sha256": "000f988561d9621f9ba2f9a99aba971670864367ebd336e6fbad0e1f71da01cb" } }, - "generated_at_utc": "2026-11-14T22:17:42.029985+00:00", - "source_digest": "fc66c209c514b0c616f3dea01ec778f54dd19356d13c2c780d455710262fe4b9" + "generated_at_utc": "2026-11-15T17:22:33.909324+00:00", + "source_digest": "4134e80e708ff079732e3e5bd32fd3ed1db3c70d9edb5f6d9b362106ba79fbed" } diff --git a/rule30-api/lexlean.lock b/rule30-api/lexlean.lock index 55ff9ff..318575a 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 = "a3a5a5708da7bc4dfaacf3cd2a52e3d8558e7937d1cc876bc6973558b31acb29" +project_config_sha256 = "220287baabbf37bc6f9b6aab45fc02ed8942400deadf953c80cdd71bb66e0768" lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] diff --git a/rule30-api/lexlean.toml b/rule30-api/lexlean.toml index a915ff2..05db45f 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/EnvironmentAcquisition.lex.tex", "src/EnvironmentMemory.lex.tex", "src/EnvironmentMemoryCommand.lex.tex", "src/EnvironmentMemoryTraces.lex.tex", "src/EnvironmentPlan.lex.tex", "src/EnvironmentPlanCommand.lex.tex", "src/EnvironmentPlanTraces.lex.tex", "src/EnvironmentPlanWireTraces0.lex.tex", "src/EnvironmentPlanWireTraces1.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/EnvironmentPlan.lex.tex", "src/EnvironmentPlanCommand.lex.tex", "src/EnvironmentPlanTraces.lex.tex", "src/EnvironmentPlanWireTraces0.lex.tex", "src/EnvironmentPlanWireTraces1.lex.tex", "src/EnvironmentResearchCommand.lex.tex", "src/EnvironmentResearchInput.lex.tex", "src/EnvironmentResearchSelection.lex.tex", "src/EnvironmentResearchTraces.lex.tex", "src/EnvironmentResearchWireTraces.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 = "." diff --git a/rule30-api/production/ENVIRONMENT-RESEARCH.md b/rule30-api/production/ENVIRONMENT-RESEARCH.md new file mode 100644 index 0000000..dc7b000 --- /dev/null +++ b/rule30-api/production/ENVIRONMENT-RESEARCH.md @@ -0,0 +1,106 @@ +# Supplied context for one research attempt + +`EnvironmentResearchCommand.step` is a native Host entry. Export it with +`environment-research-request.json`, then call the generated executable with +one request filename. `environment-research-example.json` is a complete wire +example with illustrative identities, NOT evidence of a verified attempt. +Replace its library tree, revision, tool digests and paths with actual inputs. +No source or proof is acquired or synthesized by this command. + +## Admission + +The request is `r30/environment-research/1`, with exactly `spec`, `plan`, +`context`, and `candidates`. The plan is an existing QUERY +`r30/environment-plan/1` object; it carries the entire task, nonempty query +and 1–8 explicit source triples. The context is the unchanged +`r30/environment-context/1` envelope, including its exact +`observed-sources-not-proof` trust label. It need not contain every planned +source: observations must form a unique ordered subsequence of the plan. +Every observed content must match the query. The existing observation validator +checks claimed repository/path/commit/blob formats, acquisition label, nonempty +whole content of at most 4 KiB, and its SHA-256 digest. None of these checks +authenticates a GitHub origin or a supplied Git object. + +The whole original request is at most 8 MiB with the existing depth-96 JSON +parser. Duplicate keys, including escaped duplicates, are refused recursively. +Embedded object budgets are measured on canonical JSON, not original whitespace: +plan at most 64 KiB with its existing depth-16 parser; context at most 1 MiB +with depth 16. This is a stricter overall depth limit for nested candidate +requests than parsing each candidate at depth 96 independently. Work limits +also apply; a request inside byte limits may still be refused. + +There are 1–16 candidates, each exactly `{cue, attempt}`. A cue contains +1–128 UTF-8 bytes. Each attempt is a full supplied `r30/research-attempt/1`; +synthesis and premise goals are refused. `CandidateBinding.selectedClosed` +requires the named constant, origin equal to theorem, zero premise, empty +telescope, origin membership in sources and exact goal binding. The serialized +target is parsed under the candidate bounds, requires exactly nodes/root, and +passes the existing pure core renderer over every node, including unreachable +nodes and nested fields. Rendered validation bytes are discarded; the supplied +config and target bytes remain unchanged. Valid unused nodes and nonzero roots +are supported. Large well-shaped unused nodes can exhaust the existing work or +output budget; no validation limit is enlarged. Every candidate, +including every unselected candidate, passes `ResearchFactory.candidateReady`: +workspace/tool bounds and pure source construction across the complete arena. +This checks shape and applicability, never proof success. A well-formed invalid +proof must still fail in the owned verifier. + +Task comparison explicitly compares every field, reusing the existing purpose, +ordered-source and sequent comparisons: id, purpose, +intent, status, component, ordered sources, schema, all six sequent fields, +age and weight. Every candidate request has the same full task, serial and +snapshot. `ResearchProject.sameWorkspace` and `ResearchFactory.sameTools`, +plus full request equality and maxBytes/maxDepth/maxSteps equality, preserve +all workspace, environment, tool and execution bounds. Candidate arena, proof, +imports, levels and allowed constructive axioms may differ; the winner is +passed unchanged. The same process environment is supplied to every parser. +The snapshot's `library` is a Git TREE identity; workspace and observation +`revision` fields are COMMIT identities. They are not equated. + +## Selection and lifecycle + +Each candidate scores one hit per admitted observation containing its cue, +from zero to eight. The highest score wins; earlier input order breaks ties. +No observations or all-zero scores picks index zero and reports fallback. +Source text and cue bytes are only substring data. They never supply commands, +imports, tools, proof terms or goals. Candidate proof data comes solely from +the explicit attempts, under the existing construction and verification checks. + +Only after the entire input and pool pass admission does the command call +`ResearchSession.begin` once. It retains the selected session and selection +metadata, with no alternative pool for retries. There is no memory-store +access or lock acquisition. Acquisition and query must finish in another +process before supplying the envelope; the inherited Host has no unlock call. + +Output is `r30/environment-research-result/1`: `selection` contains policy +`r30/context-cue-count/1`, context authority +`supplied/self-consistent/not-authenticated`, SHA-256 of the ORIGINAL request +bytes (an audit binding, not authority), chosen zero-based index, score, +matched zero-based observation indices and fallback. `result` preserves the +existing `r30/research-result/1` request/status/detail/evidence fields; blocked +results include the existing recovery workspace. Admission failure has empty +selection metadata. Only an owned session completion can produce a checked +outcome, after verification and evidence retention. A failed selected proof +never starts a second attempt and does not refute or exhaust the task. + +The Host driver is synchronous. `ResearchSession.Event.cancel` is an internal +pure event, not a native external cancellation channel. This command forwards +native replies as host events; it does not invent a cancellation input. +Incompatible events are refused by the owning lifecycle; arbitrary forged or +replayed same-variant events are not authenticated by the pure model. + +The caller must enforce a whole-run deadline. Timeout, OS termination or crash +does not establish descendant termination or completed cleanup. Inspect retained +workspace, processes and evidence before retrying. A crash after evidence +archival but before output remains uncertain; there is no automatic retry, +durable scheduler, exactly-once, restart or power-loss guarantee. Use the +existing owned-workspace safety assumptions and do not reuse an uncertain +workspace. Context is never proof authority, source inspection or autonomous +learning. This increment does not incorporate the separate inspector work. + +## Qualification boundary + +Source/frontend checks and focused diagnostics precede independent review. +Full-profile production, exact generated executable acceptance, the normal +commit gate and exact-head CI remain required. The compiler is the existing +fixed-kernel native candidate, not an assertion of upstream acceptance. diff --git a/rule30-api/production/environment-research-example.json b/rule30-api/production/environment-research-example.json new file mode 100644 index 0000000..a48a955 --- /dev/null +++ b/rule30-api/production/environment-research-example.json @@ -0,0 +1,222 @@ +{ + "spec": "r30/environment-research/1", + "plan": { + "spec": "r30/environment-plan/1", + "operation": "query", + "task": { + "id": "supplied-context-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [ + "True" + ], + "schema": "closed-True-example", + "sequent": { + "origin": "True", + "theorem": "True", + "premise": 0, + "telescope": "", + "target": "{\"nodes\":[{\"k\":\"c\",\"n\":\"True\",\"u\":[]}],\"root\":0}", + "kind": "closed" + }, + "age": 7, + "weight": 13 + }, + "query": "needle", + "sources": [ + { + "repository": "fixtures/alpha", + "revision": "1111111111111111111111111111111111111111", + "path": "README.md" + } + ] + }, + "context": { + "spec": "r30/environment-context/1", + "trust": "observed-sources-not-proof", + "task": { + "id": "supplied-context-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [ + "True" + ], + "schema": "closed-True-example", + "sequent": { + "origin": "True", + "theorem": "True", + "premise": 0, + "telescope": "", + "target": "{\"nodes\":[{\"k\":\"c\",\"n\":\"True\",\"u\":[]}],\"root\":0}", + "kind": "closed" + }, + "age": 7, + "weight": 13 + }, + "observations": [ + { + "repository": "fixtures/alpha", + "revision": "1111111111111111111111111111111111111111", + "path": "README.md", + "content": "needle constructive truth\n", + "blob": "2222222222222222222222222222222222222222", + "digest": "78840423d88e5bb3d52c0b6cd38df2ed3c5f230b89f0525f1058812283105b57", + "acquisition": "local-git-object" + } + ] + }, + "candidates": [ + { + "cue": "truth", + "attempt": { + "spec": "r30/research-attempt/1", + "request": { + "serial": 1, + "snapshot": { + "library": "3333333333333333333333333333333333333333", + "compiler": "4444444444444444444444444444444444444444444444444444444444444444", + "model": "5555555555555555555555555555555555555555555555555555555555555555" + }, + "task": { + "id": "supplied-context-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [ + "True" + ], + "schema": "closed-True-example", + "sequent": { + "origin": "True", + "theorem": "True", + "premise": 0, + "telescope": "", + "target": "{\"nodes\":[{\"k\":\"c\",\"n\":\"True\",\"u\":[]}],\"root\":0}", + "kind": "closed" + }, + "age": 7, + "weight": 13 + } + }, + "repository": "/owned/rule30", + "revision": "6666666666666666666666666666666666666666", + "output": "/owned/logs/out", + "errors": "/owned/logs/err", + "tools": { + "lexlean": "7777777777777777777777777777777777777777777777777777777777777777", + "lean": "7777777777777777777777777777777777777777777777777777777777777777", + "lake": "7777777777777777777777777777777777777777777777777777777777777777", + "checker": "7777777777777777777777777777777777777777777777777777777777777777" + }, + "arena": { + "nodes": [ + { + "k": "c", + "n": "True", + "u": [] + }, + { + "k": "c", + "n": "True.intro", + "u": [] + } + ], + "root": 0 + }, + "proof": 1, + "imports": [ + "Init" + ], + "levels": [], + "axioms": [], + "bounds": { + "max_bytes": 4096, + "max_depth": 32, + "max_steps": 1024, + "allowance": 60000, + "quantum": 10, + "polls": 6000 + } + } + }, + { + "cue": "alternative", + "attempt": { + "spec": "r30/research-attempt/1", + "request": { + "serial": 1, + "snapshot": { + "library": "3333333333333333333333333333333333333333", + "compiler": "4444444444444444444444444444444444444444444444444444444444444444", + "model": "5555555555555555555555555555555555555555555555555555555555555555" + }, + "task": { + "id": "supplied-context-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [ + "True" + ], + "schema": "closed-True-example", + "sequent": { + "origin": "True", + "theorem": "True", + "premise": 0, + "telescope": "", + "target": "{\"nodes\":[{\"k\":\"c\",\"n\":\"True\",\"u\":[]}],\"root\":0}", + "kind": "closed" + }, + "age": 7, + "weight": 13 + } + }, + "repository": "/owned/rule30", + "revision": "6666666666666666666666666666666666666666", + "output": "/owned/logs/out", + "errors": "/owned/logs/err", + "tools": { + "lexlean": "7777777777777777777777777777777777777777777777777777777777777777", + "lean": "7777777777777777777777777777777777777777777777777777777777777777", + "lake": "7777777777777777777777777777777777777777777777777777777777777777", + "checker": "7777777777777777777777777777777777777777777777777777777777777777" + }, + "arena": { + "nodes": [ + { + "k": "c", + "n": "True", + "u": [] + }, + { + "k": "c", + "n": "True.intro", + "u": [] + } + ], + "root": 0 + }, + "proof": 1, + "imports": [ + "Init" + ], + "levels": [], + "axioms": [], + "bounds": { + "max_bytes": 4096, + "max_depth": 32, + "max_steps": 1024, + "allowance": 60000, + "quantum": 10, + "polls": 6000 + } + } + } + ] +} diff --git a/rule30-api/production/environment-research-request.json b/rule30-api/production/environment-research-request.json new file mode 100644 index 0000000..f37c4b5 --- /dev/null +++ b/rule30-api/production/environment-research-request.json @@ -0,0 +1,18 @@ +{ + "spec": "lexlean/production-request/1", + "roots": [ + { + "package": { + "name": "rule30_environment_research", + "version": "0.1.0" + }, + "root": "Rule30Api.EnvironmentResearchCommand.step", + "targets": [ + { + "id": "rust-std", + "digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f" + } + ] + } + ] +} diff --git a/rule30-api/src/EnvironmentResearchCommand.lex.tex b/rule30-api/src/EnvironmentResearchCommand.lex.tex new file mode 100644 index 0000000..9197708 --- /dev/null +++ b/rule30-api/src/EnvironmentResearchCommand.lex.tex @@ -0,0 +1,74 @@ +\begin{lexlean}{EnvironmentResearchCommand} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{LexLeanStd.Host} +\importmodule{Host} +\importmodule{EnvironmentResearchInput} +\importmodule{EnvironmentResearchSelection} +\importmodule{ResearchSession} +\importmodule{ResearchCommand} +\importmodule{ResearchRecord} +\importmodule{Research} +\importmodule{ResearchWorkspace} +\importmodule{ResearchProject} +\importmodule{Json} +\importmodule{JsonCanonical} +\importmodule{Toml} +\title{Boolean} +\begin{semanticmodule} +inductive{ + name: State, type_parameters: [], parameters: [], + constructors: [{name: reading, fields: [(List (Bytes * Bytes))]}, {name: active, fields: [Json::Value, ResearchSession::State]}, {name: ended, fields: [(Option ResearchSession::State)]}] +} +definition{ + name: finish, parameters: [session : (Option ResearchSession::State), status : UInt8, selection : Json::Value, result : Json::Value], result: (State * LexLeanStd.Host::Request), + body: ((ctor State.ended session), (match (JsonCanonical::file (ctor Json::Value.object (cons (0x73706563, (ctor Json::Value.string 0x7233302f656e7669726f6e6d656e742d72657365617263682d726573756c742f31)) (cons (0x73656c656374696f6e, selection) (cons (0x726573756c74, result) (nil (Bytes * Json::Value)))))) 8388608 16777216) | Option.none => (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 f2a86ff..8e8515b 100644 Binary files a/rule30-lexlean/Core.pdf and b/rule30-lexlean/Core.pdf differ diff --git a/rule30-lexlean/pdf/Core.pdf b/rule30-lexlean/pdf/Core.pdf index f2a86ff..8e8515b 100644 Binary files a/rule30-lexlean/pdf/Core.pdf and b/rule30-lexlean/pdf/Core.pdf differ diff --git a/rule30-paper/Observations.pdf b/rule30-paper/Observations.pdf index 0314f9c..0ca2989 100644 Binary files a/rule30-paper/Observations.pdf and b/rule30-paper/Observations.pdf differ diff --git a/rule30-paper/Paper.pdf b/rule30-paper/Paper.pdf index ca9cc31..5d886ff 100644 Binary files a/rule30-paper/Paper.pdf and b/rule30-paper/Paper.pdf differ diff --git a/rule30-paper/pdf/Observations.pdf b/rule30-paper/pdf/Observations.pdf index 0314f9c..0ca2989 100644 Binary files a/rule30-paper/pdf/Observations.pdf and b/rule30-paper/pdf/Observations.pdf differ diff --git a/rule30-paper/pdf/Paper.pdf b/rule30-paper/pdf/Paper.pdf index ca9cc31..5d886ff 100644 Binary files a/rule30-paper/pdf/Paper.pdf and b/rule30-paper/pdf/Paper.pdf differ