Metamath Proof Explorer


Theorem sub2cncf

Description: Subtraction from a constant is a continuous function. (Contributed by Jeff Madsen, 2-Sep-2009) (Proof shortened by Mario Carneiro, 12-Sep-2015)

Ref Expression
Hypothesis sub2cncf.1
|- F = ( x e. CC |-> ( A - x ) )
Assertion sub2cncf
|- ( A e. CC -> F e. ( CC -cn-> CC ) )

Proof

Step Hyp Ref Expression
1 sub2cncf.1
 |-  F = ( x e. CC |-> ( A - x ) )
2 eqid
 |-  ( TopOpen ` CCfld ) = ( TopOpen ` CCfld )
3 2 subcn
 |-  - e. ( ( ( TopOpen ` CCfld ) tX ( TopOpen ` CCfld ) ) Cn ( TopOpen ` CCfld ) )
4 3 a1i
 |-  ( A e. CC -> - e. ( ( ( TopOpen ` CCfld ) tX ( TopOpen ` CCfld ) ) Cn ( TopOpen ` CCfld ) ) )
5 ssid
 |-  CC C_ CC
6 cncfmptc
 |-  ( ( A e. CC /\ CC C_ CC /\ CC C_ CC ) -> ( x e. CC |-> A ) e. ( CC -cn-> CC ) )
7 5 5 6 mp3an23
 |-  ( A e. CC -> ( x e. CC |-> A ) e. ( CC -cn-> CC ) )
8 eqid
 |-  ( x e. CC |-> x ) = ( x e. CC |-> x )
9 8 idcncf
 |-  ( x e. CC |-> x ) e. ( CC -cn-> CC )
10 9 a1i
 |-  ( A e. CC -> ( x e. CC |-> x ) e. ( CC -cn-> CC ) )
11 2 4 7 10 cncfmpt2f
 |-  ( A e. CC -> ( x e. CC |-> ( A - x ) ) e. ( CC -cn-> CC ) )
12 1 11 eqeltrid
 |-  ( A e. CC -> F e. ( CC -cn-> CC ) )