Skip to content

Add transitivity of indifferentiability constructions #502

In review

Description

@MarcIlunga

Background

ConstructiveCryptography.CryptographicAlgebra.Indifferentiability and Commons.Definitions.Indifferentiability currently support composing an indifferentiable realization with an honest-port application (Constructs.serial_simulatorImage / Commons.Indifferentiability.compose), while SimulatorComposition provides simulatorImage_comp and simulatorImage_comp_subset for composing right-port simulator classes. When a higher-level scheme is itself proved indifferentiable from a target ideal resource (for example, composing a permutation-to-RO sponge indifferentiability construction with a pure-RO protocol indifferentiability construction), callers currently have to unpack constructs_epsilonRelaxation_iff, apply serial_simulatorImage, and rewrite by simulatorImage_comp / simulatorImage_comp_subset by hand.

Proposed change

Add serial transitivity of indifferentiability in ConstructiveCryptography.CryptographicAlgebra.Indifferentiability and Commons.Definitions.Indifferentiability:

  • Constructs.serial_simulatorImage_trans: from
    real —[protocol]→ epsilonRelaxation ε (simulatorImage outer source) and
    source —[application ▷ Q]→ epsilonRelaxation δ (simulatorImage inner target), derive
    real —[(application ▷ P) ≫ protocol]→ epsilonRelaxation (ε + δ) (simulatorImage (Set.image2 (· ≫ ·) outer inner) target).
  • Constructs.serial_simulatorImage_trans_subset: for a budgeted composite simulator class composites admitting σ ≫ τ for every σ ∈ outer and τ ∈ inner, derive the same construction targeting simulatorImage composites target.
  • Commons.Indifferentiability.trans and Commons.Indifferentiability.trans_subset: corresponding Commons.Indifferentiability.specification wrappers using CC custom notation (—[...]→, ▷, ≫).

Acceptance criteria

  • Constructs.serial_simulatorImage_trans, Constructs.serial_simulatorImage_trans_subset, Commons.Indifferentiability.trans, and Commons.Indifferentiability.trans_subset compile in any MonoidalCategory / CompatiblePseudoMetric and instantiate directly on Interface with unequal ports P, Q, R.
  • Tests.IndifferentiabilityComposition tests two-layer indifferentiability transitivity (both Set.image2 (· ≫ ·) and an explicitly budgeted composites class), verifies compatibility with cc_normalize and cc_calc statistical, and audits #print axioms ([propext, Classical.choice, Quot.sound]).

Activity

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