Metamath Proof Explorer


Theorem nfafv2

Description: Bound-variable hypothesis builder for function value, analogous to nffv . To prove a deduction version of this analogous to nffvd is not easily possible because a deduction version of nfdfat cannot be shown easily. (Contributed by AV, 4-Sep-2022)

Ref Expression
Hypotheses nfafv2.1 𝑥 𝐹
nfafv2.2 𝑥 𝐴
Assertion nfafv2 𝑥 ( 𝐹 '''' 𝐴 )

Proof

Step Hyp Ref Expression
1 nfafv2.1 𝑥 𝐹
2 nfafv2.2 𝑥 𝐴
3 df-afv2 ( 𝐹 '''' 𝐴 ) = if ( 𝐹 defAt 𝐴 , ( ℩ 𝑦 𝐴 𝐹 𝑦 ) , 𝒫 ran 𝐹 )
4 1 2 nfdfat 𝑥 𝐹 defAt 𝐴
5 nfcv 𝑥 𝑦
6 2 1 5 nfbr 𝑥 𝐴 𝐹 𝑦
7 6 nfiotaw 𝑥 ( ℩ 𝑦 𝐴 𝐹 𝑦 )
8 1 nfrn 𝑥 ran 𝐹
9 8 nfuni 𝑥 ran 𝐹
10 9 nfpw 𝑥 𝒫 ran 𝐹
11 4 7 10 nfif 𝑥 if ( 𝐹 defAt 𝐴 , ( ℩ 𝑦 𝐴 𝐹 𝑦 ) , 𝒫 ran 𝐹 )
12 3 11 nfcxfr 𝑥 ( 𝐹 '''' 𝐴 )