All certified runs give the same answer
ProvedRecoveryStorage3SUM.Certified.certified_agree3sum
Section 5.3, the query procedure with the check.
Fix a target . Consider two runs, with primes , and let and be the outputs of at the residues of in the two runs, whatever the inverters answer. If both runs are certified for , then for every query , their values agree:
Hence the answer of the certified data structure does not depend on which certified run it uses.
Preamble
import Mathlib import Definitions.Def_RecoveryStorage3SUM_Certified set_option autoImplicit false
Formal statement
namespace RecoveryStorage3SUM.Certified
open RecoveryStorage3SUM.Adaptive
/-- Section 5.3, p.16: all certified runs give the same answer. If two runs (with primes `p, p' > 0`)
are both certified for the target `c`, their values `z_j(c)` coincide for every query `A′ ⊆ A`,
`B′ ⊆ B`. -/
theorem certified_agree {A : Finset ℤ} {K L K' L' : ℕ} (B R : Finset ℤ) (run : Attempt A K L)
(run' : Attempt A K' L') (inv : Fin K → Fin L → ℕ → Option ℕ)
(inv' : Fin K' → Fin L' → ℕ → Option ℕ) (cap cap' : ℕ) (c : ℤ) (hp : 0 < run.p)
(hp' : 0 < run'.p)
(h : Certified A B run.p (recoverOutput B R run inv cap (residue run.p c)) c)
(h' : Certified A B run'.p (recoverOutput B R run' inv' cap' (residue run'.p c)) c)
(A' B' : Finset ℤ) (hA : A' ⊆ A) (hB : B' ⊆ B) :
zValue A' B' run.p (recoverOutput B R run inv cap (residue run.p c)) c =
zValue A' B' run'.p (recoverOutput B R run' inv' cap' (residue run'.p c)) c := by sorry
end RecoveryStorage3SUM.CertifiedSource
Carmel, Kosoburd, Krauthgamer, Recovery Beats Storage: Improved Space for Preprocessed 3SUM, STOC 2027 submission #561, https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/561.pdf, §5.3, p.16 (query procedure with the check)