Theorem: LambdaCalculi.LambdaTerm.replace'_elim (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.empty = true
τ : LambdaType p U
t : LambdaTerm p U C
⊢ replace' f n (elim h τ t) =
    match f n (elim h τ t) with
    | some u => u
    | none => elim h τ (replace' f n t)
Tactic:
simp only [replace']
State after:
no goals