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

Theorem dffun2 6491
Description: Alternate definition of a function. (Contributed by NM, 29-Dec-1996.) Avoid ax-10 2144, ax-12 2180. (Revised by SN, 19-Dec-2024.) Avoid ax-11 2160. (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 6483 . 2 (Fun 𝐴 ↔ (Rel 𝐴 ∧ (𝐴𝐴) ⊆ I ))
2 cotrg 6058 . . . 4 ((𝐴𝐴) ⊆ I ↔ ∀𝑦𝑥𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧))
3 breq1 5094 . . . . . . . . 9 (𝑦 = 𝑤 → (𝑦𝐴𝑥𝑤𝐴𝑥))
43anbi1d 631 . . . . . . . 8 (𝑦 = 𝑤 → ((𝑦𝐴𝑥𝑥𝐴𝑧) ↔ (𝑤𝐴𝑥𝑥𝐴𝑧)))
5 breq1 5094 . . . . . . . 8 (𝑦 = 𝑤 → (𝑦 I 𝑧𝑤 I 𝑧))
64, 5imbi12d 344 . . . . . . 7 (𝑦 = 𝑤 → (((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ((𝑤𝐴𝑥𝑥𝐴𝑧) → 𝑤 I 𝑧)))
76albidv 1921 . . . . . 6 (𝑦 = 𝑤 → (∀𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑧((𝑤𝐴𝑥𝑥𝐴𝑧) → 𝑤 I 𝑧)))
8 breq2 5095 . . . . . . . . 9 (𝑥 = 𝑤 → (𝑦𝐴𝑥𝑦𝐴𝑤))
9 breq1 5094 . . . . . . . . 9 (𝑥 = 𝑤 → (𝑥𝐴𝑧𝑤𝐴𝑧))
108, 9anbi12d 632 . . . . . . . 8 (𝑥 = 𝑤 → ((𝑦𝐴𝑥𝑥𝐴𝑧) ↔ (𝑦𝐴𝑤𝑤𝐴𝑧)))
1110imbi1d 341 . . . . . . 7 (𝑥 = 𝑤 → (((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ((𝑦𝐴𝑤𝑤𝐴𝑧) → 𝑦 I 𝑧)))
1211albidv 1921 . . . . . 6 (𝑥 = 𝑤 → (∀𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑧((𝑦𝐴𝑤𝑤𝐴𝑧) → 𝑦 I 𝑧)))
137, 12alcomw 2046 . . . . 5 (∀𝑦𝑥𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧) ↔ ∀𝑥𝑦𝑧((𝑦𝐴𝑥𝑥𝐴𝑧) → 𝑦 I 𝑧))
14 vex 3440 . . . . . . . . 9 𝑦 ∈ V
15 vex 3440 . . . . . . . . 9 𝑥 ∈ V
1614, 15brcnv 5822 . . . . . . . 8 (𝑦𝐴𝑥𝑥𝐴𝑦)
1716anbi1i 624 . . . . . . 7 ((𝑦𝐴𝑥𝑥𝐴𝑧) ↔ (𝑥𝐴𝑦𝑥𝐴𝑧))
18 vex 3440 . . . . . . . 8 𝑧 ∈ V
1918ideq 5792 . . . . . . 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 3902   class class class wbr 5091   I cid 5510  ccnv 5615  ccom 5620  Rel wrel 5621  Fun wfun 6475
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 2113  ax-9 2121  ax-ext 2703  ax-sep 5234  ax-nul 5244  ax-pr 5370
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 2710  df-cleq 2723  df-clel 2806  df-ral 3048  df-rex 3057  df-rab 3396  df-v 3438  df-dif 3905  df-un 3907  df-ss 3919  df-nul 4284  df-if 4476  df-sn 4577  df-pr 4579  df-op 4583  df-br 5092  df-opab 5154  df-id 5511  df-xp 5622  df-rel 5623  df-cnv 5624  df-co 5625  df-fun 6483
This theorem is referenced by:  dffun6  6492  dffun4  6494  fundif  6530  fliftfun  7246  frrlem9  8224  fprlem1  8230  frrlem15  9650  fpwwe2lem10  10531  fclim  15460  invfun  17671  lmfun  23297  ulmdm  26330  fundmpss  35809  fununiq  35811  fnsingle  35959  funimage  35968  funpartfun  35983  functhincfun  49487
  Copyright terms: Public domain W3C validator