Theorem: LambdaCalculi.LambdaTerm.replace'_inr (LambdaCalculi/LambdaCalculus.lean)

State before:
p : LambdaParams
U : Type u_1
C : Type u_2
f : ℕ → LambdaTerm p U C → Option (LambdaTerm p U C)
n : ℕ
h : p.coprod = true
τ : LambdaType p U
r : LambdaTerm p U C
⊢ replace' f n (inr h τ r) =
    match f n (inr h τ r) with
    | some u => u
    | none => inr h τ (replace' f n r)
Tactic:
simp only [replace']
State after:
no goals