-- Module: Mathlib.Computability.TuringMachine.Config
Goal:
n_1 : ℕ
f_1 : List.Vector ℕ n_1 →. ℕ
n_2 : ℕ
f : List.Vector ℕ (n_2 + 1) → ℕ
h_1 : Nat.Partrec' (↑f : List.Vector ℕ (n_2 + 1) →. ℕ)
cf : Code
v : List.Vector ℕ n_2
hf : ∀ (a : ℕ), cf.eval (a :: (↑v : List ℕ)) = Part.some [f (a ::ᵥ v)]
v' v₀ : List ℕ
n : ℕ
h2 :
  Membership.mem (γ := Part (List ℕ))
    (PFun.fix
      (fun (v : List ℕ) ↦
        (cf.eval v).bind fun (y : List ℕ) ↦
          Part.some (if y.headI = 0 then Sum.inl (v.headI.succ :: v.tail) else Sum.inr (v.headI.succ :: v.tail)))
      (n :: (↑v : List ℕ)))
    v'
IH :
  ∀ (a'' : List ℕ),
    Membership.mem (γ := Part (List ℕ ⊕ List ℕ))
        ((cf.eval (n :: (↑v : List ℕ))).bind fun (y : List ℕ) ↦
          Part.some
            (if y.headI = 0 then Sum.inl ((n :: (↑v : List ℕ)).headI.succ :: (n :: (↑v : List ℕ)).tail)
            else Sum.inr ((n :: (↑v : List ℕ)).headI.succ :: (n :: (↑v : List ℕ)).tail)))
        (Sum.inr a'') →
      ∀ (n : ℕ),
        a'' = n :: (↑v : List ℕ) →
          (∀ m < n, ¬f (m ::ᵥ v) = 0) →
            ∃ (a : ℕ), (f (a ::ᵥ v) = 0 ∧ ∀ {m : ℕ}, m < a → ¬f (m ::ᵥ v) = 0) ∧ [a] = [v'.headI.pred]
hm : ∀ m < n, ¬f (m ::ᵥ v) = 0
h : ¬[f (n ::ᵥ v)].headI = 0
this :
  Membership.mem (γ := Part (List ℕ ⊕ List ℕ))
      (Part.some (Sum.inr ((n :: (↑v : List ℕ)).headI.succ :: (n :: (↑v : List ℕ)).tail))) (Sum.inl v') ∨
    ∃ (a' : List ℕ),
      Membership.mem (γ := Part (List ℕ ⊕ List ℕ))
          (Part.some (Sum.inr ((n :: (↑v : List ℕ)).headI.succ :: (n :: (↑v : List ℕ)).tail))) (Sum.inr a') ∧
        Membership.mem (γ := Part (List ℕ))
          (PFun.fix
            (fun (v : List ℕ) ↦
              (cf.eval v).bind fun (y : List ℕ) ↦
                Part.some (if y.headI = 0 then Sum.inl (v.headI.succ :: v.tail) else Sum.inr (v.headI.succ :: v.tail)))
            a')
          v'
m : ℕ
h' : m < n.succ
neg : ∀ (h : m < n), ¬f (m ::ᵥ v) = 0
neg₁ :
  ∀
    (h2 :
      Membership.mem (γ := Part (List ℕ))
        (PFun.fix
          (fun (v : List ℕ) ↦
            (cf.eval v).bind fun (y : List ℕ) ↦
              Part.some (if y.headI = 0 then Sum.inl (v.headI.succ :: v.tail) else Sum.inr (v.headI.succ :: v.tail)))
          (m :: (↑v : List ℕ)))
        v')
    (IH :
      ∀ (a'' : List ℕ),
        Membership.mem (γ := Part (List ℕ ⊕ List ℕ))
            ((cf.eval (m :: (↑v : List ℕ))).bind fun (y : List ℕ) ↦
              Part.some
                (if y.headI = 0 then Sum.inl ((m :: (↑v : List ℕ)).headI.succ :: (m :: (↑v : List ℕ)).tail)
                else Sum.inr ((m :: (↑v : List ℕ)).headI.succ :: (m :: (↑v : List ℕ)).tail)))
            (Sum.inr a'') →
          ∀ (n : ℕ),
            a'' = n :: (↑v : List ℕ) →
              (∀ m < n, ¬f (m ::ᵥ v) = 0) →
                ∃ (a : ℕ), (f (a ::ᵥ v) = 0 ∧ ∀ {m : ℕ}, m < a → ¬f (m ::ᵥ v) = 0) ∧ [a] = [v'.headI.pred])
    (hm : ∀ m_1 < m, ¬f (m_1 ::ᵥ v) = 0) (h : ¬[f (m ::ᵥ v)].headI = 0)
    (this :
      Membership.mem (γ := Part (List ℕ ⊕ List ℕ))
          (Part.some (Sum.inr ((m :: (↑v : List ℕ)).headI.succ :: (m :: (↑v : List ℕ)).tail))) (Sum.inl v') ∨
        ∃ (a' : List ℕ),
          Membership.mem (γ := Part (List ℕ ⊕ List ℕ))
              (Part.some (Sum.inr ((m :: (↑v : List ℕ)).headI.succ :: (m :: (↑v : List ℕ)).tail))) (Sum.inr a') ∧
            Membership.mem (γ := Part (List ℕ))
              (PFun.fix
                (fun (v : List ℕ) ↦
                  (cf.eval v).bind fun (y : List ℕ) ↦
                    Part.some
                      (if y.headI = 0 then Sum.inl (v.headI.succ :: v.tail) else Sum.inr (v.headI.succ :: v.tail)))
                a')
              v')
    (h' : m < m.succ), ¬f (m ::ᵥ v) = 0
⊢ ¬f (m ::ᵥ v) = 0

Tactic:
obtain h | rfl := Nat.lt_succ_iff_lt_or_eq.1 h'

Premises used: Iff.mp, Nat.lt_succ_iff_lt_or_eq, rfl