Repository navigation
Description
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 classcompositesadmittingσ ≫ τfor everyσ ∈ outerandτ ∈ inner, derive the same construction targetingsimulatorImage composites target.Commons.Indifferentiability.transandCommons.Indifferentiability.trans_subset: correspondingCommons.Indifferentiability.specificationwrappers using CC custom notation (—[...]→,▷,≫).
Acceptance criteria
Constructs.serial_simulatorImage_trans,Constructs.serial_simulatorImage_trans_subset,Commons.Indifferentiability.trans, andCommons.Indifferentiability.trans_subsetcompile in anyMonoidalCategory/CompatiblePseudoMetricand instantiate directly onInterfacewith unequal portsP,Q,R.Tests.IndifferentiabilityCompositiontests two-layer indifferentiability transitivity (bothSet.image2 (· ≫ ·)and an explicitly budgetedcompositesclass), verifies compatibility withcc_normalizeandcc_calc statistical, and audits#print axioms([propext, Classical.choice, Quot.sound]).
Activity