Numeric Admissibility — sensitivity certificate definitions
DefinitionSensitivity213981Formal_NumericAdmissibilityThe definitions for Numeric Admissibility 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 ThreeBoundNumeric.instDecidableAdmissible, ThreeBoundNumeric.Ordered, ThreeBoundNumeric.BasePositive, ThreeBoundNumeric.instDecidableBasePositive, ThreeBoundNumeric.GuardOrdered, ThreeBoundNumeric.Admissible, ThreeBoundNumeric.instDecidableOrdered, ThreeBoundNumeric.instDecidableGuardOrdered.
import Definitions.Def_Sensitivity213981Formal_ClosureHomogeneity
import Definitions.Def_Sensitivity213981Formal_FlatProfiles
import Definitions.Def_Sensitivity213981Formal_Namespaces
import Definitions.Def_Sensitivity213981Formal_NamespacesComplete
import Definitions.Def_Sensitivity213981Formal_Q2RawExpressions
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
namespace Sensitivity213981Formal
section
set_option autoImplicit false
set_option maxHeartbeats 1000000
namespace ThreeBoundNumeric
open ThreeBoundProfiles ThreeBoundFullProfile
def Ordered {n : ℕ} (v : Profile n) : Prop :=
∀ i j : Fin n, i< j →
v (.a i j) ≤ v (.a (next i) j) ∧
v (.a i j) ≤ v (.a i (prev j)) ∧
v (.b i j) ≤ v (.b (next i) j) ∧
v (.b i j) ≤ v (.b i (prev j))
def GuardOrdered {n : ℕ} (recipe : Fin n → Entry) (v : Profile n) : Prop :=
∀ i j : Fin n, i≤ j → ∀ k : Fin 9, k.val≤ (recipe j).tolerance →
(bExpr n (recipe j).guard ((recipe j).threshold k.val)).eval v ≤
(bExpr n (recipe j).guard (recipe i).guard).eval v
def Admissible {n : ℕ} (recipe : Fin n → Entry) (v : Profile n) : Prop :=
Ordered v ∧ GuardOrdered recipe v
instance _root_.Sensitivity213981Formal.ThreeBoundNumeric.instDecidableOrdered {n : ℕ} (v : Profile n) : Decidable (Ordered v) := by unfold Ordered; infer_instance
instance _root_.Sensitivity213981Formal.ThreeBoundNumeric.instDecidableGuardOrdered {n : ℕ} (r : Fin n → Entry) (v : Profile n) : Decidable (GuardOrdered r v) := by
unfold GuardOrdered; infer_instance
instance _root_.Sensitivity213981Formal.ThreeBoundNumeric.instDecidableAdmissible {n : ℕ} (r : Fin n → Entry) (v : Profile n) : Decidable (Admissible r v) := by
unfold Admissible; infer_instance
def BasePositive {n : ℕ} (v : Profile n) : Prop :=
∀ i j : Fin n, i≤ j → 1≤ v (.a i j) ∧ 1≤ v (.b i j)
instance _root_.Sensitivity213981Formal.ThreeBoundNumeric.instDecidableBasePositive {n : ℕ} (v : Profile n) : Decidable (BasePositive v) := by
unfold BasePositive; infer_instance
end ThreeBoundNumeric
end
end Sensitivity213981Formal