Theorem: LambdaCalculi.LambdaTerm.replace'_app (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.lambda = true
l r : LambdaTerm p U C
⊢ replace' f n (app h l r) =
    match f n (app h l r) with
    | some u => u
    | none => app h (replace' f n l) (replace' f n r)
Tactic:
simp only [replace']
State after:
no goals