Metamath Proof Explorer


Theorem dffun7

Description: Alternate definition of a function. One possibility for the definition of a function in Enderton p. 42. (Enderton's definition is ambiguous because "there is only one" could mean either "there is at most one" or "there is exactly one". However, dffun8 shows that it does not matter which meaning we pick.) (Contributed by NM, 4-Nov-2002)

Ref Expression
Assertion dffun7
|- ( Fun A <-> ( Rel A /\ A. x e. dom A E* y x A y ) )

Proof

Step Hyp Ref Expression
1 dffun6
 |-  ( Fun A <-> ( Rel A /\ A. x E* y x A y ) )
2 moabs
 |-  ( E* y x A y <-> ( E. y x A y -> E* y x A y ) )
3 vex
 |-  x e. _V
4 3 eldm
 |-  ( x e. dom A <-> E. y x A y )
5 4 imbi1i
 |-  ( ( x e. dom A -> E* y x A y ) <-> ( E. y x A y -> E* y x A y ) )
6 2 5 bitr4i
 |-  ( E* y x A y <-> ( x e. dom A -> E* y x A y ) )
7 6 albii
 |-  ( A. x E* y x A y <-> A. x ( x e. dom A -> E* y x A y ) )
8 df-ral
 |-  ( A. x e. dom A E* y x A y <-> A. x ( x e. dom A -> E* y x A y ) )
9 7 8 bitr4i
 |-  ( A. x E* y x A y <-> A. x e. dom A E* y x A y )
10 9 anbi2i
 |-  ( ( Rel A /\ A. x E* y x A y ) <-> ( Rel A /\ A. x e. dom A E* y x A y ) )
11 1 10 bitri
 |-  ( Fun A <-> ( Rel A /\ A. x e. dom A E* y x A y ) )