Pooling ternary types with worst-fiber cleanup preserves the fixed-type exponent barrier
ProvedThreeSumFuture.pooled_paired_cleanup_barrier3sumalgorithmsentropy
Choose a profile attaining the maximum ordered partition entropy in a pooled family, and write h for its output entropy and g for its branching entropy. If the field, repeated family cost and prefix depth satisfy the stated worst-fiber cleanup and counting constraints, then a strict exponent bound for the four pooled cost rows implies the same strict exponent bound for the four fixed-profile rows. Here the repeated family cost includes raw multiplicity when the field is smaller and covering family size when the field is larger.
Preamble
module public import Mathlib.Data.Real.Basic public import Mathlib.Tactic.Linarith public section
Formal statement
theorem ThreeSumFuture.pooled_paired_cleanup_barrier (gamma h g cap bank query prime family depth : ℝ)
(hgamma1 : 1 ≤ gamma) (hgamma2 : gamma ≤ 2)
(hcap : g ≤ cap) (hfamily : |2 * prime - (h + g)| ≤ family)
(hdepth : depth + cap ≤ 2 * prime)
(hbank : 2 * (bank + family) < gamma * depth)
(hquery : depth + 2 * (h + query - prime + family) < gamma * depth)
(hfield : 2 * (prime + family) < gamma * depth)
(hbase : depth + 2 * (h - prime + family) < gamma * depth) :
2 * bank < gamma * h ∧ 2 * h - g + 2 * query < gamma * h ∧
h + g < gamma * h ∧ 2 * h - g < gamma * h := by sorrySource
Original comparison for the pooled ternary rank-class extension of the weighted-cache 3SUM algorithm. The worst-fiber condition uses the paired-minor cleanup in TernaryPairedContraction.lean and TernaryPairedNativeDrift.lean of Wang's weighted-cache code.