MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dffun2 Structured version   Visualization version   GIF version

Theorem dffun2 6498
Description: Alternate definition of a function. (Contributed by NM, 29-Dec-1996.) Avoid ax-10 2146, ax-12 2182. (Revised by SN, 19-Dec-2024.) Avoid ax-11 2162. (Revised by BTernaryTau, 29-Dec-2024.)
Assertion
Ref Expression
dffun2 (Fun 𝐴 ↔ (Rel 𝐴 ∧ ∀𝑥𝑦𝑧((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧)))
Distinct variable group:   𝑥,𝐴,𝑦,𝑧

Proof of Theorem dffun2
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 df-fun 6490 . 2 (Fun 𝐴 ↔ (Rel 𝐴 ∧ (𝐴𝐴) ⊆ I ))
2 cotrg 6064 . . . 4 ((𝐴𝐴) ⊆ I ↔ ∀𝑦𝑥𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧))
3 breq1 5098 . . . . . . . . 9 (𝑦 = 𝑤 → (𝑦𝐴𝑥𝑤𝐴𝑥))
43anbi1d 631 . . . . . . . 8 (𝑦 = 𝑤 → ((𝑦𝐴𝑥𝑥𝐴𝑧) ↔ (𝑤𝐴𝑥𝑥𝐴𝑧)))
5 breq1 5098 . . . . . . . 8 (𝑦 = 𝑤 → (𝑦 I 𝑧𝑤 I 𝑧))
64, 5imbi12d 344 . . . . . . 7 (𝑦 = 𝑤 → (((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ((𝑤𝐴𝑥𝑥𝐴𝑧) → 𝑤 I 𝑧)))
76albidv 1921 . . . . . 6 (𝑦 = 𝑤 → (∀𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑧((𝑤𝐴𝑥𝑥𝐴𝑧) → 𝑤 I 𝑧)))
8 breq2 5099 . . . . . . . . 9 (𝑥 = 𝑤 → (𝑦𝐴𝑥𝑦𝐴𝑤))
9 breq1 5098 . . . . . . . . 9 (𝑥 = 𝑤 → (𝑥𝐴𝑧𝑤𝐴𝑧))
108, 9anbi12d 632 . . . . . . . 8 (𝑥 = 𝑤 → ((𝑦𝐴𝑥𝑥𝐴𝑧) ↔ (𝑦𝐴𝑤𝑤𝐴𝑧)))
1110imbi1d 341 . . . . . . 7 (𝑥 = 𝑤 → (((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ((𝑦𝐴𝑤𝑤𝐴𝑧) → 𝑦 I 𝑧)))
1211albidv 1921 . . . . . 6 (𝑥 = 𝑤 → (∀𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑧((𝑦𝐴𝑤𝑤𝐴𝑧) → 𝑦 I 𝑧)))
137, 12alcomw 2046 . . . . 5 (∀𝑦𝑥𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑥𝑦𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧))
14 vex 3441 . . . . . . . . 9 𝑦 ∈ V
15 vex 3441 . . . . . . . . 9 𝑥 ∈ V
1614, 15brcnv 5828 . . . . . . . 8 (𝑦𝐴𝑥𝑥𝐴𝑦)
1716anbi1i 624 . . . . . . 7 ((𝑦𝐴𝑥𝑥𝐴𝑧) ↔ (𝑥𝐴𝑦𝑥𝐴𝑧))
18 vex 3441 . . . . . . . 8 𝑧 ∈ V
1918ideq 5798 . . . . . . 7 (𝑦 I 𝑧𝑦 = 𝑧)
2017, 19imbi12i 350 . . . . . 6 (((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧))
21203albii 1822 . . . . 5 (∀𝑥𝑦𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑥𝑦𝑧((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧))
2213, 21bitri 275 . . . 4 (∀𝑦𝑥𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑥𝑦𝑧((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧))
232, 22bitri 275 . . 3 ((𝐴𝐴) ⊆ I ↔ ∀𝑥𝑦𝑧((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧))
2423anbi2i 623 . 2 ((Rel 𝐴 ∧ (𝐴𝐴) ⊆ I ) ↔ (Rel 𝐴 ∧ ∀𝑥𝑦𝑧((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧)))
251, 24bitri 275 1 (Fun 𝐴 ↔ (Rel 𝐴 ∧ ∀𝑥𝑦𝑧((𝑥𝐴𝑦𝑥𝐴𝑧) → 𝑦 = 𝑧)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395  wal 1539  wss 3898   class class class wbr 5095   I cid 5515  ccnv 5620  ccom 5625  Rel wrel 5626  Fun wfun 6482
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2115  ax-9 2123  ax-ext 2705  ax-sep 5238  ax-nul 5248  ax-pr 5374
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-sb 2068  df-clab 2712  df-cleq 2725  df-clel 2808  df-ral 3049  df-rex 3058  df-rab 3397  df-v 3439  df-dif 3901  df-un 3903  df-ss 3915  df-nul 4283  df-if 4477  df-sn 4578  df-pr 4580  df-op 4584  df-br 5096  df-opab 5158  df-id 5516  df-xp 5627  df-rel 5628  df-cnv 5629  df-co 5630  df-fun 6490
This theorem is referenced by:  dffun6  6499  dffun4  6501  fundif  6537  fliftfun  7254  frrlem9  8232  fprlem1  8238  frrlem15  9659  fpwwe2lem10  10540  fclim  15464  invfun  17675  lmfun  23299  ulmdm  26332  fundmpss  35834  fununiq  35836  fnsingle  35984  funimage  35993  funpartfun  36010  functhincfun  49577
  Copyright terms: Public domain W3C validator