Skip to content

PolyFunFrontier: the cslib-frontier side of PolyFun #425

Open

Description

@dtumad

cslib-frontier (formerly complexitylib) is the frontier library built on CSLib. It keeps each module at its future CSLib path, so a module moves upstream by an import change. PolyFunFrontier/ is PolyFun's side of the same square: a nested Lake package that requires PolyFun by path and cslib-frontier by commit, on cslib-frontier's toolchain. import PolyFun, VCVio, ArkLib and CatCrypt never resolve it, and scripts/check-modules.sh keeps it that way.

Conventions (see PolyFunFrontier/README.md):

  • modules sit at the path and namespace they would have in PolyFun;
  • each records the frontier modules it waits on (-- frontier: …);
  • one moves into PolyFun/ once those reach CSLib;
  • anything that needs no frontier module goes straight into PolyFun.

Work, in dependency order:

VCVio tracks its nested frontier package and its cryptographic complexity definitions in Verified-zkEVM/VCVio#906.

Activity

  1. added
    trackingRoadmap or tracking issue for a body of work
    on Nov 10, 2026
  2. dtumad commented on Nov 12, 2026

    @dtumad
    CollaboratorAuthor

    For L4: an inventory of cslib-frontier's UC layer at the pinned f1b10c2 (CslibFrontier/Crypto/Protocols/UC/, six files), from an audit of the UC definitions on both sides.

    What it has:

    • Machine (Machine.lean:73): a state, an initial sampler, and a handler per activation, with comp.
    • Protocol, IdealFunctionality and Adversary (Execution.lean:109-137).
    • Environment := ℕ → List Bool → ProbOracleComp _ Bool, with a Boolean verdict (:142), and advantage as the game advantage of the verdicts (:205).
    • EmulatesWithin (Emulation.lean:83): ∀A ∃S ∀C ∀Z, with the simulator chosen before the corruption set and the environment.
    • The asymptotic Emulates (:142).
    • emulates_iff_emulatesDummy (DummyAdversary.lean:431), from the program equation exec_eq_exec_dummy (:237).
    • Emulates.compose (Composition.lean:765).

    Its scope. Budgets count calls, not running time (Machine.lean:31-34), and the emulation docstring says polynomial-time security "would additionally restrict them by machine realizability" (Emulation.lean:41-44). No file in the directory uses IsPPTOn or IsOraclePPTOn.

    How it differs from Interaction/Open:

    • SecurelyEmulates (SecureEmulation.lean:65) and UCSecure (Emulates.lean:416) take the simulator as Plug Δ → Plug Δ, which can rewrite the whole closing context. The cslib-frontier simulator is a machine on the adversary interface.
    • openTheory's plug drops boundary traffic (BoundaryAction.closed, OpenProcess.lean:227-230; UC follow-ups from the PolyFun UC audit (HasPlugFactorization, quotient semantics, graded observations, non-vacuous OTP) VCVio#633 item 3), so an L4 bridge needs a delivering composition on the PolyFun side.
    • OpenTheory has no environment/adversary split. That split exists today only in VCVio's Standard.ProtocolBoundary and ReactiveWorld.

    For a polynomial-time instance later, the closure lemmas are already in cslib-frontier:

    • IsOraclePPTOn.bind;
    • preprocess, by polynomial-time maps only;
    • open oracle substitution with allowances (Computability/Probabilistic/Oracle/Substitution.lean:148).

    The VCVio side and a design note are tracked in Verified-zkEVM/VCVio#633.

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

    trackingRoadmap or tracking issue for a body of work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions