Accepted key subprobabilities and uniform overlap
Lax342547.KeyMeasures · concepts/Lax342547/KeyMeasures.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Accepted queries retain their original mass. Uniform reference overlap is exactly the number of keys times independent accepted collision probability.
Concept map
Evidence
This concept declares 5 statements. Each proof establishes one of them relative to its assumptions.
1 key_collision_identity proven
2 key_mass_nonneg proven
3 key_mass_subprobability proven
4 key_mass_total proven
5 uniform_overlap_collision proven
Lean source view on GitHub
| 1 | import Lax342547.PrimalRecords |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Accepted key subprobabilities and uniform overlap |
| 6 | type: lemma |
| 7 | --- |
| 8 | Accepted queries retain their original mass. Uniform reference overlap is exactly the number of keys times independent accepted collision probability. |
| 9 | -/ |
| 10 | |
| 11 | namespace Lax342547.KeyMeasures |
| 12 | |
| 13 | |
| 14 | |
| 15 | noncomputable def keyMass {Ω Q : Type} [Fintype Ω] |
| 16 | (ρ : Ω → ℝ) (key : Ω → Q) (accepted : Ω → Prop) (q : Q) : ℝ := by |
| 17 | classical |
| 18 | exact ∑ ω, if accepted ω ∧ key ω = q then ρ ω else 0 |
| 19 | |
| 20 | axiom key_mass_nonneg {Ω Q : Type} [Fintype Ω] |
| 21 | (ρ : Ω → ℝ) (key : Ω → Q) (accepted : Ω → Prop) (hρ : ∀ ω, 0 ≤ ρ ω) (q : Q) : |
| 22 | 0 ≤ keyMass ρ key accepted q |
| 23 | |
| 24 | axiom key_mass_total {Ω Q : Type} [Fintype Ω] [Fintype Q] |
| 25 | (ρ : Ω → ℝ) (key : Ω → Q) (accepted : Ω → Prop) : by |
| 26 | classical |
| 27 | exact (∑ q, keyMass ρ key accepted q) = ∑ ω, if accepted ω then ρ ω else 0 |
| 28 | |
| 29 | axiom key_mass_subprobability {Ω Q : Type} [Fintype Ω] [Fintype Q] |
| 30 | (ρ : Ω → ℝ) (key : Ω → Q) (accepted : Ω → Prop) |
| 31 | (hρ : ∀ ω, 0 ≤ ρ ω) (hsum : ∑ ω, ρ ω ≤ 1) : |
| 32 | (∑ q, keyMass ρ key accepted q) ≤ 1 |
| 33 | |
| 34 | axiom key_collision_identity {ΩA ΩB Q : Type} [Fintype ΩA] [Fintype ΩB] [Fintype Q] |
| 35 | (α : ΩA → ℝ) (β : ΩB → ℝ) (keyA : ΩA → Q) (keyB : ΩB → Q) |
| 36 | (acceptA : ΩA → Prop) (acceptB : ΩB → Prop) : by |
| 37 | classical |
| 38 | exact (∑ q, keyMass α keyA acceptA q * keyMass β keyB acceptB q) = |
| 39 | ∑ a, ∑ b, if acceptA a ∧ acceptB b ∧ keyA a = keyB b then α a * β b else 0 |
| 40 | |
| 41 | noncomputable def uniformDensity {Q : Type} [Fintype Q] (mass : Q → ℝ) : Q → ℝ := |
| 42 | fun q => Fintype.card Q * mass q |
| 43 | |
| 44 | noncomputable def uniformOverlap {Q : Type} [Fintype Q] (a b : Q → ℝ) : ℝ := |
| 45 | (∑ q, uniformDensity a q * uniformDensity b q) / Fintype.card Q |
| 46 | |
| 47 | axiom uniform_overlap_collision {Q : Type} [Fintype Q] [Nonempty Q] (a b : Q → ℝ) : |
| 48 | uniformOverlap a b = Fintype.card Q * ∑ q, a q * b q |
| 49 | |
| 50 | end Lax342547.KeyMeasures |
| 51 |
Builds on
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments