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

Theorem fliftfun 7163
Description: The function 𝐹 is the unique function defined by 𝐹𝐴 = 𝐵, provided that the well-definedness condition holds. (Contributed by Mario Carneiro, 23-Dec-2016.)
Hypotheses
Ref Expression
flift.1 𝐹 = ran (𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
flift.2 ((𝜑𝑥𝑋) → 𝐴𝑅)
flift.3 ((𝜑𝑥𝑋) → 𝐵𝑆)
fliftfun.4 (𝑥 = 𝑦𝐴 = 𝐶)
fliftfun.5 (𝑥 = 𝑦𝐵 = 𝐷)
Assertion
Ref Expression
fliftfun (𝜑 → (Fun 𝐹 ↔ ∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷)))
Distinct variable groups:   𝑦,𝐴   𝑦,𝐵   𝑥,𝐶   𝑥,𝑦,𝑅   𝑥,𝐷   𝑦,𝐹   𝜑,𝑥,𝑦   𝑥,𝑋,𝑦   𝑥,𝑆,𝑦
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥)   𝐶(𝑦)   𝐷(𝑦)   𝐹(𝑥)

Proof of Theorem fliftfun
Dummy variables 𝑣 𝑢 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1918 . . 3 𝑥𝜑
2 flift.1 . . . . 5 𝐹 = ran (𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
3 nfmpt1 5178 . . . . . 6 𝑥(𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
43nfrn 5850 . . . . 5 𝑥ran (𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
52, 4nfcxfr 2904 . . . 4 𝑥𝐹
65nffun 6441 . . 3 𝑥Fun 𝐹
7 fveq2 6756 . . . . . . 7 (𝐴 = 𝐶 → (𝐹𝐴) = (𝐹𝐶))
8 simplr 765 . . . . . . . . 9 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → Fun 𝐹)
9 flift.2 . . . . . . . . . . 11 ((𝜑𝑥𝑋) → 𝐴𝑅)
10 flift.3 . . . . . . . . . . 11 ((𝜑𝑥𝑋) → 𝐵𝑆)
112, 9, 10fliftel1 7161 . . . . . . . . . 10 ((𝜑𝑥𝑋) → 𝐴𝐹𝐵)
1211ad2ant2r 743 . . . . . . . . 9 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐴𝐹𝐵)
13 funbrfv 6802 . . . . . . . . 9 (Fun 𝐹 → (𝐴𝐹𝐵 → (𝐹𝐴) = 𝐵))
148, 12, 13sylc 65 . . . . . . . 8 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐹𝐴) = 𝐵)
15 simprr 769 . . . . . . . . . . 11 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝑦𝑋)
16 eqidd 2739 . . . . . . . . . . 11 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐶 = 𝐶)
17 eqidd 2739 . . . . . . . . . . 11 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐷 = 𝐷)
18 fliftfun.4 . . . . . . . . . . . . . 14 (𝑥 = 𝑦𝐴 = 𝐶)
1918eqeq2d 2749 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → (𝐶 = 𝐴𝐶 = 𝐶))
20 fliftfun.5 . . . . . . . . . . . . . 14 (𝑥 = 𝑦𝐵 = 𝐷)
2120eqeq2d 2749 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → (𝐷 = 𝐵𝐷 = 𝐷))
2219, 21anbi12d 630 . . . . . . . . . . . 12 (𝑥 = 𝑦 → ((𝐶 = 𝐴𝐷 = 𝐵) ↔ (𝐶 = 𝐶𝐷 = 𝐷)))
2322rspcev 3552 . . . . . . . . . . 11 ((𝑦𝑋 ∧ (𝐶 = 𝐶𝐷 = 𝐷)) → ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵))
2415, 16, 17, 23syl12anc 833 . . . . . . . . . 10 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵))
252, 9, 10fliftel 7160 . . . . . . . . . . 11 (𝜑 → (𝐶𝐹𝐷 ↔ ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵)))
2625ad2antrr 722 . . . . . . . . . 10 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐶𝐹𝐷 ↔ ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵)))
2724, 26mpbird 256 . . . . . . . . 9 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐶𝐹𝐷)
28 funbrfv 6802 . . . . . . . . 9 (Fun 𝐹 → (𝐶𝐹𝐷 → (𝐹𝐶) = 𝐷))
298, 27, 28sylc 65 . . . . . . . 8 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐹𝐶) = 𝐷)
3014, 29eqeq12d 2754 . . . . . . 7 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → ((𝐹𝐴) = (𝐹𝐶) ↔ 𝐵 = 𝐷))
317, 30syl5ib 243 . . . . . 6 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐴 = 𝐶𝐵 = 𝐷))
3231anassrs 467 . . . . 5 ((((𝜑 ∧ Fun 𝐹) ∧ 𝑥𝑋) ∧ 𝑦𝑋) → (𝐴 = 𝐶𝐵 = 𝐷))
3332ralrimiva 3107 . . . 4 (((𝜑 ∧ Fun 𝐹) ∧ 𝑥𝑋) → ∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷))
3433exp31 419 . . 3 (𝜑 → (Fun 𝐹 → (𝑥𝑋 → ∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷))))
351, 6, 34ralrimd 3141 . 2 (𝜑 → (Fun 𝐹 → ∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷)))
362, 9, 10fliftel 7160 . . . . . . . . 9 (𝜑 → (𝑧𝐹𝑢 ↔ ∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵)))
372, 9, 10fliftel 7160 . . . . . . . . . 10 (𝜑 → (𝑧𝐹𝑣 ↔ ∃𝑥𝑋 (𝑧 = 𝐴𝑣 = 𝐵)))
3818eqeq2d 2749 . . . . . . . . . . . 12 (𝑥 = 𝑦 → (𝑧 = 𝐴𝑧 = 𝐶))
3920eqeq2d 2749 . . . . . . . . . . . 12 (𝑥 = 𝑦 → (𝑣 = 𝐵𝑣 = 𝐷))
4038, 39anbi12d 630 . . . . . . . . . . 11 (𝑥 = 𝑦 → ((𝑧 = 𝐴𝑣 = 𝐵) ↔ (𝑧 = 𝐶𝑣 = 𝐷)))
4140cbvrexvw 3373 . . . . . . . . . 10 (∃𝑥𝑋 (𝑧 = 𝐴𝑣 = 𝐵) ↔ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷))
4237, 41bitrdi 286 . . . . . . . . 9 (𝜑 → (𝑧𝐹𝑣 ↔ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷)))
4336, 42anbi12d 630 . . . . . . . 8 (𝜑 → ((𝑧𝐹𝑢𝑧𝐹𝑣) ↔ (∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷))))
4443biimpd 228 . . . . . . 7 (𝜑 → ((𝑧𝐹𝑢𝑧𝐹𝑣) → (∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷))))
45 reeanv 3292 . . . . . . . 8 (∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) ↔ (∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷)))
46 r19.29 3183 . . . . . . . . . 10 ((∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → ∃𝑥𝑋 (∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))))
47 r19.29 3183 . . . . . . . . . . . 12 ((∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → ∃𝑦𝑋 ((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))))
48 eqtr2 2762 . . . . . . . . . . . . . . . . 17 ((𝑧 = 𝐴𝑧 = 𝐶) → 𝐴 = 𝐶)
4948ad2ant2r 743 . . . . . . . . . . . . . . . 16 (((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) → 𝐴 = 𝐶)
5049imim1i 63 . . . . . . . . . . . . . . 15 ((𝐴 = 𝐶𝐵 = 𝐷) → (((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) → 𝐵 = 𝐷))
5150imp 406 . . . . . . . . . . . . . 14 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝐵 = 𝐷)
52 simprlr 776 . . . . . . . . . . . . . 14 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝐵)
53 simprrr 778 . . . . . . . . . . . . . 14 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑣 = 𝐷)
5451, 52, 533eqtr4d 2788 . . . . . . . . . . . . 13 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5554rexlimivw 3210 . . . . . . . . . . . 12 (∃𝑦𝑋 ((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5647, 55syl 17 . . . . . . . . . . 11 ((∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5756rexlimivw 3210 . . . . . . . . . 10 (∃𝑥𝑋 (∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5846, 57syl 17 . . . . . . . . 9 ((∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5958ex 412 . . . . . . . 8 (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → (∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) → 𝑢 = 𝑣))
6045, 59syl5bir 242 . . . . . . 7 (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ((∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷)) → 𝑢 = 𝑣))
6144, 60syl9 77 . . . . . 6 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
6261alrimdv 1933 . . . . 5 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ∀𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
6362alrimdv 1933 . . . 4 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ∀𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
6463alrimdv 1933 . . 3 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
652, 9, 10fliftrel 7159 . . . . 5 (𝜑𝐹 ⊆ (𝑅 × 𝑆))
66 relxp 5598 . . . . 5 Rel (𝑅 × 𝑆)
67 relss 5682 . . . . 5 (𝐹 ⊆ (𝑅 × 𝑆) → (Rel (𝑅 × 𝑆) → Rel 𝐹))
6865, 66, 67mpisyl 21 . . . 4 (𝜑 → Rel 𝐹)
69 dffun2 6428 . . . . 5 (Fun 𝐹 ↔ (Rel 𝐹 ∧ ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
7069baib 535 . . . 4 (Rel 𝐹 → (Fun 𝐹 ↔ ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
7168, 70syl 17 . . 3 (𝜑 → (Fun 𝐹 ↔ ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
7264, 71sylibrd 258 . 2 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → Fun 𝐹))
7335, 72impbid 211 1 (𝜑 → (Fun 𝐹 ↔ ∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1537   = wceq 1539  wcel 2108  wral 3063  wrex 3064  wss 3883  cop 4564   class class class wbr 5070  cmpt 5153   × cxp 5578  ran crn 5581  Rel wrel 5585  Fun wfun 6412  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426
This theorem is referenced by:  fliftfund  7164  fliftfuns  7165  qliftfun  8549
  Copyright terms: Public domain W3C validator