Relaxed Compiled Search — sensitivity certificate definitions
DefinitionSensitivity213981Formal_RelaxedCompiledSearchboolean-functionssensitivitysensitivity-213981-formal
The definitions for Relaxed Compiled Search 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 ThreeBoundRelaxedCompiled.Plan, ThreeBoundRelaxedCompiled.Int3, ThreeBoundRelaxedCompiled.Int3.get, ThreeBoundRelaxedCompiled.Job, ThreeBoundRelaxedCompiled.Int3.ofFn, ThreeBoundRelaxedCompiled.Int3.sub, ThreeBoundRelaxedCompiled.zero, ThreeBoundRelaxedCompiled.weight3.
Definition code
import Definitions.Def_Sensitivity213981Formal_Namespaces import Definitions.Def_Sensitivity213981Formal_NamespacesComplete import Definitions.Def_Sensitivity213981Formal_RelaxedStateSearch 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.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.Fintype.Basic import Mathlib.Data.Fintype.EquivFin import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Powerset import Mathlib.Data.List.FinRange import Mathlib.Data.List.Sort import Mathlib.Data.Prod.Lex import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith namespace Sensitivity213981Formal section /- Compile suffix options and conservation intervals once, then split the remaining exact search at any finite frontier. -/ set_option autoImplicit false set_option maxHeartbeats 5000000 set_option maxRecDepth 20000 namespace ThreeBoundRelaxedCompiled open ThreeBoundQ3 ThreeBoundRelaxed structure Int3 where a : ℤ b : ℤ c : ℤ deriving Repr, DecidableEq def Int3.get (x : Int3) (k : Fin 3) : ℤ := if k.val=0 then x.a else if k.val=1 then x.b else x.c def Int3.ofFn (f : Fin 3 → ℤ) : Int3 := ⟨f 0,f 1,f 2⟩ def Int3.sub (x y : Int3) : Int3 := ⟨x.a-y.a,x.b-y.b,x.c-y.c⟩ def zero : Int3 := ⟨0,0,0⟩ def weight3 (s : State) : Int3 := Int3.ofFn (weight s) inductive Plan where | done : Plan | step (lo hi : Int3) (choices : List State) (tail : Plan) : Plan deriving Repr, DecidableEq structure Job where plan : Plan pre : List State previous : Option State remaining : Int3 deriving Repr, DecidableEq end ThreeBoundRelaxedCompiled end end Sensitivity213981Formal
Source