Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.
abbreviation OAI.TruffetV4Counterexample.Coeff line 8
abbrev Coeff := WithBot ℝ
abbreviation OAI.TruffetV4Counterexample.Form line 10
abbrev Form := Fin 3 → Coeff
abbreviation OAI.TruffetV4Counterexample.Var line 12
abbrev Var := Fin 2
abbreviation OAI.TruffetV4Counterexample.RowIndex line 14
abbrev RowIndex := Fin 2
definition OAI.TruffetV4Counterexample.column line 16
def column (j : Var) : Fin 3 := ⟨j.val, Nat.lt_trans j.isLt (by decide)⟩
definition OAI.TruffetV4Counterexample.nullForm line 18
def nullForm : Form := fun _ => ⊥
structure OAI.TruffetV4Counterexample.Row line 20
structure Row where lhs : Form rhs : Form
structure OAI.TruffetV4Counterexample.State line 24
structure State where rows : RowIndex → Row cost : Form remaining : Var → Prop
definition OAI.TruffetV4Counterexample.wellFormed line 29
def wellFormed (s : State) : Prop := ∀ j, ¬ s.remaining j → s.cost (column j) = ⊥ ∧ ∀ i, (s.rows i).lhs (column j) = ⊥ ∧ (s.rows i).rhs (column j) = ⊥
definition OAI.TruffetV4Counterexample.eval line 33
def eval (f : Form) (w : Fin 3 → ℝ) : Coeff := max (f 0 + (w 0 : Coeff)) (max (f 1 + (w 1 : Coeff)) (f 2 + (w 2 : Coeff)))
definition OAI.TruffetV4Counterexample.feasible line 36
def feasible (s : State) (w : Fin 3 → ℝ) : Prop := ∀ i, eval (s.rows i).rhs w ≤ eval (s.rows i).lhs w
definition OAI.TruffetV4Counterexample.lower line 39
def lower (s : State) (i : RowIndex) (j : Var) : Prop := (s.rows i).lhs (column j) ≠ ⊥ ∧ (s.rows i).rhs (column j) < (s.rows i).lhs (column j)
definition OAI.TruffetV4Counterexample.upper line 43
def upper (s : State) (i : RowIndex) (j : Var) : Prop := (s.rows i).rhs (column j) ≠ ⊥ ∧ (s.rows i).lhs (column j) < (s.rows i).rhs (column j)
definition OAI.TruffetV4Counterexample.dominating line 47
def dominating (s : State) (j : Var) : Prop := s.remaining j ∧ (∃ i, lower s i j) ∧ ∃ i, upper s i j
definition OAI.TruffetV4Counterexample.eligible line 50
def eligible (s : State) (i : RowIndex) (j : Var) : Prop := s.remaining j ∧ lower s i j ∧ ((∃ k, dominating s k) → dominating s j)
definition OAI.TruffetV4Counterexample.bounded line 53
def bounded (s : State) : Prop := ∀ j, s.remaining j → (∃ i, lower s i j) ∨ ∃ i, upper s i j
definition OAI.TruffetV4Counterexample.stop line 56
def stop (s : State) : Prop := ∀ i, (s.rows i).rhs 2 ≤ (s.rows i).lhs 2
definition OAI.TruffetV4Counterexample.switch line 58
def switch (s : State) : Prop := (∀ j, s.remaining j → s.cost (column j) = ⊥) ∧ ¬ stop s ∧ (∃ j, s.remaining j) ∧ (¬ ∃ i j, s.remaining j ∧ lower s i j) ∧ ∃ i j, s.remaining j ∧ upper s i j
definition OAI.TruffetV4Counterexample.failure line 64
def failure (s : State) : Prop := ¬ stop s ∧ ((¬ ∃ j, s.remaining j) ∨ ((¬ ∃ i j, s.remaining j ∧ lower s i j) ∧ (¬ ∃ i j, s.remaining j ∧ upper s i j)))
definition OAI.TruffetV4Counterexample.lowerForm line 69
def lowerForm (s : State) (i : RowIndex) (j : Var) : Form := fun k => if k = column j then ⊥ else (s.rows i).rhs k + ((-WithBot.unbotD 0 ((s.rows i).lhs (column j)) : ℝ) : Coeff)
definition OAI.TruffetV4Counterexample.substitute line 73
def substitute (f : Form) (j : Var) (g : Form) : Form := fun k => if k = column j then ⊥ else max (f k) (f (column j) + g k)
definition OAI.TruffetV4Counterexample.cleanup line 76
def cleanup (r : Row) : Row := by classical exact if ∀ k, r.rhs k ≤ r.lhs k then ⟨nullForm, nullForm⟩ else r
definition OAI.TruffetV4Counterexample.advance line 80
def advance (s : State) (i : RowIndex) (j : Var) : State where rows := fun r => cleanup ⟨substitute (s.rows r).lhs j (lowerForm s i j), substitute (s.rows r).rhs j (lowerForm s i j)⟩ cost := substitute s.cost j (lowerForm s i j) remaining := fun k => s.remaining k ∧ k ≠ j
definition OAI.TruffetV4Counterexample.ForcedSingletonStep line 86
def ForcedSingletonStep (s s' : State) (i : RowIndex) (j : Var) : Prop := wellFormed s ∧ wellFormed s' ∧ bounded s ∧ ¬ stop s ∧ ¬ switch s ∧ ¬ failure s ∧ (∀ r k, eligible s r k ↔ r = i ∧ k = j) ∧ (∃ k, (substitute s.cost j (lowerForm s i j)) k ≠ ⊥) ∧ s' = advance s i j
6 more definitions are reached the same way; the full file lists them.