import Mathlib namespace OAI /-! # The companion's multiplier update from empirical type counts The old multiplier cancels from the update relative to the current ideal multiplier. Relative accuracy of two positive type means, followed by the proved adjacent-parameter factor two, gives the required factor four at the next parameter. This is deterministic algebra of the actual update. -/ namespace ContingencyTables.AnnealingMultipliers variable {eta p q ph qh w ideal nextIdeal : ℝ} theorem empirical_positive (hp : 0 linarith /-- The concrete update w*(observed plain count)/(observed defect count) is good for the next parameter. Earlier multiplier errors do not compound. -/ theorem update_good (hp : 0 nlinarith [hnext.1,hnext.2] end ContingencyTables.AnnealingMultipliers end OAI