records canonical — Boolean sensitivity certificate
ProvedSensitivity213981Formal.ThreeBoundRelaxedCanonical.records_canonicalboolean-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 records canonical step in the verified -level sensitivity construction.
Preamble
import Definitions.Def_Sensitivity213981Formal_Namespaces import Definitions.Def_Sensitivity213981Formal_NamespacesComplete import Definitions.Def_Sensitivity213981Formal_Q2EnumerationBridge import Definitions.Def_Sensitivity213981Formal_Q3OrientationTournament import Definitions.Def_Sensitivity213981Formal_RelaxedCanonical import Definitions.Def_Sensitivity213981Formal_RelaxedDegreeNecessity import Definitions.Def_Sensitivity213981Formal_RelaxedOrientation import Definitions.Def_SensitivityCampaign import Definitions.Def_SensitivitySeparation import Lean.Elab.Tactic.Omega import Mathlib.Algebra.BigOperators.Fin import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Order.Ring.Nat import Mathlib.Combinatorics.Hall.Finite import Mathlib.Data.Finset.Card import Mathlib.Data.Finset.Lattice.Fold import Mathlib.Data.Finset.Prod import Mathlib.Data.Finset.Sort import Mathlib.Data.Finset.Union import Mathlib.Data.Fintype.Basic import Mathlib.Data.Fintype.EquivFin import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Powerset import Mathlib.Data.Fintype.Prod import Mathlib.Data.List.FinRange import Mathlib.Data.List.Sort import Mathlib.Data.Prod.Lex import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.NormNum import Mathlib.Tactic.Ring set_option autoImplicit false set_option maxHeartbeats 0 set_option maxRecDepth 200000
Formal statement
theorem Sensitivity213981Formal.ThreeBoundRelaxedCanonical.records_canonical :
∀ (xs : List.{0} Nat)
(hx :
@Membership.mem.{0, 0} (List.{0} Nat) (List.{0} (List.{0} Nat)) (@List.instMembership.{0} (List.{0} Nat))
Sensitivity213981Formal.ThreeBoundQ3.records xs),
@Exists.{1} (List.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State)
fun (ss : List.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State) =>
And (@Eq.{1} (List.{0} Nat) xs (Sensitivity213981Formal.ThreeBoundRelaxed.record ss))
(And
(Sensitivity213981Formal.ThreeBoundQ3.allowedTypes
(@List.map.{0, 0} Sensitivity213981Formal.ThreeBoundRelaxed.State Sensitivity213981Formal.ThreeBoundQ3.Kind
Sensitivity213981Formal.ThreeBoundRelaxed.State.kind ss))
(And
(@List.Pairwise.{0} Sensitivity213981Formal.ThreeBoundQ3.Kind
(fun (a b : Sensitivity213981Formal.ThreeBoundQ3.Kind) =>
@LE.le.{0} Nat instLENat (Sensitivity213981Formal.ThreeBoundQ3.orderKey a)
(Sensitivity213981Formal.ThreeBoundQ3.orderKey b))
(@List.map.{0, 0} Sensitivity213981Formal.ThreeBoundRelaxed.State Sensitivity213981Formal.ThreeBoundQ3.Kind
Sensitivity213981Formal.ThreeBoundRelaxed.State.kind ss))
(And
(@LE.le.{0} Nat instLENat (@List.length.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State ss)
(@OfNat.ofNat.{0} Nat (nat_lit 9) (instOfNatNat (nat_lit 9))))
(And
(∀ (s : Sensitivity213981Formal.ThreeBoundRelaxed.State),
@Membership.mem.{0, 0} Sensitivity213981Formal.ThreeBoundRelaxed.State
(List.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State)
(@List.instMembership.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State) ss s →
Sensitivity213981Formal.ThreeBoundRelaxed.Local
(@List.length.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State ss)
(Sensitivity213981Formal.ThreeBoundRelaxed.guardCount
(@List.map.{0, 0} Sensitivity213981Formal.ThreeBoundRelaxed.State
Sensitivity213981Formal.ThreeBoundQ3.Kind Sensitivity213981Formal.ThreeBoundRelaxed.State.kind
ss))
s)
(And
(Sensitivity213981Formal.ThreeBoundRelaxed.Canonical
(@Option.none.{0} Sensitivity213981Formal.ThreeBoundRelaxed.State) ss)
(@Eq.{1} ((k : Fin (@OfNat.ofNat.{0} Nat (nat_lit 3) (instOfNatNat (nat_lit 3)))) → Int)
(Sensitivity213981Formal.ThreeBoundRelaxed.weightSum ss)
(Sensitivity213981Formal.ThreeBoundRelaxed.target
(@List.map.{0, 0} Sensitivity213981Formal.ThreeBoundRelaxed.State
Sensitivity213981Formal.ThreeBoundQ3.Kind Sensitivity213981Formal.ThreeBoundRelaxed.State.kind
ss)))))))) := by sorrySource