Skip to content

Add Cauchy–Schwarz pair and second-moment cross-collision lower bounds #455

In review

Description

@MarcIlunga

Background

Lower-bounding the probability that a finite map $f : M \to Y$ produces collisions among uniform samples—both within a single pair of inputs and across two disjoint batches of inputs—requires Cauchy–Schwarz pair lower bounds and second-moment (Paley–Zygmund) cross-collision bounds.

Proposed change

Add universe-polymorphic collision lower bounds in src/Probability/CollisionLower.lean (re-exported from src/Probability.lean):

  • Cauchy–Schwarz pair-collision lower bounds (pair_collision_mass, pair_collision_mass_ge, uniform_pair_collision_mass, distinct_pair_collision_mass_ge).
  • Cross-collision second-moment / Paley–Zygmund bounds across two batches (labelCount, crossCount, crossCount_mean, crossCount_second, cubic_moment_le, crossCount_second_le, crossCount_nonzero_mass_ge, distinct_cross_collision_mass_ge).

Advances #14. (Once #427 / PR #444 lands, the local second-moment helper nonzero_mass_mul_second_ge can be replaced by Probability.Distribution.expect_sq_le_mass_pos_mul_second.)

Acceptance criteria

  • Instantiate pair, distinct-pair, and cross-collision lower bounds on finite types in src/Tests/CollisionLower.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

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