actual record cost — Boolean sensitivity certificate
ProvedSensitivity213981Formal.ThreeBoundRankNumeric.actual_record_costboolean-functionssensitivitysensitivity-213981-formal
The following universally quantified assertion holds for the finite sets, Boolean families, tournament data, and profile coordinates defined in the imported interfaces. Each binder specifies the domain of its variable, and bracketed conditions specify finite or ordered structures.
Here ; denotes the finite subsets of . Named functions and predicates refer to their definitions in the cited source. This result supplies the corresponding actual record cost step in the verified -level sensitivity construction.
Preamble
import Definitions.Def_Sensitivity213981Formal_GlobalAccounting import Definitions.Def_Sensitivity213981Formal_GradedCandidates import Definitions.Def_Sensitivity213981Formal_HeadCostExpressions import Definitions.Def_Sensitivity213981Formal_MinmaxCandidates import Definitions.Def_Sensitivity213981Formal_MinmaxNegative import Definitions.Def_Sensitivity213981Formal_MinmaxPairData import Definitions.Def_Sensitivity213981Formal_MinmaxPrefixCaps import Definitions.Def_Sensitivity213981Formal_Namespaces import Definitions.Def_Sensitivity213981Formal_NamespacesComplete import Definitions.Def_Sensitivity213981Formal_Q2EnumerationBridge import Definitions.Def_Sensitivity213981Formal_Q2RawExpressions import Definitions.Def_Sensitivity213981Formal_Q3Enumeration import Definitions.Def_Sensitivity213981Formal_Q3RecordFields import Definitions.Def_Sensitivity213981Formal_RankCapData import Definitions.Def_Sensitivity213981Formal_RankConvertedCaps import Definitions.Def_Sensitivity213981Formal_RankCostExpressions import Definitions.Def_Sensitivity213981Formal_ResidualCaps import Definitions.Def_SensitivityCampaign import Definitions.Def_SensitivitySeparation import Lean.Elab.Tactic.Omega import Mathlib.Algebra.BigOperators.Field import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise import Mathlib.Algebra.BigOperators.Ring.Finset import Mathlib.Algebra.GroupWithZero.Units.Equiv import Mathlib.Algebra.Order.Archimedean.Basic import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Order.BigOperators.Group.List import Mathlib.Algebra.Order.BigOperators.GroupWithZero.Finset import Mathlib.Algebra.Order.GroupWithZero.Basic import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Algebra.Order.Ring.Pow import Mathlib.Analysis.SpecialFunctions.Log.Deriv import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Combinatorics.Digraph.Basic import Mathlib.Combinatorics.Hall.Finite import Mathlib.Data.Fin.Basic import Mathlib.Data.Finset.Card import Mathlib.Data.Finset.Lattice.Fold import Mathlib.Data.Finset.Powerset import Mathlib.Data.Finset.Prod import Mathlib.Data.Finset.Sort import Mathlib.Data.Finset.Union import Mathlib.Data.Fintype.Basic import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Fintype.EquivFin import Mathlib.Data.Fintype.Option import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Powerset import Mathlib.Data.Fintype.Prod import Mathlib.Data.Fintype.Sum import Mathlib.Data.List.FinRange import Mathlib.Data.List.Nodup import Mathlib.Data.List.Sort import Mathlib.Data.Nat.Basic import Mathlib.Data.Nat.Choose.Basic import Mathlib.Data.Prod.Lex import Mathlib.Data.Rat.Cast.Order import Mathlib.Logic.Equiv.Fin.Basic import Mathlib.NumberTheory.JacobiSum.Basic import Mathlib.NumberTheory.LegendreSymbol.Basic import Mathlib.Order.Interval.Finset.Nat import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.FinCases import Mathlib.Tactic.IntervalCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.NormNum import Mathlib.Tactic.NormNum.Prime import Mathlib.Tactic.Positivity import Mathlib.Tactic.Push import Mathlib.Tactic.Ring import Mathlib.Tactic.Tauto set_option autoImplicit false set_option maxHeartbeats 0 set_option maxRecDepth 200000
Formal statement
theorem Sensitivity213981Formal.ThreeBoundRankNumeric.actual_record_cost :
∀ {n : Nat} {I V : Type} [inst : Fintype.{0} I] [inst_1 : Fintype.{0} V]
(S : Sensitivity213981Formal.ThreeBoundWitness.Stage (Fin n) I V)
(hR :
@Sensitivity213981Formal.TournamentHighRows.IsTournament V
(@Sensitivity213981Formal.ThreeBoundWitness.Stage.Adj (Fin n) I V S))
(F : Fin n → (I → Bool) → Bool)
(hF :
@Sensitivity213981Formal.ThreeBoundProfiles.Nested (Fin n) I
(@PartialOrder.toPreorder.{0} (Fin n) (@Fin.instPartialOrder n)) F)
(i j : Fin n)
(P :
@Sensitivity213981Formal.ThreeBoundMinmaxTransfer.PairData (Fin n) I V
(@PartialOrder.toPreorder.{0} (Fin n) (@Fin.instPartialOrder n)) S F i j)
(a c : Sensitivity213981Formal.ThreeBoundRankNumeric.Entry)
(matchE : @Sensitivity213981Formal.ThreeBoundMinmaxNumeric.EntryMatch n I V S F i j P a c)
(input : Prod.{0, 0} (Prod.{0, 0} V Bool) I → Bool)
(hoff : @Eq.{1} Bool (@Sensitivity213981Formal.ThreeBoundWitness.parent (Fin n) I V inst_1 S F i input) Bool.false)
(hQ :
@LE.le.{0} Nat instLENat (@Sensitivity213981Formal.ThreeBoundWitness.Stage.tolerance (Fin n) I V S j)
(@OfNat.ofNat.{0} Nat (nat_lit 3) (instOfNatNat (nat_lit 3))))
(caps : Sensitivity213981Formal.ThreeBoundNumeric.Caps) (perfect : Nat)
(hcaps :
@Sensitivity213981Formal.ThreeBoundRankNumeric.CapsSound V inst_1
(fun (a b : V) => Classical.propDecidable (@Eq.{1} V a b))
(@Sensitivity213981Formal.ThreeBoundWitness.Stage.Adj (Fin n) I V S)
(@Sensitivity213981Formal.ThreeBoundWitness.Stage.label (Fin n) I V S) caps perfect)
(v : Sensitivity213981Formal.ThreeBoundFullProfile.Profile n)
(hv : @Sensitivity213981Formal.ThreeBoundFullProfile.Upper n I inst F v)
(hordered : @Sensitivity213981Formal.ThreeBoundNumeric.Ordered n v),
@Exists.{1} (List.{0} Nat) fun (xs : List.{0} Nat) =>
And
(@Membership.mem.{0, 0} (List.{0} Nat) (List.{0} (List.{0} Nat)) (@List.instMembership.{0} (List.{0} Nat))
Sensitivity213981Formal.ThreeBoundQ3.records xs)
(@Exists.{1} Nat fun (e : Nat) =>
And
(@LE.le.{0} Nat instLENat e
(Sensitivity213981Formal.ThreeBoundNumeric.recordOfList xs
(@OfNat.ofNat.{0} Nat (nat_lit 11) (instOfNatNat (nat_lit 11)))))
(And
(@Eq.{1} Bool
(Sensitivity213981Formal.ThreeBoundRankNumeric.recordAllowed n caps a c
(Sensitivity213981Formal.ThreeBoundNumeric.recordOfList xs))
Bool.true)
(@LE.le.{0} Nat instLENat
(@Finset.card.{0} (Prod.{0, 0} (Prod.{0, 0} V Bool) I)
(@Sensitivity213981Formal.ThreeBoundProfiles.flipsTo (Prod.{0, 0} (Prod.{0, 0} V Bool) I)
(@instFintypeProd.{0, 0} (Prod.{0, 0} V Bool) I (@instFintypeProd.{0, 0} V Bool inst_1 Bool.fintype)
inst)
(@Sensitivity213981Formal.ThreeBoundWitness.parent (Fin n) I V inst_1 S F j) Bool.true input))
(@Sensitivity213981Formal.ThreeBoundNumeric.Expr.eval n v
(Sensitivity213981Formal.ThreeBoundRankNumeric.recordCost n caps perfect a c
(Sensitivity213981Formal.ThreeBoundNumeric.recordOfList xs) e))))) := by sorrySource