Q3 Orientation Tournament — sensitivity certificate definitions
DefinitionSensitivity213981Formal_Q3OrientationTournamentboolean-functionssensitivitysensitivity-213981-formal
The definitions for Q3 Orientation Tournament 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 ThreeBoundOrientation.direction, ThreeBoundOrientation.relation, ThreeBoundOrientation.instDecidableRelFinRelation.
Definition code
import Definitions.Def_Sensitivity213981Formal_Namespaces
import Definitions.Def_Sensitivity213981Formal_NamespacesComplete
import Definitions.Def_Sensitivity213981Formal_Q2EnumerationBridge
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
/- Every full edge-bit list encodes an actual tournament. This inverse bridge
lets finite enumeration certificates use ordinary tournament counting. -/
set_option autoImplicit false
set_option maxHeartbeats 1000000
namespace ThreeBoundOrientation
open ThreeBoundQ2
def direction {n : ℕ} (ds : List Bool) (e : Fin n × Fin n) : Bool :=
(ds[(edges n).idxOf e]?).getD false
def relation {n : ℕ} (ds : List Bool) (v w : Fin n) : Prop :=
(v < w ∧ direction ds (v,w) = false) ∨
(w < v ∧ direction ds (w,v) = true)
instance _root_.Sensitivity213981Formal.ThreeBoundOrientation.instDecidableRelFinRelation {n : ℕ} (ds : List Bool) : DecidableRel (relation (n := n) ds) := by
unfold relation
infer_instance
end ThreeBoundOrientation
end
end Sensitivity213981Formal
Source