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