Logarithmic growth of terminal choices
ProvedThreeSum1960614.Machine.ThreeSum.StageBounds.terminalChoices_log_rate3sum3sum-1960614formal-verification
Let be the terminal-choice count, the inner-size fraction, and the terminal fraction. Then
Identifies the terminal combinatorial exponent in the runtime ledger. This supports the complete deterministic integer 3SUM runtime proof.
Preamble
import Aesop import Definitions.Def_APSPSource_RemainingDefinitions import Definitions.Def_APSPSource_ThreeSumApsp_Lang_Syntax import Definitions.Def_ThreeSum1960614_Analysis import Definitions.Def_ThreeSum1960614_Machine_Bundle001 import Definitions.Def_ThreeSum1960614_Machine_Bundle003 import Definitions.Def_ThreeSum1960614_Machine_Bundle004 import Definitions.Def_ThreeSum1960614_Machine_Bundle005 import Definitions.Def_ThreeSum1960614_Machine_Bundle006 import Definitions.Def_ThreeSum1960614_Machine_Bundle007 import Definitions.Def_ThreeSum1960614_Machine_Bundle008 import Definitions.Def_ThreeSum1960614_Machine_Bundle009 import Definitions.Def_ThreeSum1960614_Machine_Bundle010 import Definitions.Def_ThreeSum1960614_Machine_Bundle012 import Definitions.Def_ThreeSum1960614_Machine_Bundle014 import Definitions.Def_ThreeSum1960614_Machine_Bundle016 import Definitions.Def_ThreeSum1960614_Machine_Bundle018 import Definitions.Def_ThreeSum1960614_Machine_Bundle020 import Definitions.Def_ThreeSum1962Source_Bundle01 import Definitions.Def_ThreeSum1962Source_Bundle04 import Definitions.Def_ThreeSum1962Source_Bundle05 import Definitions.Def_ThreeSum1962Source_Bundle07 import Definitions.Def_ThreeSum1962Source_Bundle09 import Lean import Lean.Elab.Tactic.Omega import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Algebra.Field.ZMod import Mathlib.Algebra.Group.Int.Defs import Mathlib.Algebra.GroupWithZero.Nat import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Order.Chebyshev import Mathlib.Algebra.Order.Floor.Div import Mathlib.Algebra.Order.Group.Abs import Mathlib.Algebra.Order.Group.Unbundled.Abs import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Order.Ring.Pow import Mathlib.Analysis.Calculus.MeanValue import Mathlib.Analysis.Complex.ExponentialBounds import Mathlib.Analysis.Convex.Deriv import Mathlib.Analysis.SpecialFunctions.BinaryEntropy import Mathlib.Analysis.SpecialFunctions.Log.Base import Mathlib.Analysis.SpecialFunctions.Log.Deriv import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics import Mathlib.Analysis.SpecialFunctions.Pow.NthRootLemmas import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Analysis.SpecificLimits.Normed import Mathlib.Data.Bool.Basic import Mathlib.Data.Fin.VecNotation import Mathlib.Data.Finset.Card import Mathlib.Data.Finset.Max import Mathlib.Data.Finset.Powerset import Mathlib.Data.Finset.Prod import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Fintype.Card import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Prod import Mathlib.Data.List.MinMax import Mathlib.Data.List.Pi import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.Nat.Choose.Bounds import Mathlib.Data.Nat.Choose.Central import Mathlib.Data.Nat.Choose.Sum import Mathlib.Data.Nat.Log import Mathlib.Data.Nat.Sqrt import Mathlib.Data.Real.Basic import Mathlib.Data.ZMod.Basic import Mathlib.GroupTheory.Index import Mathlib.LinearAlgebra.Dual.Lemmas import Mathlib.LinearAlgebra.Matrix.Dual import Mathlib.LinearAlgebra.Matrix.ToLin import Mathlib.NumberTheory.Bertrand import Mathlib.NumberTheory.Chebyshev import Mathlib.Order.ConditionallyCompleteLattice.Basic import Mathlib.Order.Monotone.Basic import Mathlib.Tactic import Mathlib.Tactic.ByContra import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.LinearCombination import Mathlib.Tactic.NormNum import Mathlib.Tactic.Positivity import Mathlib.Tactic.Push import Mathlib.Tactic.Ring import Mathlib.Tactic.SplitIfs import Mathlib.Algebra.Order.Field.Basic import Mathlib.Algebra.Order.Ring.Abs import Mathlib.Algebra.Order.Ring.Int import Mathlib.Data.Int.Cast.Lemmas import Mathlib.Data.Nat.Cast.Order.Ring import Mathlib.Tactic.GCongr import Mathlib.Tactic.Linarith import Mathlib.Tactic.NormNum import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring namespace ThreeSum1960614.Machine.ThreeSum.Switch end ThreeSum1960614.Machine.ThreeSum.Switch namespace Filter end Filter namespace Real end Real namespace ThreeSum end ThreeSum namespace ThreeSum.CostLedger end ThreeSum.CostLedger namespace ThreeSum.MassScales end ThreeSum.MassScales namespace ThreeSum.Parameters end ThreeSum.Parameters namespace ThreeSum.Scales end ThreeSum.Scales namespace ThreeSum.StageBounds end ThreeSum.StageBounds namespace ThreeSum.StageBounds.PowerBound end ThreeSum.StageBounds.PowerBound namespace ThreeSum1960614.Machine.ThreeSum end ThreeSum1960614.Machine.ThreeSum namespace ThreeSum1960614.Machine.ThreeSum.BandScales end ThreeSum1960614.Machine.ThreeSum.BandScales namespace ThreeSum1960614.Machine.ThreeSum.CostLedger end ThreeSum1960614.Machine.ThreeSum.CostLedger namespace ThreeSum1960614.Machine.ThreeSum.HierarchyScales end ThreeSum1960614.Machine.ThreeSum.HierarchyScales namespace ThreeSum1960614.Machine.ThreeSum.MassScales end ThreeSum1960614.Machine.ThreeSum.MassScales namespace ThreeSum1960614.Machine.ThreeSum.Parameters end ThreeSum1960614.Machine.ThreeSum.Parameters namespace ThreeSum1960614.Machine.ThreeSum.Scales end ThreeSum1960614.Machine.ThreeSum.Scales namespace ThreeSum1960614.Machine.ThreeSum.StageBounds end ThreeSum1960614.Machine.ThreeSum.StageBounds namespace ThreeSum1960614.Machine.ThreeSum.StageBounds.PowerBound end ThreeSum1960614.Machine.ThreeSum.StageBounds.PowerBound namespace ThreeSum1960614.Machine.ThreeSum.Switch end ThreeSum1960614.Machine.ThreeSum.Switch namespace ThreeSum1960614.Machine.ThreeSum.TrimScales end ThreeSum1960614.Machine.ThreeSum.TrimScales open _root_.ThreeSum open _root_.ThreeSum1960614.Machine.ThreeSum open _root_.ThreeSum1960614.Machine.ThreeSum.StageBounds open _root_.Filter open _root_.Real open _root_.ThreeSum.Parameters open _root_.ThreeSum1960614.Machine.ThreeSum.Parameters open _root_.ThreeSum.Scales open _root_.ThreeSum1960614.Machine.ThreeSum.Scales open _root_.ThreeSum1960614.Machine.ThreeSum.TrimScales open _root_.ThreeSum1960614.Machine.ThreeSum.BandScales open _root_.ThreeSum1960614.Machine.ThreeSum.Switch open _root_.ThreeSum.CostLedger open _root_.ThreeSum1960614.Machine.ThreeSum.CostLedger open _root_.ThreeSum1960614.Machine.ThreeSum.HierarchyScales open _root_.ThreeSum.MassScales open _root_.ThreeSum1960614.Machine.ThreeSum.MassScales open scoped _root_.Topology set_option maxHeartbeats 1000000 set_option maxRecDepth 10000 open _root_.ThreeSum1960614.Machine.ThreeSum.StageBounds
Formal statement
theorem ThreeSum1960614.Machine.ThreeSum.StageBounds.terminalChoices_log_rate :
Tendsto (fun n : ℕ => Real.log (_root_.ThreeSum1960614.Machine.ThreeSum.StageBounds.terminalChoices n : ℝ) / Real.log n) atTop
(𝓝 (_root_.ThreeSum1960614.Machine.ThreeSum.Parameters.epsilon * (1 - _root_.ThreeSum1960614.Machine.ThreeSum.Parameters.terminalFraction))) := by sorrySource