Rank Small Average — sensitivity certificate definitions
DefinitionSensitivity213981Formal_RankSmallAverageboolean-functionssensitivitysensitivity-213981-formal
The definitions for Rank Small Average in the Boolean sensitivity construction. This interface preserves the data, predicates, finite structures, and essential constructor facts of the verified source module. All variables, indexing types, and numerical constants have the meanings specified by these definitions. The subsequent certificate theorems establish the required bounds; this interface adds no unproved assumptions.
The principal source declarations are ThreeBoundRankNumeric.allowance.
Definition code
import Definitions.Def_Sensitivity213981Formal_GlobalAccounting import Definitions.Def_Sensitivity213981Formal_Namespaces 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.BigOperators.Group.List 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.Nodup import Mathlib.Data.List.Sort import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.NormNum import Mathlib.Tactic.Ring namespace Sensitivity213981Formal section /- Exact integer averaging for sorted residual weights and actual marker subsets. -/ set_option autoImplicit false set_option maxHeartbeats 4000000 set_option maxRecDepth 20000 namespace ThreeBoundRankNumeric open scoped BigOperators def allowance (m e k : ℕ) : ℕ := m*(e/k)+(e%k-(k-m)) end ThreeBoundRankNumeric end end Sensitivity213981Formal
Source