Skip to content

Add MR16 Lemma 5, indifferentiability composition, and specification #473

Done

Description

@MarcIlunga

Background

PR #435 (#416) introduces simulatorImage at the right port and honest-port transport (Constructs.simulatorImage, ConstructsWithin.simulatorImage), and PR #451 (#448) proves serial composition of right-port simulator images (simulatorImage_comp, simulatorImage_comp_subset). To consume indifferentiability end to end in modular proofs, callers still need MR16 Lemma 5 for right-port simulators, serial composition with an ideal-world application, a keyed/mixed application corollary, and a named Commons.Indifferentiability.specification.

Proposed change

Build on #435 and #451 with zero duplication:

  • src/ConstructiveCryptography/CryptographicAlgebra/Indifferentiability.lean (re-exported from src/ConstructiveCryptography.lean): constructs_of_simulatorImage (MR16 Lemma 5), Constructs.serial_simulatorImage, Constructs.serial_simulatorImage_whiskerRight, and mixed_application_of_indifferentiability.
  • src/Commons/Definitions/Indifferentiability.lean (re-exported from src/Commons.lean): Commons.Indifferentiability.specification, Commons.Indifferentiability.constructs_of_simulator, and Commons.Indifferentiability.compose.

Depends on #416 (PR #435) and #448 (PR #451). Advances #413.

Acceptance criteria

  • Instantiate constructs_of_simulatorImage, Constructs.serial_simulatorImage_whiskerRight, Commons.Indifferentiability.{constructs_of_simulator, compose}, and mixed_application_of_indifferentiability (with TypedSystem.sample and TypedSystem.transcriptDistance_sample_le) on Interface in src/Tests/IndifferentiabilityComposition.lean, with #print axioms checks.
  • Pass lake build --wfail, scripts/check-sources.sh, scripts/check-axioms.sh, and Mathlib standard linters with zero warnings.

Activity

  1. added a commit that references this issue on Nov 24, 2026
    c79eb86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions