---
title: "Paper 2 Lean Crosswalk"
description: "Ten claims in the Paper 2 manuscript, their Lean declarations, and the conditions of each result."
research_date: 2026-12-01
last_updated: 2026-12-01
---
# Paper 2 Lean Crosswalk

These links pair the bounded manuscript with the Lean sources at revision eac922d4. Each
entry describes what the checked statement establishes and which runtime or security
conditions it uses. The article follows the same transaction from authorization through
recovery.

## Binding and Persistence

### Exact artifact and full ciphertext

Paper 2 §, §.

Lean proves that two distinct messages at a fixed presentation can share an exact
component and have different full ciphertext bytes.
The raw manifest orders the exact-artifact digest and full-ciphertext digest under
distinct slot tags. The two digests may coincide.
Any bytes can occupy the ciphertext slot.
Geometric validity enters through a separate certificate.
[Exact-component counterexample](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/CoupledCiphertext/Disclosure.lean#L73-L95)
·
[Directory and seal](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/CiphertextManifest.lean#L53-L95)
·
[BindsOriginal](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/NativeManifest.lean#L43-L69)

### Delivery and recovery

Paper 2 §, §.

The checked intent names the manifest root and the computed history anchor includes the
same directory. Given the original-observation certificate, canonical target sample,
well-formed runtime, issued scoped token and available bytes, retrieval returns the
original coefficients or identifies an accepted byte-hash collision.
Retained-base recovery uses the private source presentation.
Caller authentication, confidential token delivery, availability and global key
retirement require application mechanisms.
[Native history and recovery](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Native.lean#L76-L113)
·
[Private base and held token](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Ephemeral/NativeTransport.lean#L143-L191)
·
[Scope and delivery limits](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/papers/paper2/sections/coupled-construction.tex#L150-L174)

### Encrypted cells and directory fragments

Paper 2 §, §.

A cell stores the complete encrypted byte record.
The reference index looks up its SHA-256 digest and rehashes the complete response.
Successful insertion implies readback.
At a trusted original address, different accepted bytes exhibit a collision.
A verified directory binds context, ordered IDs and digests and rejects duplicate IDs.
Checked fragments of one authority agree on overlap and determine a unique lookup on
their union. Independently checked directories at the same root retain the collision
alternative.
[Cell reads](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/EncryptedCell.lean#L27-L85)
·
[Directory verification](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/CellDirectory.lean#L26-L43)
·
[Overlap](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/CellDirectory.lean#L119-L135)
·
[Unique merged lookup](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/CellDirectory/Patch.lean#L102-L141)

### Persistence and historical replay

Paper 2 §, §.

The local POSIX implementation checks all named objects before publishing with a
cooperating writer lock and same-directory rename.
Process restart needs an independently obtained pin.
Power-loss durability needs filesystem synchronization.
A reader verifies the public release records and rechecks each archived packet against
its historical predecessor, fixed verifier profile and vote target.
A separately authenticated ledger checkpoint can reopen the complete successor.
Continuation verifies the exact archive-root prefix and rechecks the suffix.
These are reference I/O routines with proved per-step and prefix properties.
Agreement among independent ledger participants requires consensus.
[Publication model](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/CellDirectory/Persistence.lean#L9-L60)
·
[Archive step theorem and replay loop](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/PublicStack/History.lean#L44-L88)
·
[Checkpoint continuation](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/PublicStack/Continuation.lean#L38-L62)

## Checks and State Transitions

### Proof packet and ordered evidence

Paper 2 §, §.

The checker fixes an exact public subject containing the intent, metadata, ciphertext
digest and selected profile.
The projection profile puts seven subject/proof entries in one ordered bundle.
Hard, naturality and final checks require the first five, six and seven entries
respectively. The guarded version compares all seven digest names and the root with the
same record’s database.
Terminal acceptance yields a corresponding certificate or a false acceptance by the
selected backend. A rational calibration identifies real radii under four coordinate
equalities. Its three comparison checks alone give no far-region guarantee.
[Slot counts and claims](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Certificates/Evidence.lean#L156-L196)
·
[Database and leaf checks](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Certificates/Projection.lean#L326-L386)
·
[Calibration](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Certificates/Calibration.lean#L32-L59)

### Optional Paper 3 scalar check

Paper 2 §, §.

Before one uniform draw from the 12,289-element field, the verifier fixes the intended
packet’s two-column payload and integer radius r. It checks the echoed challenge,
polynomial degree below 1,024 and fewer than r mismatches over all 4,096 positions, then
runs the original packet checker.
At modular source distance at least r/4,096 the acceptance probability is bounded by the
fixed line’s bad-challenge fraction.
A bound ε for all lines requires the corresponding pair-MCA hypothesis.
The paper proves the exact probability 1/12,289 for its diagonal example with both
columns evaluating X^1024, for 0 < r ≤ 3,072 and a separately accepting packet.
Its cancelling field element is −1. A deployment must enforce one draw and authenticate
the session.
[Checks](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Certificates/SampledMCA.lean#L40-L98)
·
[Probability theorems](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Certificates/SampledMCA.lean#L143-L175)
·
[Manuscript](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/papers/paper2/sections/coupled-construction.tex#L321-L373)

### Accepted update and fixture

Paper 2 §, §.

Given the configured authorization and payload verifier soundness, acceptance yields the
computed successor. The marking removes one copy of the input and creates one copy of a
fresh, distinct output with equal asset and amount.
The input joins the spent set.
Total catalogue value per asset is preserved.
Unit inventory and spent-ID exclusion are preserved when the initial inventory satisfies
them. The same input fails from the successor even under a new proposal.
This is a sequential state property.
[Accepted update, value, markings and replay](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Owned.lean#L207-L251)
·
[Reused-input rejection](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Ledger/OwnedResource.lean#L189-L214)
·
[Executable acceptance](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Owned/Executable.lean#L182-L215)
·
[Executable successor](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Owned/Executable.lean#L229-L255)

## Proof Profiles and Release

### Credentials, program approval and arithmetic

Paper 2 §, §.

V1 names a salted source credential, hash of the target presentation and digest of the
full ciphertext. V2 replaces the target presentation hash with a commitment opened by a
private 32-byte nonce and uses versioned codecs.
A quorum authenticates the registration descriptor.
Verification compares the actual expected program bytes, parses the selected verifier
key and common reference string (CRS), and uses the context-derived key and full signing
message. This establishes which program ran.
Secure setup, backend soundness and compilation of credential/byte/hash constraints
remain obligations. The prime-field range result gives a unique bounded integer lift for
the ciphertext arithmetic under its modulus bounds.
[V1 relation](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeProgram.lean#L205-L239)
·
[V2 names and check](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeCommitted.lean#L235-L267)
·
[Descriptor approval](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Certificates/ProfileAuthentication.lean#L118-L148)
·
[V2 approved execution](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeCommittedContext.lean#L170-L191)
·
[Finite arithmetic](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeCircuitRanges.lean#L282-L316)

### V1 forgery

Paper 2 §, §.

The bounded adaptive signing experiment uses the raw operator root.
The adversary can receive the full target ciphertext.
Given a hybrid inequality for its actual fresh-forgery test, Lean bounds success by the
sum of the hybrid error and the probabilities of failed extraction, recovery of the
original coefficients, snapshot-byte collision and ciphertext-byte collision.
The application theorem covers completion of the single challenged credential’s returned
target under setup parsing and context alignment.
The proof primitive must bind the full message because the geometric witness relation
alone accepts that witness across messages.
A numerical security estimate requires bounds for the terms on this experiment.
[Full-ciphertext theorem](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeSecurity.lean#L374-L387)
·
[Application hypotheses](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeApplication.lean#L335-L368)
·
[Message binding](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/papers/paper2/sections/coupled-construction.tex#L513-L538)

### V2 message recovery and public visibility

Paper 2 §, §.

For one fresh-sign sample with a uniform n-bit message, at most S simulator and Q
decoder public byte-oracle queries, and deterministic key disclosure L, the
exact-recovery bound is |im L|/2^n + (S+Q+2)/256^32 + ε. The actual and simulated
prefixes must be within ε in total variation on the hidden sampled target, disclosure,
instance/ciphertext, optional released transfer and live oracle cache.
Failed releases count.
A backend must establish this joint premise.
The transfer releases public IDs and a ciphertext digest.
Different input IDs distinguish two such releases perfectly.
A direct remote read exposes its digest.
Fetching the entire fixed bucket gives identical server transcripts for local choices
within that bucket at the cost of the full download.
[Joint-prefix theorem](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/PathSignature/NativeCommittedRelease/Simulation.lean#L146-L171)
·
[Public ID distinction](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Confidentiality.lean#L117-L151)
·
[Fixed-bucket transcripts and bandwidth](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Storage/Retrieval/UniformRead.lean#L69-L103)

## Fixture Evidence and Build Record

Resource 0 belongs to owner 0 and resource 1 belongs to owner 1. Each represents seven
units of the same asset.
The sender signs in the byte-owner profile as [1]. The initial marking is 0 ↦ 1 with an
empty spent set. The exact payload is zero and the raw ciphertext slot contains
[3, 8, 13]. The fixture uses a byte-sum digest, a signature consisting of byte 71
followed by the encoded intent, and payload proof [72]. The manuscript reports a
3,524-byte canonical packet.
The executable checks 0 ↦ 0, 1 ↦ 1, input 0 spent, rejection of a re-signed altered
manifest, rejection of the original replay, and rejection of a new draft spending 0. Its
signature and proof bytes exercise the checker’s interface.
Native ciphertext recovery has the separate hypotheses in item 2.
[Catalogue](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Ledger/OwnedResource.lean#L218-L234)
·
[Fixture primitives](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Owned/DemoFixture.lean#L30-L112)
·
[Executable assertions](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/lean/Protocol/Transfer/Owned/DemoFixture.lean#L132-L185)
·
[Packet size as reported](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/papers/paper2/sections/owned-transfer.tex#L73-L89)

Upstream push run 46356695423 passed at eac922d4b54a6375f53bac0bb1522dec5c4dbd09. The
Lean job built the aggregate that imports the Paper 2 protocol and ran the separate
native encryption and byte-recovery demo.
The manuscript job compiled Paper 2. This audit verified the owned-transfer fixture in
source and the author’s report of its execution.
The workflow has no execution step for that fixture.
[Lean job](https://github.com/what-social-construct/homotopical-encrypt/actions/runs/46356695423/job/141642364171)
·
[Manuscript job](https://github.com/what-social-construct/homotopical-encrypt/actions/runs/46356695423/job/141642363940)
·
[Workflow](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/.github/workflows/ci.yml#L21-L47)

The upstream README labels the disconnected private trade as a proposal.
Its route-advertisement, escrow, external-payment and communication-privacy requirements
extend the directory and transition theorems.
[Proposed trade example](https://github.com/what-social-construct/homotopical-encrypt/blob/eac922d4b54a6375f53bac0bb1522dec5c4dbd09/papers/paper2/README.md#L114-L146)

<!-- This document follows common-doc-guidelines.md.
See github.com/jlevy/practical-prose and review guidelines before editing.
-->
