Soundness of multiplicative comparison for finite lookup tables
ProvedSensitivity213981Formal.ThreeBoundNumeric.NatTable.dominates_soundboolean-functionssensitivitysensitivity-213981-formal
Let a and b be natural-valued binary lookup tables, and let c be a natural number. If the recursive comparison dominates(c,a,b) succeeds, then a(i) ≤ c b(i) for every natural-number index i. The assertion applies to all indices, including those routed to constant leaves outside a finite list of explicitly distinguished indices.
Preamble
import Definitions.Def_Sensitivity213981Formal_Namespaces import Definitions.Def_Sensitivity213981Formal_NamespacesComplete import Definitions.Def_Sensitivity213981Formal_NatTableChecks import Definitions.Def_SensitivityCampaign import Definitions.Def_SensitivitySeparation import Lean.Elab.Tactic.Omega import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Data.Finset.Lattice.Fold import Mathlib.Data.Finset.Union import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Powerset import Mathlib.Data.List.FinRange import Mathlib.Tactic.Ring set_option autoImplicit false set_option maxHeartbeats 0 set_option maxRecDepth 200000
Formal statement
theorem Sensitivity213981Formal.ThreeBoundNumeric.NatTable.dominates_sound :
∀ (factor : Nat) (a b : Sensitivity213981Formal.ThreeBoundNumeric.NatTable)
(h : @Eq.{1} Bool (Sensitivity213981Formal.ThreeBoundNumeric.NatTable.dominates factor a b) Bool.true) (i : Nat),
@LE.le.{0} Nat instLENat (Sensitivity213981Formal.ThreeBoundNumeric.NatTable.get a i)
(@HMul.hMul.{0, 0, 0} Nat Nat Nat (@instHMul.{0} Nat instMulNat) factor
(Sensitivity213981Formal.ThreeBoundNumeric.NatTable.get b i)) := by sorrySource