diff --git a/Rule30-Core.pdf b/Rule30-Core.pdf index 8b812ac..f2a86ff 100644 Binary files a/Rule30-Core.pdf and b/Rule30-Core.pdf differ diff --git a/Rule30-Observations.pdf b/Rule30-Observations.pdf index e531f8f..0314f9c 100644 Binary files a/Rule30-Observations.pdf and b/Rule30-Observations.pdf differ diff --git a/Rule30-Paper.pdf b/Rule30-Paper.pdf index d3adb2e..ca9cc31 100644 Binary files a/Rule30-Paper.pdf and b/Rule30-Paper.pdf differ diff --git a/pdf-manifest.json b/pdf-manifest.json index 66e48bd..31c4a85 100644 --- a/pdf-manifest.json +++ b/pdf-manifest.json @@ -1,18 +1,18 @@ { "documents": { "Core": { - "pdf_sha256": "c0d3552b926faeb1b74cbe6d36d407059a31e073a3907226751a780971c372f2", + "pdf_sha256": "99bfdc208dce94d81e4c4cbb4f24e4f56daaa006175b7d96799e2f79ff24b98e", "tex_sha256": "a7cd1807077baa1d1ca34015faf500a24477991859427f4db646e5f230fe54e2" }, "Observations": { - "pdf_sha256": "2a984eee66578dc5dd22049b2dbb0c5d5de652afacd227530771499bf2bc4d62", + "pdf_sha256": "946c0151ff19b9bea418524c9184fd2614ed1d0d8786be167e69be79fadd53c5", "tex_sha256": "056820f37ac40133e341f46ad6c81125e35981150a1cc86f2063faad3f26fbd4" }, "Paper": { - "pdf_sha256": "b4e861207713fc915b1f3e7cf8e981951a95cd73cd8968f1d11a6df84e7d00dc", + "pdf_sha256": "29083b380af1b4ba59d478e8f8b1defaa41df051d44a49bc6f1f487a403e774e", "tex_sha256": "000f988561d9621f9ba2f9a99aba971670864367ebd336e6fbad0e1f71da01cb" } }, - "generated_at_utc": "2026-11-14T10:01:11.420998+00:00", - "source_digest": "f97eb4afb83521401b5665cd9e9eaba18116700500fd6e3924de66a18cca0ea8" + "generated_at_utc": "2026-11-14T22:17:42.029985+00:00", + "source_digest": "fc66c209c514b0c616f3dea01ec778f54dd19356d13c2c780d455710262fe4b9" } diff --git a/rule30-api/README.md b/rule30-api/README.md index 168f7bc..0e4ba46 100644 --- a/rule30-api/README.md +++ b/rule30-api/README.md @@ -708,3 +708,12 @@ bin/r30 api production --targets # the compiler's target descriptors bin/r30 verify api # lexlean verify of the API modules (about five minutes; Convert.lex.tex decides 28 conversions, Rule30Core.lex.tex the first rows) bin/r30 view render [--out DIR] # the current view (the site, statements.json, explainer.json, rule30.svg, the PDFs) ``` + +## Explicit multi-source memory plans + +The additive [environment-plan command](production/ENVIRONMENT-PLAN.md) validates +1–8 pinned source entries before acquiring them sequentially and replacing the +store once. Query operates without checkouts and returns only listed keys in plan +order, with the complete task unchanged and observations carrying no proof authority. +The existing single-source command remains available. The plan increment is +awaiting independent review and qualification. diff --git a/rule30-api/examples/environment-plan-ingest.json b/rule30-api/examples/environment-plan-ingest.json new file mode 100644 index 0000000..a0febc2 --- /dev/null +++ b/rule30-api/examples/environment-plan-ingest.json @@ -0,0 +1,38 @@ +{ + "spec": "r30/environment-plan/1", + "operation": "ingest", + "task": { + "id": "memory-interface-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [], + "schema": "Host request constructors", + "sequent": { + "origin": "InterfaceExample.goal", + "theorem": "InterfaceExample.goal", + "premise": 0, + "telescope": "", + "target": "UNVERIFIED INTERFACE FIXTURE: replace with the exact task target", + "kind": "closed" + }, + "age": 0, + "weight": 1 + }, + "query": "Request", + "sources": [ + { + "repository": "afflom/rule30", + "revision": "e3be477fded263029479127363f7fb6a3597e7d4", + "path": "lexlean-stdlib/src/Host.lex.tex", + "local_repository": "." + }, + { + "repository": "UOR-Foundation/LexLean", + "revision": "9fd01c31e40bb29577833825f902fafcceedb49a", + "path": "examples/production/README.md", + "local_repository": "../LexLean" + } + ] +} diff --git a/rule30-api/examples/environment-plan-query.json b/rule30-api/examples/environment-plan-query.json new file mode 100644 index 0000000..fbe9495 --- /dev/null +++ b/rule30-api/examples/environment-plan-query.json @@ -0,0 +1,36 @@ +{ + "spec": "r30/environment-plan/1", + "operation": "query", + "task": { + "id": "memory-interface-example", + "purpose": "prove", + "intent": "prove", + "status": "ready", + "component": "deduction", + "sources": [], + "schema": "Host request constructors", + "sequent": { + "origin": "InterfaceExample.goal", + "theorem": "InterfaceExample.goal", + "premise": 0, + "telescope": "", + "target": "UNVERIFIED INTERFACE FIXTURE: replace with the exact task target", + "kind": "closed" + }, + "age": 0, + "weight": 1 + }, + "query": "Request", + "sources": [ + { + "repository": "afflom/rule30", + "revision": "e3be477fded263029479127363f7fb6a3597e7d4", + "path": "lexlean-stdlib/src/Host.lex.tex" + }, + { + "repository": "UOR-Foundation/LexLean", + "revision": "9fd01c31e40bb29577833825f902fafcceedb49a", + "path": "examples/production/README.md" + } + ] +} diff --git a/rule30-api/lexlean.lock b/rule30-api/lexlean.lock index 2fa4239..55ff9ff 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 = "163e328801aa738fabc9a0fb01059000b9bf81d003e2ffa0473fc96869fcda70" +project_config_sha256 = "a3a5a5708da7bc4dfaacf3cd2a52e3d8558e7937d1cc876bc6973558b31acb29" lean_toolchain = "leanprover/lean4:v4.32.2" [[workspace_file]] diff --git a/rule30-api/lexlean.toml b/rule30-api/lexlean.toml index 398f881..a915ff2 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/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/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-PLAN.md b/rule30-api/production/ENVIRONMENT-PLAN.md new file mode 100644 index 0000000..85506a6 --- /dev/null +++ b/rule30-api/production/ENVIRONMENT-PLAN.md @@ -0,0 +1,72 @@ +# Explicit environmental-memory plans + +`EnvironmentPlanCommand.step` accepts a bounded corpus through one native Host +command. It supplements the unchanged single-source v1 command. It acquires +observations and returns context; it does not synthesize proofs, crawl GitHub, +or schedule Engine learning. + +The executable takes `PRIVATE_STATE_DIRECTORY REQUEST.json`. The caller must +provide a private state directory and an outer execution deadline: lock acquisition +is blocking. Ingestion requires caller-owned local Git repositories. Query needs +only the store and a plan; it never opens those repositories. + +The private directory reserves `git-output`, `git-errors`, `store.lock`, +`observations.pending`, and `observations.json`. These paths must not be symlinks +or hardlink aliases of one another or of other files. No competing writer or +adversarial filesystem mutation may touch them during an operation; cooperative +command callers must use the same lock. Inspect retained state and establish +child termination before retrying when cleanup is uncertain. Scratch-file changes +are not a store transaction, and an outer deadline does not establish cleanup. + +The native Host driver handles requests synchronously. The pure step function +rejects incompatible event variants, but it does not authenticate arbitrary +forged or replayed responses of the expected variant. Its event protocol assumes +the owned synchronous driver; it is not an authenticated external event service. + +The request schema is `r30/environment-plan/1` with exactly these fields: + +- `spec`, `operation` (`ingest` or `query`), `task`, `query`, `sources`. +- `task` is the existing complete ready `Research.Task` request shape. +- `query` contains 1–128 bytes. +- `sources` contains 1–8 entries, in retrieval order. +- Each entry has `repository` (claimed owner/name), `revision` (40 lowercase + hexadecimal bytes), and `path` (1–256 safe relative-path bytes). +- Ingestion entries additionally require `local_repository`, a nonempty printable + ASCII path of at most 1024 bytes. Query entries omit that field entirely. + +Unknown or duplicate JSON fields, invalid entries, and repeated source keys are +refused. A source key is the exact repository/revision/path triple. Repeating it +with a different local directory is also refused. The entire plan is validated +before locking or starting Git, including entries later in the list. + +See `../examples/environment-plan-ingest.json` and +`../examples/environment-plan-query.json`. These are caller-adaptable examples, +not proof requests or successful acquisition receipts. Supply the actual local +checkout paths for ingestion. The example task's unverified target stays unverified. + +The command holds the existing store lock and runs `EnvironmentAcquisition` +sequentially, preserving its no-network Git command, exact commit/path/blob +binding, ownership rules, and 4096-byte **whole-file** cap. It accumulates validated +observations in memory. A later acquisition failure or capacity/conflict refusal +performs no store replacement, retaining the prior `observations.json` bytes. +Git output scratch files may have changed and must remain private. + +Only after all acquisitions succeed does it serialize once, write +`observations.pending`, rename it over `observations.json`, and require exact +validated readback before success. An unconfirmed replacement or readback is +reported as uncertain. No power-loss durability or fsync guarantee is claimed. +The existing store format, 32-record capacity and 1 MiB serialization/readback +bound are unchanged. Already-known observations remain idempotent. + +Both operations return `r30/environment-context/1` with the unchanged task and +sequent, the `observed-sources-not-proof` trust label, and at most eight matching +observations. Only exact keys listed in the plan are eligible; results follow +plan order, independently of store order. Missing keys and nonmatching content +produce no observation; another revision or unselected path cannot substitute. +Repository labels do not authenticate a GitHub origin. Source text stays inert +and has no proof authority. + +The production request is `environment-plan-request.json`, selecting only the +new `Rule30Api.EnvironmentPlanCommand.step` export. Official verification still +covers every configured obligation. This source increment is awaiting independent +review and kernel/native qualification; linked-IR checking alone is not acceptance. diff --git a/rule30-api/production/environment-plan-request.json b/rule30-api/production/environment-plan-request.json new file mode 100644 index 0000000..603daa5 --- /dev/null +++ b/rule30-api/production/environment-plan-request.json @@ -0,0 +1,18 @@ +{ + "spec": "lexlean/production-request/1", + "roots": [ + { + "package": { + "name": "rule30_environment_plan", + "version": "0.1.0" + }, + "root": "Rule30Api.EnvironmentPlanCommand.step", + "targets": [ + { + "id": "rust-std", + "digest": "0f5802ea18121b6a7a0d03e999589ce4e5ae812dc2a358432c1bf024a8e53f9f" + } + ] + } + ] +} diff --git a/rule30-api/src/EnvironmentPlan.lex.tex b/rule30-api/src/EnvironmentPlan.lex.tex new file mode 100644 index 0000000..f881255 --- /dev/null +++ b/rule30-api/src/EnvironmentPlan.lex.tex @@ -0,0 +1,70 @@ +\begin{lexlean}{EnvironmentPlan} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentMemory} +\importmodule{ResearchInput} +\importmodule{Research} +\importmodule{CoreNotation} +\importmodule{CoreBinding} +\importmodule{Json} +\importmodule{Toml} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Source, type_parameters: [], parameters: [], + fields: [{name: repository, type: Bytes}, {name: revision, type: Bytes}, {name: path, type: Bytes}, {name: directory, type: String}] +} +structure{ + name: Plan, type_parameters: [], parameters: [], + fields: [{name: ingest, type: Bool}, {name: task, type: Research::Task}, {name: query, type: Bytes}, {name: sources, type: (List Source)}] +} +definition{ + name: sourceKeys, parameters: [], result: (List Bytes), + body: (cons 0x7265706f7369746f7279 (cons 0x7265766973696f6e (cons 0x70617468 (nil Bytes)))), executable: true +} +definition{ + name: validSource, parameters: [source : Source], result: Bool, + body: ((EnvironmentMemory::repositoryLabel (project source repository)) && ((((prim length (project source revision) : Nat) =? 40) && (EnvironmentMemory::hexadecimal (project source revision) 0 40)) && ((EnvironmentMemory::bounded (project source path) 256) && ((EnvironmentMemory::safeName (project source path) 0 (prim length (project source path) : Nat)) && ((not (EnvironmentMemory::contains (project source path) 0x2e2e)) && (not (Toml::byteIs (project source path) 0 (47 : UInt8)))))))), axioms: [propext], executable: true +} +definition{ + name: parseSource, parameters: [ingest : Bool, value : Json::Value], result: (Option Source), + body: (if (CoreNotation::shape value (if ingest then (cons 0x6c6f63616c5f7265706f7369746f7279 (sourceKeys)) else (sourceKeys))) then (match (ResearchInput::text (if ingest then (CoreBinding::get value 0x6c6f63616c5f7265706f7369746f7279) else (ctor Json::Value.string 0x))) | Option.none => (ctor Option.none [Source]) | Option.some directory => (let source : Source := (record Source {repository := (EnvironmentMemory::get value 0x7265706f7369746f7279), revision := (EnvironmentMemory::get value 0x7265766973696f6e), path := (EnvironmentMemory::get value 0x70617468), directory := directory}); (if ((validSource source) && ((not ingest) || (EnvironmentMemory::bounded (EnvironmentMemory::get value 0x6c6f63616c5f7265706f7369746f7279) 1024))) then (ctor Option.some [Source] source) else (ctor Option.none [Source])))) else (ctor Option.none [Source])), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: sameKey, parameters: [left : Source, right : Source], result: Bool, + body: ((Toml::sameBytes (project left repository) (project right repository)) && ((Toml::sameBytes (project left revision) (project right revision)) && (Toml::sameBytes (project left path) (project right path)))), executable: true +} +definition{ + name: absent, parameters: [source : Source, sources : (List Source)], result: Bool, + body: (match sources | List.nil => true | List.cons head tail => ((not (sameKey source head)) && (absent source tail))), recursive_argument: sources, executable: true +} +definition{ + name: parseSources, parameters: [ingest : Bool, values : (List Json::Value), fuel : Nat], result: (Option (List Source)), + body: (match values | List.nil => (ctor Option.some [(List Source)] (nil Source)) | List.cons head tail => (match fuel | Nat.zero => (ctor Option.none [(List Source)]) | Nat.succ more => (match (parseSource ingest head) | Option.none => (ctor Option.none [(List Source)]) | Option.some source => (match (parseSources ingest tail more) | Option.none => (ctor Option.none [(List Source)]) | Option.some rest => (if (absent source rest) then (ctor Option.some [(List Source)] (cons source rest)) else (ctor Option.none [(List Source)])))))), recursive_argument: values, axioms: [Quot.sound, propext], executable: true +} +definition{ + name: parse, parameters: [data : Bytes], result: (Option Plan), + body: (match (Json::parse data 65536 16) | Result.error problem => (ctor Option.none [Plan]) | Result.ok value => (if ((CoreNotation::shape value (cons 0x73706563 (cons 0x6f7065726174696f6e (cons 0x7461736b (cons 0x7175657279 (cons 0x736f7572636573 (nil Bytes))))))) && ((Toml::sameBytes (EnvironmentMemory::get value 0x73706563) 0x7233302f656e7669726f6e6d656e742d706c616e2f31) && ((EnvironmentMemory::bounded (EnvironmentMemory::get value 0x7175657279) 128) && ((Toml::sameBytes (EnvironmentMemory::get value 0x6f7065726174696f6e) 0x696e67657374) || (Toml::sameBytes (EnvironmentMemory::get value 0x6f7065726174696f6e) 0x7175657279))))) then (match (ResearchInput::task (CoreBinding::get value 0x7461736b)) | Option.none => (ctor Option.none [Plan]) | Option.some task => (match (ResearchInput::array (CoreBinding::get value 0x736f7572636573)) | Option.none => (ctor Option.none [Plan]) | Option.some values => (let ingest : Bool := (Toml::sameBytes (EnvironmentMemory::get value 0x6f7065726174696f6e) 0x696e67657374); (match values | List.nil => (ctor Option.none [Plan]) | List.cons head tail => (match (parseSources ingest values 8) | Option.none => (ctor Option.none [Plan]) | Option.some sources => (ctor Option.some [Plan] (record Plan {ingest := ingest, task := task, query := (EnvironmentMemory::get value 0x7175657279), sources := sources}))))))) else (ctor Option.none [Plan]))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: matches, parameters: [source : Source, item : EnvironmentMemory::Observation], result: Bool, + body: ((Toml::sameBytes (project source repository) (project item repository)) && ((Toml::sameBytes (project source revision) (project item revision)) && (Toml::sameBytes (project source path) (project item path)))), executable: true +} +definition{ + name: find, parameters: [source : Source, query : Bytes, store : (List EnvironmentMemory::Observation)], result: (Option EnvironmentMemory::Observation), + body: (match store | List.nil => (ctor Option.none [EnvironmentMemory::Observation]) | List.cons head tail => (if ((matches source head) && (EnvironmentMemory::contains (project head content) query)) then (ctor Option.some [EnvironmentMemory::Observation] head) else (find source query tail))), recursive_argument: store, executable: true +} +definition{ + name: retrieve, parameters: [sources : (List Source), query : Bytes, store : (List EnvironmentMemory::Observation), fuel : Nat], result: (List EnvironmentMemory::Observation), + body: (match sources | List.nil => (nil EnvironmentMemory::Observation) | List.cons head tail => (match fuel | Nat.zero => (nil EnvironmentMemory::Observation) | Nat.succ more => (match (find head query store) | Option.none => (retrieve tail query store more) | Option.some item => (cons item (retrieve tail query store more))))), recursive_argument: sources, executable: true +} +definition{ + name: context, parameters: [plan : Plan, store : (List EnvironmentMemory::Observation)], result: EnvironmentMemory::Context, + body: (record EnvironmentMemory::Context {task := (project plan task), observations := (retrieve (project plan sources) (project plan query) store 8)}), executable: true +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "complete-bounded-plan-validation" (cons "duplicate-source-and-directory-alias-refusal" (cons "exact-listed-keys-in-plan-order" (cons "unchanged-task-and-sequent" (nil String))))), executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentPlanCommand.lex.tex b/rule30-api/src/EnvironmentPlanCommand.lex.tex new file mode 100644 index 0000000..333725b --- /dev/null +++ b/rule30-api/src/EnvironmentPlanCommand.lex.tex @@ -0,0 +1,99 @@ +\begin{lexlean}{EnvironmentPlanCommand} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentMemory} +\importmodule{EnvironmentPlan} +\importmodule{EnvironmentMemoryCommand} +\importmodule{EnvironmentAcquisition} +\importmodule{ResearchInput} +\importmodule{ResearchRecord} +\importmodule{Research} +\importmodule{LexLeanStd.Host} +\importmodule{Host} +\importmodule{Json} +\importmodule{JsonCanonical} +\importmodule{Toml} +\title{Boolean} +\begin{semanticmodule} +structure{ + name: Config, type_parameters: [], parameters: [], + fields: [{name: home, type: String}, {name: plan, type: EnvironmentPlan::Plan}] +} +inductive{ + name: State, type_parameters: [], parameters: [], + constructors: [{name: checkingRequest, fields: [String, String]}, {name: readingRequest, fields: [String]}, {name: locking, fields: [Config]}, {name: checkingStore, fields: [Config]}, {name: readingStore, fields: [Config]}, {name: acquiring, fields: [Config, (List EnvironmentMemory::Observation), EnvironmentPlan::Source, (List EnvironmentPlan::Source), EnvironmentAcquisition::State]}, {name: writing, fields: [Config, Bytes]}, {name: renaming, fields: [Config, Bytes]}, {name: reopening, fields: [Config, Bytes]}, {name: ended, fields: []}] +} + +definition{ + name: error, parameters: [reason : String], result: (State * LexLeanStd.Host::Request), + body: ((ctor State.ended), (ctor LexLeanStd.Host::Request.exit (2 : UInt8) 0x (prim utf8_encode reason : Bytes))), axioms: [], executable: true +} +definition{ + name: path, parameters: [config : Config, suffix : String], result: String, + body: (EnvironmentAcquisition::join (project config home) suffix), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: parseConfig, parameters: [home : String, data : Bytes], result: (Option Config), + body: (match (EnvironmentPlan::parse data) | Option.none => (ctor Option.none [Config]) | Option.some plan => (ctor Option.some [Config] (record Config {home := home, plan := plan}))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: inspect, parameters: [config : Config, store : (List EnvironmentMemory::Observation)], result: Json::Value, + body: (let context : EnvironmentMemory::Context := (EnvironmentPlan::context (project config plan) store); (ctor Json::Value.object (cons (0x73706563, (ctor Json::Value.string 0x7233302f656e7669726f6e6d656e742d636f6e746578742f31)) (cons (0x7472757374, (ctor Json::Value.string 0x6f627365727665642d736f75726365732d6e6f742d70726f6f66)) (cons (0x7461736b, (ResearchRecord::task (project context task))) (cons (0x6f62736572766174696f6e73, (ctor Json::Value.array (EnvironmentMemory::encodeItems (project context observations)))) (nil (Bytes * Json::Value)))))))), executable: true +} +definition{ + name: finish, parameters: [config : Config, store : (List EnvironmentMemory::Observation)], result: (State * LexLeanStd.Host::Request), + body: (match (JsonCanonical::file (inspect config store) 1048576 2097152) | Option.none => (error "inspection context exceeds output budget") | Option.some data => ((ctor State.ended), (ctor LexLeanStd.Host::Request.exit (0 : UInt8) data 0x))), axioms: [propext], executable: true +} +definition{ + name: acquisitionConfig, parameters: [config : Config, source : EnvironmentPlan::Source], result: EnvironmentAcquisition::Config, + body: (record EnvironmentAcquisition::Config {request := (record Research::Request {serial := 0, snapshot := (record Research::Snapshot {library := (project source revision), compiler := 0x, model := 0x}), task := (project (project config plan) task)}), directory := (project source directory), repository := (project source repository), revision := (project source revision), path := (project source path), output := (path config "/git-output"), errors := (path config "/git-errors")}), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: nextSource, parameters: [config : Config, store : (List EnvironmentMemory::Observation), remaining : (List EnvironmentPlan::Source)], result: (State * LexLeanStd.Host::Request), + body: (match remaining | List.nil => (match (EnvironmentMemory::serialize store) | Option.none => (error "memory cannot be serialized within durable byte budget") | Option.some data => ((ctor State.writing config data), (ctor LexLeanStd.Host::Request.write (path config "/observations.pending") data))) | List.cons source tail => (let result : (EnvironmentAcquisition::State * EnvironmentAcquisition::Emission) := (EnvironmentAcquisition::begin (acquisitionConfig config source)); (match (second result) | EnvironmentAcquisition::Emission.host request => ((ctor State.acquiring config store source tail (first result)), request) | EnvironmentAcquisition::Emission.failed reason => (error reason) | EnvironmentAcquisition::Emission.complete item => (error "unexpected immediate acquisition completion")))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: acquired, parameters: [config : Config, store : (List EnvironmentMemory::Observation), source : EnvironmentPlan::Source, remaining : (List EnvironmentPlan::Source), result : (EnvironmentAcquisition::State * EnvironmentAcquisition::Emission)], result: (State * LexLeanStd.Host::Request), + body: (match (second result) | EnvironmentAcquisition::Emission.host request => ((ctor State.acquiring config store source remaining (first result)), request) | EnvironmentAcquisition::Emission.failed reason => (error reason) | EnvironmentAcquisition::Emission.complete item => (if (EnvironmentPlan::matches source item) then (match (EnvironmentMemory::ingest item store) | Option.none => (error "memory full or immutable source conflicts; previous store retained") | Option.some next => (nextSource config next remaining)) else (error "acquisition source mismatch; previous store retained"))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: useStore, parameters: [config : Config, store : (List EnvironmentMemory::Observation)], result: (State * LexLeanStd.Host::Request), + body: (if (project (project config plan) ingest) then (nextSource config store (project (project config plan) sources)) else (finish config store)), axioms: [Quot.sound, propext], executable: true +} + + +definition{ + name: checkingStore, parameters: [config : Config, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asStated event) | Option.none => (error "expected memory metadata") | Option.some reply => (match reply | Result.ok entry => (if (EnvironmentMemoryCommand::fileWithin entry 1048576) then ((ctor State.readingStore config), (ctor LexLeanStd.Host::Request.read (path config "/observations.json"))) else (error "memory must be a regular file within 1 MiB")) | Result.error failure => (match (project failure kind) | LexLeanStd.Host::FailureKind.notFound => (if (project (project config plan) ingest) then (useStore config (nil EnvironmentMemory::Observation)) else (error "memory store does not exist")) | LexLeanStd.Host::FailureKind.alreadyExists => (error "memory stat failed") | LexLeanStd.Host::FailureKind.denied => (error "memory access denied") | LexLeanStd.Host::FailureKind.other => (error "memory stat failed")))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: readingStore, parameters: [config : Config, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error "expected memory read") | Option.some reply => (match reply | Result.error failure => (error "memory read failed") | Result.ok data => (match (EnvironmentMemory::readback data) | Option.none => (error "malformed or conflicting memory; no overwrite") | Option.some store => (useStore config store)))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: readingRequest, parameters: [home : String, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error "expected request read") | Option.some reply => (match reply | Result.error failure => (error "request read failed") | Result.ok data => (match (parseConfig home data) | Option.none => (error "invalid environment plan; no sources acquired") | Option.some config => ((ctor State.locking config), (ctor LexLeanStd.Host::Request.lock (path config "/store.lock")))))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: reopening, parameters: [config : Config, expected : Bytes, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match (Host::asRead event) | Option.none => (error "expected durable memory readback; outcome uncertain") | Option.some reply => (match reply | Result.error failure => (error "durable memory readback failed; outcome uncertain") | Result.ok data => (if (Toml::sameBytes data expected) then (match (EnvironmentMemory::readback data) | Option.none => (error "stored memory failed validation; outcome uncertain") | Option.some store => (finish config store)) else (error "stored memory differs; outcome uncertain")))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: resume, parameters: [state : State, event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match state | State.checkingRequest home requestPath => (match (Host::asStated event) | Option.none => (error "expected request metadata") | Option.some reply => (match reply | Result.error failure => (error "request metadata failed") | Result.ok entry => (if (EnvironmentMemoryCommand::fileWithin entry 65536) then ((ctor State.readingRequest home), (ctor LexLeanStd.Host::Request.read requestPath)) else (error "request must be a regular file within 64 KiB")))) | State.readingRequest home => (readingRequest home event) | State.locking config => (if (EnvironmentMemoryCommand::finished event) then ((ctor State.checkingStore config), (ctor LexLeanStd.Host::Request.stat (path config "/observations.json"))) else (error "memory lock unavailable")) | State.checkingStore config => (checkingStore config event) | State.readingStore config => (readingStore config event) | State.acquiring config store source remaining active => (acquired config store source remaining (EnvironmentAcquisition::step active event)) | State.writing config data => (if (EnvironmentMemoryCommand::finished event) then ((ctor State.renaming config data), (ctor LexLeanStd.Host::Request.rename (path config "/observations.pending") (path config "/observations.json"))) else (error "memory write failed; previous store retained")) | State.renaming config data => (if (EnvironmentMemoryCommand::finished event) then ((ctor State.reopening config data), (ctor LexLeanStd.Host::Request.read (path config "/observations.json"))) else (error "memory replacement unconfirmed; outcome uncertain; retain private directory")) | State.reopening config data => (reopening config data event) | State.ended => (error "memory command cannot restart")), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: start, parameters: [initial : LexLeanStd.Host::Start], result: (State * LexLeanStd.Host::Request), + body: (match (project initial arguments) | List.nil => (error "usage: environment-plan PRIVATE_STATE_DIRECTORY REQUEST.json") | List.cons home rest => (match rest | List.nil => (error "expected state directory and request") | List.cons requestPath tail => (match tail | List.cons extra more => (error "expected exactly two arguments") | List.nil => (match (ResearchInput::text (ctor Json::Value.string home)) | Option.none => (error "state directory must be printable ASCII") | Option.some directory => (match (ResearchInput::text (ctor Json::Value.string requestPath)) | Option.none => (error "request path must be printable ASCII") | Option.some file => (if ((EnvironmentMemory::bounded home 1024) && (EnvironmentMemory::bounded requestPath 1024)) then ((ctor State.checkingRequest directory file), (ctor LexLeanStd.Host::Request.stat file)) else (error "empty or excessive path"))))))), axioms: [Quot.sound, propext], executable: true +} +definition{ + name: step, parameters: [state : (Option State), event : LexLeanStd.Host::Event], result: (State * LexLeanStd.Host::Request), + body: (match state | Option.none => (match (Host::asStart event) | Option.none => (error "expected Host start") | Option.some initial => (start initial)) | Option.some active => (resume active event)), axioms: [Quot.sound, propext], executable: true, + production: {effects: [allocation, files, overflow, process, recursion], targets: [rust-std]} +} +definition{ + name: features, parameters: [], result: (List String), + body: (cons "sequential-owned-multi-source-acquisition" (cons "all-sources-before-one-store-replacement" (cons "success-after-exact-readback" (cons "checkout-free-selected-context-query" (nil String))))), executable: true +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentPlanTraces.lex.tex b/rule30-api/src/EnvironmentPlanTraces.lex.tex new file mode 100644 index 0000000..a6b7b23 --- /dev/null +++ b/rule30-api/src/EnvironmentPlanTraces.lex.tex @@ -0,0 +1,187 @@ +\begin{lexlean}{EnvironmentPlanTraces} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentPlan} +\importmodule{EnvironmentPlanWireTraces0} +\importmodule{EnvironmentPlanWireTraces1} +\importmodule{EnvironmentAcquisition} +\importmodule{EnvironmentPlanCommand} +\importmodule{EnvironmentMemory} +\importmodule{EnvironmentMemoryTraces} +\importmodule{Research} +\importmodule{Json} +\importmodule{Toml} +\importmodule{LexLeanStd.Host} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: fixtureSource, parameters: [repository : Bytes], result: EnvironmentPlan::Source, + body: (record EnvironmentPlan::Source {repository := repository, revision := (EnvironmentMemoryTraces::revision), path := 0x524541444d452e6d64, directory := "/unused"}) +} +definition{ + name: fixtureObservation, parameters: [repository : Bytes], result: EnvironmentMemory::Observation, + body: (let item : EnvironmentMemory::Observation := (EnvironmentMemoryTraces::observation (EnvironmentMemoryTraces::revision)); (record EnvironmentMemory::Observation {repository := repository, revision := (project item revision), path := (project item path), content := (project item content), blob := (project item blob), digest := (project item digest), acquisition := (project item acquisition)})) +} +definition{ + name: fixtureStore, parameters: [], result: (List EnvironmentMemory::Observation), + body: (cons (fixtureObservation 0x6f746865722f756e73656c6563746564) (cons (fixtureObservation 0x554f522d466f756e646174696f6e2f4c65784c65616e) (cons (fixtureObservation 0x6166666c6f6d2f72756c653330) (nil EnvironmentMemory::Observation)))) +} +definition{ + name: fixtureSources, parameters: [], result: (List EnvironmentPlan::Source), + body: (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x554f522d466f756e646174696f6e2f4c65784c65616e) (nil EnvironmentPlan::Source))) +} +theorem{ + name: twoRepositoriesInPlanOrderExcludeUnselected, parameters: [], + statement: ((EnvironmentPlan::retrieve (fixtureSources) 0x6263 (fixtureStore) 8) = (cons (fixtureObservation 0x6166666c6f6d2f72756c653330) (cons (fixtureObservation 0x554f522d466f756e646174696f6e2f4c65784c65616e) (nil EnvironmentMemory::Observation)))), proof: reflexivity{} +} +theorem{ + name: queryMismatchExcludesEverything, parameters: [], + statement: ((EnvironmentPlan::retrieve (fixtureSources) 0x7a (fixtureStore) 8) = (nil EnvironmentMemory::Observation)), proof: decide{} +} +theorem{ + name: zeroBudgetReturnsNothing, parameters: [], + statement: ((EnvironmentPlan::retrieve (fixtureSources) 0x6263 (fixtureStore) 0) = (nil EnvironmentMemory::Observation)), proof: decide{} +} +theorem{ + name: retrievalStopsAtEight, parameters: [], + statement: ((prim length (EnvironmentPlan::retrieve (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (cons (fixtureSource 0x6166666c6f6d2f72756c653330) (nil EnvironmentPlan::Source)))))))))) 0x6263 (fixtureStore) 8) : Nat) = 8), proof: decide{} +} +theorem{ + name: exactTaskAndSequentPreserved, parameters: [plan : EnvironmentPlan::Plan, store : (List EnvironmentMemory::Observation)], + statement: ((project (EnvironmentPlan::context plan store) task) = (project plan task)), proof: reflexivity{} +} +definition{ + name: sourceCount, parameters: [value : (Option (List EnvironmentPlan::Source))], result: Nat, + body: (match value | Option.none => 999 | Option.some sources => (prim length sources : Nat)) +} +definition{ + name: sourceJson, parameters: [parsed : (Result Json::Value Json::Problem)], result: Json::Value, + body: (match parsed | Result.error problem => (ctor Json::Value.null) | Result.ok value => value) +} +definition{ + name: planAccepted, parameters: [parsed : (Option EnvironmentPlan::Plan)], result: Bool, + body: (EnvironmentPlanWireTraces0::planAccepted parsed) +} +theorem{ + name: queryNeedsNoLocalCheckout, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d 65536 16)) (nil Json::Value)) 8)) = 1), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: duplicateKeyRefused, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d 65536 16)) (nil Json::Value))) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: conflictingLocalAliasesRefused, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources true (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64222c226c6f63616c5f7265706f7369746f7279223a222f61227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64222c226c6f63616c5f7265706f7369746f7279223a222f62227d 65536 16)) (nil Json::Value))) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: invalidLaterRevisionRefusesWholeList, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2248454144222c2270617468223a226f74686572227d 65536 16)) (nil Json::Value))) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: unknownSourceFieldRefused, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64222c2270726f766564223a747275657d 65536 16)) (nil Json::Value)) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: queryRejectsLocalDirectoryField, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64222c226c6f63616c5f7265706f7369746f7279223a222f61227d 65536 16)) (nil Json::Value)) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: ingestRequiresLocalDirectory, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources true (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d 65536 16)) (nil Json::Value)) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: ingestRejectsEmptyDirectory, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources true (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64222c226c6f63616c5f7265706f7369746f7279223a22227d 65536 16)) (nil Json::Value)) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: sourceBudgetRefusesNinth, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2230227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2231227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2232227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2233227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2234227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2235227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2236227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2237227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2238227d 65536 16)) (nil Json::Value)))))))))) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: eightSourcesAdmitted, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2230227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2231227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2232227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2233227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2234227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2235227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2236227d 65536 16)) (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a2237227d 65536 16)) (nil Json::Value))))))))) 8)) = 8), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: parentPathRefused, parameters: [], + statement: ((sourceCount (EnvironmentPlan::parseSources false (cons (sourceJson (Json::parse 0x7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a222e2e2f736563726574227d 65536 16)) (nil Json::Value)) 8)) = 999), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: completeQueryPlanAccepted, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d7d)) = true), proof: apply{theorem: EnvironmentPlanWireTraces0::completeQueryPlanAccepted, arguments: []}, axioms: [Quot.sound, propext] +} +theorem{ + name: emptyPlanRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b5d7d)) = false), proof: apply{theorem: EnvironmentPlanWireTraces0::emptyPlanRefused, arguments: []}, axioms: [Quot.sound, propext] +} +theorem{ + name: emptyQueryRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d7d)) = false), proof: apply{theorem: EnvironmentPlanWireTraces0::emptyQueryRefused, arguments: []}, axioms: [Quot.sound, propext] +} +theorem{ + name: excessQueryRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d7d)) = false), proof: apply{theorem: EnvironmentPlanWireTraces1::excessQueryRefused, arguments: []}, axioms: [Quot.sound, propext] +} +theorem{ + name: unknownPlanFieldRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d2c2270726f766564223a747275657d)) = false), proof: apply{theorem: EnvironmentPlanWireTraces1::unknownPlanFieldRefused, arguments: []}, axioms: [Quot.sound, propext] +} +theorem{ + name: invalidLastSourceRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d2c7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a222e2e2f626164227d5d7d)) = false), proof: apply{theorem: EnvironmentPlanWireTraces1::invalidLastSourceRefused, arguments: []}, axioms: [Quot.sound, propext] +} +theorem{ + name: acquisitionFailureCannotWrite, parameters: [config : EnvironmentPlanCommand::Config, store : (List EnvironmentMemory::Observation), source : EnvironmentPlan::Source, remaining : (List EnvironmentPlan::Source), active : EnvironmentAcquisition::State, reason : String], + statement: ((EnvironmentPlanCommand::acquired config store source remaining (active, (ctor EnvironmentAcquisition::Emission.failed reason))) = (EnvironmentPlanCommand::error reason)), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: acquisitionReplyKeepsRemainingSources, parameters: [config : EnvironmentPlanCommand::Config, store : (List EnvironmentMemory::Observation), source : EnvironmentPlan::Source, remaining : (List EnvironmentPlan::Source), active : EnvironmentAcquisition::State, request : LexLeanStd.Host::Request], + statement: ((EnvironmentPlanCommand::acquired config store source remaining (active, (ctor EnvironmentAcquisition::Emission.host request))) = ((ctor EnvironmentPlanCommand::State.acquiring config store source remaining active), request)), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: unexpectedLockReplyCannotAcquire, parameters: [config : EnvironmentPlanCommand::Config], + statement: ((EnvironmentPlanCommand::resume (ctor EnvironmentPlanCommand::State.locking config) (ctor LexLeanStd.Host::Event.read (ctor Result.ok [Bytes, LexLeanStd.Host::Failure] 0x))) = (EnvironmentPlanCommand::error "memory lock unavailable")), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: unexpectedWriteReplyCannotReplace, parameters: [config : EnvironmentPlanCommand::Config, data : Bytes], + statement: ((EnvironmentPlanCommand::resume (ctor EnvironmentPlanCommand::State.writing config data) (ctor LexLeanStd.Host::Event.read (ctor Result.ok [Bytes, LexLeanStd.Host::Failure] 0x))) = (EnvironmentPlanCommand::error "memory write failed; previous store retained")), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: unexpectedRenameReplyIsUncertain, parameters: [config : EnvironmentPlanCommand::Config, data : Bytes], + statement: ((EnvironmentPlanCommand::resume (ctor EnvironmentPlanCommand::State.renaming config data) (ctor LexLeanStd.Host::Event.read (ctor Result.ok [Bytes, LexLeanStd.Host::Failure] 0x))) = (EnvironmentPlanCommand::error "memory replacement unconfirmed; outcome uncertain; retain private directory")), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: readbackMismatchCannotSucceed, parameters: [config : EnvironmentPlanCommand::Config], + statement: ((EnvironmentPlanCommand::reopening config 0x61 (ctor LexLeanStd.Host::Event.read (ctor Result.ok [Bytes, LexLeanStd.Host::Failure] 0x))) = (EnvironmentPlanCommand::error "stored memory differs; outcome uncertain")), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: endedCommandCannotRestart, parameters: [event : LexLeanStd.Host::Event], + statement: ((EnvironmentPlanCommand::resume (ctor EnvironmentPlanCommand::State.ended) event) = (EnvironmentPlanCommand::error "memory command cannot restart")), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: onlyEmptyRemainingPlanCanEnterStoreWrite, + parameters: [config : EnvironmentPlanCommand::Config, store : (List EnvironmentMemory::Observation)], + statement: ((EnvironmentPlanCommand::nextSource config store (nil EnvironmentPlan::Source)) = (match (EnvironmentMemory::serialize store) | Option.none => (EnvironmentPlanCommand::error "memory cannot be serialized within durable byte budget") | Option.some data => ((ctor EnvironmentPlanCommand::State.writing config data), (ctor LexLeanStd.Host::Request.write (EnvironmentPlanCommand::path config "/observations.pending") data)))), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: remainingSourceStartsOwnedAcquisitionBeforeWrite, + parameters: [config : EnvironmentPlanCommand::Config, store : (List EnvironmentMemory::Observation), source : EnvironmentPlan::Source, remaining : (List EnvironmentPlan::Source)], + statement: ((EnvironmentPlanCommand::nextSource config store (cons source remaining)) = (let result : (EnvironmentAcquisition::State * EnvironmentAcquisition::Emission) := (EnvironmentAcquisition::begin (EnvironmentPlanCommand::acquisitionConfig config source)); (match (second result) | EnvironmentAcquisition::Emission.host request => ((ctor EnvironmentPlanCommand::State.acquiring config store source remaining (first result)), request) | EnvironmentAcquisition::Emission.failed reason => (EnvironmentPlanCommand::error reason) | EnvironmentAcquisition::Emission.complete item => (EnvironmentPlanCommand::error "unexpected immediate acquisition completion")))), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: writeAcknowledgementOnlyRequestsRename, + parameters: [config : EnvironmentPlanCommand::Config, data : Bytes], + statement: ((EnvironmentPlanCommand::resume (ctor EnvironmentPlanCommand::State.writing config data) (ctor LexLeanStd.Host::Event.finished (ctor Result.ok [Unit, LexLeanStd.Host::Failure] ()))) = ((ctor EnvironmentPlanCommand::State.renaming config data), (ctor LexLeanStd.Host::Request.rename (EnvironmentPlanCommand::path config "/observations.pending") (EnvironmentPlanCommand::path config "/observations.json")))), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: renameAcknowledgementOnlyRequestsReadback, + parameters: [config : EnvironmentPlanCommand::Config, data : Bytes], + statement: ((EnvironmentPlanCommand::resume (ctor EnvironmentPlanCommand::State.renaming config data) (ctor LexLeanStd.Host::Event.finished (ctor Result.ok [Unit, LexLeanStd.Host::Failure] ()))) = ((ctor EnvironmentPlanCommand::State.reopening config data), (ctor LexLeanStd.Host::Request.read (EnvironmentPlanCommand::path config "/observations.json")))), proof: reflexivity{}, axioms: [Quot.sound, propext] +} +theorem{ + name: queryUsesOnlyStoredContext, + parameters: [home : String, task : Research::Task, query : Bytes, sources : (List EnvironmentPlan::Source), store : (List EnvironmentMemory::Observation)], + statement: ((EnvironmentPlanCommand::useStore (record EnvironmentPlanCommand::Config {home := home, plan := (record EnvironmentPlan::Plan {ingest := false, task := task, query := query, sources := sources})}) store) = (EnvironmentPlanCommand::finish (record EnvironmentPlanCommand::Config {home := home, plan := (record EnvironmentPlan::Plan {ingest := false, task := task, query := query, sources := sources})}) store)), proof: term_cases{scrutinee: (ctor EnvironmentPlanCommand::State.ended), definitions: [EnvironmentPlanCommand::useStore]}, axioms: [Quot.sound, propext] +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentPlanWireTraces0.lex.tex b/rule30-api/src/EnvironmentPlanWireTraces0.lex.tex new file mode 100644 index 0000000..0687037 --- /dev/null +++ b/rule30-api/src/EnvironmentPlanWireTraces0.lex.tex @@ -0,0 +1,24 @@ +\begin{lexlean}{EnvironmentPlanWireTraces0} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentPlan} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: planAccepted, parameters: [parsed : (Option EnvironmentPlan::Plan)], result: Bool, + body: (match parsed | Option.none => false | Option.some plan => true) +} +theorem{ + name: completeQueryPlanAccepted, parameters: [], + statement: ((planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d7d)) = true), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: emptyPlanRefused, parameters: [], + statement: ((planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b5d7d)) = false), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: emptyQueryRefused, parameters: [], + statement: ((planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d7d)) = false), proof: decide{}, axioms: [Quot.sound, propext] +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/EnvironmentPlanWireTraces1.lex.tex b/rule30-api/src/EnvironmentPlanWireTraces1.lex.tex new file mode 100644 index 0000000..0e6c539 --- /dev/null +++ b/rule30-api/src/EnvironmentPlanWireTraces1.lex.tex @@ -0,0 +1,21 @@ +\begin{lexlean}{EnvironmentPlanWireTraces1} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{EnvironmentPlan} +\importmodule{EnvironmentPlanWireTraces0} +\title{Boolean} +\begin{semanticmodule} +theorem{ + name: excessQueryRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d7d)) = false), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: unknownPlanFieldRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d5d2c2270726f766564223a747275657d)) = false), proof: decide{}, axioms: [Quot.sound, propext] +} +theorem{ + name: invalidLastSourceRefused, parameters: [], + statement: ((EnvironmentPlanWireTraces0::planAccepted (EnvironmentPlan::parse 0x7b2273706563223a227233302f656e7669726f6e6d656e742d706c616e2f31222c226f7065726174696f6e223a227175657279222c227461736b223a7b226964223a226d656d6f72792d696e746572666163652d6578616d706c65222c22707572706f7365223a2270726f7665222c22696e74656e74223a2270726f7665222c22737461747573223a227265616479222c22636f6d706f6e656e74223a22646564756374696f6e222c22736f7572636573223a5b5d2c22736368656d61223a22486f7374207265717565737420636f6e7374727563746f7273222c2273657175656e74223a7b226f726967696e223a22496e746572666163654578616d706c652e676f616c222c227468656f72656d223a22496e746572666163654578616d706c652e676f616c222c227072656d697365223a302c2274656c6573636f7065223a22222c22746172676574223a22554e564552494649454420494e5445524641434520464958545552453a207265706c616365207769746820746865206578616374207461736b20746172676574222c226b696e64223a22636c6f736564227d2c22616765223a302c22776569676874223a317d2c227175657279223a22616263222c22736f7572636573223a5b7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a22524541444d452e6d64227d2c7b227265706f7369746f7279223a226166666c6f6d2f72756c653330222c227265766973696f6e223a2265336265343737666465643236333032393437393132373336336637666236613335393765376434222c2270617468223a222e2e2f626164227d5d7d)) = false), proof: decide{}, axioms: [Quot.sound, propext] +} +\end{semanticmodule} +\end{lexlean} diff --git a/rule30-api/src/ResearchCatalog.lex.tex b/rule30-api/src/ResearchCatalog.lex.tex index 1f664e9..0375a96 100644 --- a/rule30-api/src/ResearchCatalog.lex.tex +++ b/rule30-api/src/ResearchCatalog.lex.tex @@ -41,6 +41,8 @@ \importmodule{EnvironmentMemory} \importmodule{EnvironmentAcquisition} \importmodule{EnvironmentMemoryCommand} +\importmodule{EnvironmentPlan} +\importmodule{EnvironmentPlanCommand} \title{Boolean} \begin{semanticmodule} structure{ @@ -61,7 +63,7 @@ name: moduleScopes, parameters: [], result: (List Scope), - body: (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)), + 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)), axioms: [] } @@ -69,7 +71,7 @@ name: facetScopes, parameters: [], result: (List Scope), - body: (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 := 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))}) @@ -88,7 +90,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))))))))))))))))))))))))))))))))))))))))))))))), + (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)), axioms: [] } diff --git a/rule30-api/src/ResearchTraces.lex.tex b/rule30-api/src/ResearchTraces.lex.tex index c79b971..416e635 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) = 150), + statement: ((prim length (ResearchCatalog::maintenanceTasks (ResearchCatalog::registeredScopes)) : Nat) = 155), proof: decide{} } definition{ diff --git a/rule30-lexlean/Core.pdf b/rule30-lexlean/Core.pdf index 8b812ac..f2a86ff 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 8b812ac..f2a86ff 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 e531f8f..0314f9c 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 d3adb2e..ca9cc31 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 e531f8f..0314f9c 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 d3adb2e..ca9cc31 100644 Binary files a/rule30-paper/pdf/Paper.pdf and b/rule30-paper/pdf/Paper.pdf differ