AFTD Auto-Formalizing Theoretical Domains

size_priority_noise_disagreement

deforiginal

D_n(c,p) = E[|M Δ M'|]/(2n), written out: the sum over edge sets E ⊆ Fin n × Fin n (each pair present independently with probability 1 - exp(-c/n), so weight (1-exp(-c/n))^|E| · exp(-c/n)^(n·n-|E|)) and over resampling sets R ⊆ Fin n × Fin n (each pair resampled independently with probability p, weight p^|R|·(1-p)^(n·n-|R|)) of the integral, over two independent families ω.1, ω.2 of i.i.d. Uniform[0,1] costs indexed by Fin n × Fin n (the product of the uniform measure on the unit interval), of |M Δ M'|/(2n), where M = size_priority_matching n E ω.1 and M' = size_priority_matching n E w' with w'(e) = ω.2(e) for e ∈ R and ω.1(e) otherwise.

Statement

noncomputable def size_priority_noise_disagreement (n : ℕ) (c p : ℝ) : ℝ
Related work
OP-1789: the expected normalized symmetric difference between the size-priority optimal matching of the random bipartite graph G(n,n,1-exp(-c/n)) with Uniform[0,1] costs and that after resampling each cost with probability p; building on arXiv:2601.20502.
Verified
17 Nov 2026
Axioms
none listed
Built on 1
  • size_priority_matchingA chosen size-priority optimal matching of the bipartite graph on Fin n + Fin n with edge set E under costs w (Hilbert's epsilon of…
Used by 1

Read back from the Lean

size_priority_noise_disagreement is a function taking a natural number n : ℕ and two real numbers c, p : ℝ, and returning a real number. It computes the expected normalized Hamming distance (size of symmetric difference divided by 2 * n) between two size-priority optimal matchings on a random bipartite graph with n vertices on each side: 1. A random edge set E ⊆ Fin n × Fin n is chosen where each of the n^2 possible edges is present independently with probability 1 - exp(-c / n) (and absent with probability exp(-c / n)). 2. A random subset of edges R ⊆ Fin n × Fin n is chosen where each of the n^2 edges is included independently with probability p (and excluded with probability 1 - p). 3. Over the probability space of edge weight configurations ω = (ω₁, ω₂) where ω₁, ω₂ : Fin n × Fin n → [0, 1] assign independent uniform weights in the unit interval to every edge: - M₁ is a size-priority matching in E using weights ω₁. - M₂ is a size-priority matching in E using perturbed weights ω', where ω'(e) = ω₂(e) for e ∈ R and ω'(e) = ω₁(e) for e ∉ R. 4. The quantity integrated is |M₁ Δ M₂| / (2 * n), where Δ is the symmetric difference of the two matchings as finsets. 5. The overall result is the sum over all E and R of their respective binomial probabilities times this integral.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

noncomputable def size_priority_noise_disagreement (n : ℕ) (c p : ℝ) : ℝ :=
  ∑ E : Finset (Fin n × Fin n), ∑ R : Finset (Fin n × Fin n),
    (1 - Real.exp (-c / n)) ^ E.card * Real.exp (-c / n) ^ (n * n - E.card) *
    (p ^ R.card * (1 - p) ^ (n * n - R.card)) *
    ∫ ω : (Fin n × Fin n → unitInterval) × (Fin n × Fin n → unitInterval),
      ((symmDiff (size_priority_matching n E (fun e => (ω.1 e : ℝ)))
        (size_priority_matching n E (fun e => if e ∈ R then (ω.2 e : ℝ) else (ω.1 e : ℝ)))).card : ℝ)
        / (2 * n)
See it in the graphDiscuss this resultChallenge it