Phase 2: pin Lean and define bounded research types (#132) #658

Merged
erikinkinen merged 6 commits from phase2/p2-18-a-lean-types into main 2026-10-21 07:17:22 +02:00
Owner

Task

Closes #132 (P2-18-A).

Summary

Pin the protocol's Lean 4.24.0 distribution and define finite research identities,
state records and action languages. Keep oracle evidence outside manager inputs,
retain both clocks, and distinguish root-grant queries from issuance-subtree
queries. The ideal descendant language remains separate from legacy mechanisms.

Scope

Bounded types, explicit no-recovery state and fifteen checked boundary examples.
Transition invariants, clock quotients, reachable-state enumeration and adequacy
proofs remain separate tasks. Complete csaI includes the Phase 5 supplement.

Design intent

Validate the official release archive and complete installed distribution before
executing Lean or Lake. Build from a fresh package without third-party libraries.
Audit imported kernel declarations, including private/generated names, for
unsafe declarations, user axioms and unapproved axiom dependencies. Standard
foundational dependencies are disclosed per declaration in proof_manifest.json.

Phase discipline

Protocol 2.2 / backlog 2.2.1. Native prerequisite #86 is closed. Raw records do not
certify well-formed transition semantics or policy denominators. No scientific
adequacy theorem, recovery behavior or manuscript conclusion is claimed here.

Verification

  • Signed source 37c39b7ce2347f4e83ba5079005a007216357583 passes fresh extraction, clean build,
    declaration audit, all eight local hooks and the eleven-PDF workspace lock.
  • Distribution: 11,562 files; all 2,349,853,274 file bytes, executable bits and
    symlink targets match the recorded tree identity. Lean and Lake hashes match.
  • The audit covers 1,638 declarations and fifteen explicitly named boundary
    theorems. Its 569 total theorem declarations include generated structural lemmas.
  • Nine invalid type combinations reject. Four compiled violations fail audit:
    unused user axiom, unsafe declaration, suppressed admission and native proof
    axiom. Three distribution identity cases pass.
  • Source validation has SHA-256 caa7dda0dea8f0fed2cd522fc3562bfcf7b97216fa66b9130192ddd7a052ac19.
  • The added formal workflow must pass on both push and pull_request, in addition
    to all eight existing checks. Require all ten exact-head checks before checking
    #132 once and merging. Merge ordering and exact-head validation remain mandatory.

Reconciled integration and merge gate

CI bug #661 changes the common smoke configuration to assertion-enabled Debug
-g -O1. This branch now includes predecessor #657 at
19b16dbabc1eb57fc3b73f06e4f812dbf18f8a38. The earlier head b86b0ee0507c5cdc9d85df7bfd54b640d9e27be5
had obsolete CI attempts; their cancellation is recorded and is not acceptance.

Integration source 17c540429b135ccf79a85ebb9cc0e2a0408419ad changes only predecessor-owned files.
All 16 files owned by this issue, including its earlier source-bound
receipts, remain byte- and mode-identical. The native test inventory remains
292. All eight local hooks and the frozen PDF scope pass.
No unchanged implementation test or proof run is repeated or claimed here.

Reconciliation evidence has SHA-256
d510408e078927e7e8b794178c517d88431bd92b7843343a66ee8ba1fc11dc1f. Original validation attachments remain intact.

Publish this update after #657 merges and #104
closes with its required exact-head evidence. Then require all ten contexts on
this PR's final head, including both formal checks, and closed native
prerequisites before checking #132 once and merging. Until the
predecessor merges, the comparison with main includes its changes.

# Task Closes #132 (P2-18-A). ## Summary Pin the protocol's Lean 4.24.0 distribution and define finite research identities, state records and action languages. Keep oracle evidence outside manager inputs, retain both clocks, and distinguish root-grant queries from issuance-subtree queries. The ideal descendant language remains separate from legacy mechanisms. ## Scope Bounded types, explicit no-recovery state and fifteen checked boundary examples. Transition invariants, clock quotients, reachable-state enumeration and adequacy proofs remain separate tasks. Complete csaI includes the Phase 5 supplement. ## Design intent Validate the official release archive and complete installed distribution before executing Lean or Lake. Build from a fresh package without third-party libraries. Audit imported kernel declarations, including private/generated names, for unsafe declarations, user axioms and unapproved axiom dependencies. Standard foundational dependencies are disclosed per declaration in proof_manifest.json. ## Phase discipline Protocol 2.2 / backlog 2.2.1. Native prerequisite #86 is closed. Raw records do not certify well-formed transition semantics or policy denominators. No scientific adequacy theorem, recovery behavior or manuscript conclusion is claimed here. ## Verification - Signed source `37c39b7ce2347f4e83ba5079005a007216357583` passes fresh extraction, clean build, declaration audit, all eight local hooks and the eleven-PDF workspace lock. - Distribution: 11,562 files; all 2,349,853,274 file bytes, executable bits and symlink targets match the recorded tree identity. Lean and Lake hashes match. - The audit covers 1,638 declarations and fifteen explicitly named boundary theorems. Its 569 total theorem declarations include generated structural lemmas. - Nine invalid type combinations reject. Four compiled violations fail audit: unused user axiom, unsafe declaration, suppressed admission and native proof axiom. Three distribution identity cases pass. - [Source validation](https://git.erikinkinen.fi/attachments/69952284-9352-4931-803f-d07dc225aaf1) has SHA-256 `caa7dda0dea8f0fed2cd522fc3562bfcf7b97216fa66b9130192ddd7a052ac19`. - The added formal workflow must pass on both push and pull_request, in addition to all eight existing checks. Require all ten exact-head checks before checking #132 once and merging. Merge ordering and exact-head validation remain mandatory. ## Reconciled integration and merge gate CI bug #661 changes the common smoke configuration to assertion-enabled Debug `-g -O1`. This branch now includes predecessor #657 at `19b16dbabc1eb57fc3b73f06e4f812dbf18f8a38`. The earlier head `b86b0ee0507c5cdc9d85df7bfd54b640d9e27be5` had obsolete CI attempts; their cancellation is recorded and is not acceptance. Integration source `17c540429b135ccf79a85ebb9cc0e2a0408419ad` changes only predecessor-owned files. All 16 files owned by this issue, including its earlier source-bound receipts, remain byte- and mode-identical. The native test inventory remains 292. All eight local hooks and the frozen PDF scope pass. No unchanged implementation test or proof run is repeated or claimed here. [Reconciliation evidence](https://git.erikinkinen.fi/attachments/b6996f60-ebbc-45a0-ae04-6ca3b9a5498b) has SHA-256 `d510408e078927e7e8b794178c517d88431bd92b7843343a66ee8ba1fc11dc1f`. Original validation attachments remain intact. Publish this update after #657 merges and #104 closes with its required exact-head evidence. Then require all ten contexts on this PR's final head, including both formal checks, and closed native prerequisites before checking #132 once and merging. Until the predecessor merges, the comparison with main includes its changes.
erikinkinen added this to the Phase 2 milestone 2026-10-21 04:41:01 +02:00
Phase 2: record complete paired workload integration evidence (#104)
Some checks failed
markdownlint / markdown-lint (push) Successful in 26s
markdownlint / markdown-lint (pull_request) Successful in 25s
clang-format / check-format (push) Successful in 40s
clang-format / check-format (pull_request) Successful in 42s
ci / sanitizers (push) Successful in 53m13s
ci / sanitizers (pull_request) Successful in 53m29s
ci / smoke (push) Failing after 1h30m2s
ci / smoke (pull_request) Failing after 1h30m2s
3b13d6ccb6
Phase 2: record unchanged formal sources and ordered merge gate (#132)
Some checks failed
markdownlint / markdown-lint (push) Successful in 28s
clang-format / check-format (push) Successful in 50s
clang-format / check-format (pull_request) Successful in 51s
markdownlint / markdown-lint (pull_request) Successful in 29s
formal / definitions (push) Successful in 2m19s
formal / definitions (pull_request) Successful in 2m6s
ci / sanitizers (push) Successful in 1h6m30s
ci / sanitizers (pull_request) Successful in 1h5m54s
ci / smoke (pull_request) Has been cancelled
ci / smoke (push) Has been cancelled
b86b0ee050
Phase 2: record unchanged formal outputs after smoke profile reconciliation (#132)
All checks were successful
markdownlint / markdown-lint (pull_request) Successful in 30s
clang-format / check-format (pull_request) Successful in 52s
formal / definitions (pull_request) Successful in 1m46s
ci / smoke (pull_request) Successful in 16m55s
ci / sanitizers (pull_request) Successful in 36m26s
markdownlint / markdown-lint (push) Successful in 14s
clang-format / check-format (push) Successful in 32s
formal / definitions (push) Successful in 1m7s
ci / smoke (push) Successful in 8m37s
ci / sanitizers (push) Successful in 24m31s
970e232fc0
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erikinkinen/AES!658
No description provided.