ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fliftfun GIF version

Theorem fliftfun 5764
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 1516 . . 3 𝑥𝜑
2 flift.1 . . . . 5 𝐹 = ran (𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
3 nfmpt1 4075 . . . . . 6 𝑥(𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
43nfrn 4849 . . . . 5 𝑥ran (𝑥𝑋 ↦ ⟨𝐴, 𝐵⟩)
52, 4nfcxfr 2305 . . . 4 𝑥𝐹
65nffun 5211 . . 3 𝑥Fun 𝐹
7 fveq2 5486 . . . . . . 7 (𝐴 = 𝐶 → (𝐹𝐴) = (𝐹𝐶))
8 simplr 520 . . . . . . . . 9 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → Fun 𝐹)
9 flift.2 . . . . . . . . . . 11 ((𝜑𝑥𝑋) → 𝐴𝑅)
10 flift.3 . . . . . . . . . . 11 ((𝜑𝑥𝑋) → 𝐵𝑆)
112, 9, 10fliftel1 5762 . . . . . . . . . 10 ((𝜑𝑥𝑋) → 𝐴𝐹𝐵)
1211ad2ant2r 501 . . . . . . . . 9 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐴𝐹𝐵)
13 funbrfv 5525 . . . . . . . . 9 (Fun 𝐹 → (𝐴𝐹𝐵 → (𝐹𝐴) = 𝐵))
148, 12, 13sylc 62 . . . . . . . 8 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐹𝐴) = 𝐵)
15 simprr 522 . . . . . . . . . . 11 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝑦𝑋)
16 eqidd 2166 . . . . . . . . . . 11 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐶 = 𝐶)
17 eqidd 2166 . . . . . . . . . . 11 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐷 = 𝐷)
18 fliftfun.4 . . . . . . . . . . . . . 14 (𝑥 = 𝑦𝐴 = 𝐶)
1918eqeq2d 2177 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → (𝐶 = 𝐴𝐶 = 𝐶))
20 fliftfun.5 . . . . . . . . . . . . . 14 (𝑥 = 𝑦𝐵 = 𝐷)
2120eqeq2d 2177 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → (𝐷 = 𝐵𝐷 = 𝐷))
2219, 21anbi12d 465 . . . . . . . . . . . 12 (𝑥 = 𝑦 → ((𝐶 = 𝐴𝐷 = 𝐵) ↔ (𝐶 = 𝐶𝐷 = 𝐷)))
2322rspcev 2830 . . . . . . . . . . 11 ((𝑦𝑋 ∧ (𝐶 = 𝐶𝐷 = 𝐷)) → ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵))
2415, 16, 17, 23syl12anc 1226 . . . . . . . . . 10 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵))
252, 9, 10fliftel 5761 . . . . . . . . . . 11 (𝜑 → (𝐶𝐹𝐷 ↔ ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵)))
2625ad2antrr 480 . . . . . . . . . 10 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐶𝐹𝐷 ↔ ∃𝑥𝑋 (𝐶 = 𝐴𝐷 = 𝐵)))
2724, 26mpbird 166 . . . . . . . . 9 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → 𝐶𝐹𝐷)
28 funbrfv 5525 . . . . . . . . 9 (Fun 𝐹 → (𝐶𝐹𝐷 → (𝐹𝐶) = 𝐷))
298, 27, 28sylc 62 . . . . . . . 8 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐹𝐶) = 𝐷)
3014, 29eqeq12d 2180 . . . . . . 7 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → ((𝐹𝐴) = (𝐹𝐶) ↔ 𝐵 = 𝐷))
317, 30syl5ib 153 . . . . . 6 (((𝜑 ∧ Fun 𝐹) ∧ (𝑥𝑋𝑦𝑋)) → (𝐴 = 𝐶𝐵 = 𝐷))
3231anassrs 398 . . . . 5 ((((𝜑 ∧ Fun 𝐹) ∧ 𝑥𝑋) ∧ 𝑦𝑋) → (𝐴 = 𝐶𝐵 = 𝐷))
3332ralrimiva 2539 . . . 4 (((𝜑 ∧ Fun 𝐹) ∧ 𝑥𝑋) → ∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷))
3433exp31 362 . . 3 (𝜑 → (Fun 𝐹 → (𝑥𝑋 → ∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷))))
351, 6, 34ralrimd 2544 . 2 (𝜑 → (Fun 𝐹 → ∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷)))
362, 9, 10fliftel 5761 . . . . . . . . 9 (𝜑 → (𝑧𝐹𝑢 ↔ ∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵)))
372, 9, 10fliftel 5761 . . . . . . . . . 10 (𝜑 → (𝑧𝐹𝑣 ↔ ∃𝑥𝑋 (𝑧 = 𝐴𝑣 = 𝐵)))
3818eqeq2d 2177 . . . . . . . . . . . 12 (𝑥 = 𝑦 → (𝑧 = 𝐴𝑧 = 𝐶))
3920eqeq2d 2177 . . . . . . . . . . . 12 (𝑥 = 𝑦 → (𝑣 = 𝐵𝑣 = 𝐷))
4038, 39anbi12d 465 . . . . . . . . . . 11 (𝑥 = 𝑦 → ((𝑧 = 𝐴𝑣 = 𝐵) ↔ (𝑧 = 𝐶𝑣 = 𝐷)))
4140cbvrexv 2693 . . . . . . . . . 10 (∃𝑥𝑋 (𝑧 = 𝐴𝑣 = 𝐵) ↔ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷))
4237, 41bitrdi 195 . . . . . . . . 9 (𝜑 → (𝑧𝐹𝑣 ↔ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷)))
4336, 42anbi12d 465 . . . . . . . 8 (𝜑 → ((𝑧𝐹𝑢𝑧𝐹𝑣) ↔ (∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷))))
4443biimpd 143 . . . . . . 7 (𝜑 → ((𝑧𝐹𝑢𝑧𝐹𝑣) → (∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷))))
45 reeanv 2635 . . . . . . . 8 (∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) ↔ (∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷)))
46 r19.29 2603 . . . . . . . . . 10 ((∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → ∃𝑥𝑋 (∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))))
47 r19.29 2603 . . . . . . . . . . . 12 ((∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → ∃𝑦𝑋 ((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))))
48 eqtr2 2184 . . . . . . . . . . . . . . . . 17 ((𝑧 = 𝐴𝑧 = 𝐶) → 𝐴 = 𝐶)
4948ad2ant2r 501 . . . . . . . . . . . . . . . 16 (((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) → 𝐴 = 𝐶)
5049imim1i 60 . . . . . . . . . . . . . . 15 ((𝐴 = 𝐶𝐵 = 𝐷) → (((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) → 𝐵 = 𝐷))
5150imp 123 . . . . . . . . . . . . . 14 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝐵 = 𝐷)
52 simprlr 528 . . . . . . . . . . . . . 14 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝐵)
53 simprrr 530 . . . . . . . . . . . . . 14 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑣 = 𝐷)
5451, 52, 533eqtr4d 2208 . . . . . . . . . . . . 13 (((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5554rexlimivw 2579 . . . . . . . . . . . 12 (∃𝑦𝑋 ((𝐴 = 𝐶𝐵 = 𝐷) ∧ ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5647, 55syl 14 . . . . . . . . . . 11 ((∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5756rexlimivw 2579 . . . . . . . . . 10 (∃𝑥𝑋 (∀𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5846, 57syl 14 . . . . . . . . 9 ((∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) ∧ ∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷))) → 𝑢 = 𝑣)
5958ex 114 . . . . . . . 8 (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → (∃𝑥𝑋𝑦𝑋 ((𝑧 = 𝐴𝑢 = 𝐵) ∧ (𝑧 = 𝐶𝑣 = 𝐷)) → 𝑢 = 𝑣))
6045, 59syl5bir 152 . . . . . . 7 (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ((∃𝑥𝑋 (𝑧 = 𝐴𝑢 = 𝐵) ∧ ∃𝑦𝑋 (𝑧 = 𝐶𝑣 = 𝐷)) → 𝑢 = 𝑣))
6144, 60syl9 72 . . . . . 6 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
6261alrimdv 1864 . . . . 5 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ∀𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
6362alrimdv 1864 . . . 4 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ∀𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
6463alrimdv 1864 . . 3 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
652, 9, 10fliftrel 5760 . . . . 5 (𝜑𝐹 ⊆ (𝑅 × 𝑆))
66 relxp 4713 . . . . 5 Rel (𝑅 × 𝑆)
67 relss 4691 . . . . 5 (𝐹 ⊆ (𝑅 × 𝑆) → (Rel (𝑅 × 𝑆) → Rel 𝐹))
6865, 66, 67mpisyl 1434 . . . 4 (𝜑 → Rel 𝐹)
69 dffun2 5198 . . . . 5 (Fun 𝐹 ↔ (Rel 𝐹 ∧ ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
7069baib 909 . . . 4 (Rel 𝐹 → (Fun 𝐹 ↔ ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
7168, 70syl 14 . . 3 (𝜑 → (Fun 𝐹 ↔ ∀𝑧𝑢𝑣((𝑧𝐹𝑢𝑧𝐹𝑣) → 𝑢 = 𝑣)))
7264, 71sylibrd 168 . 2 (𝜑 → (∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷) → Fun 𝐹))
7335, 72impbid 128 1 (𝜑 → (Fun 𝐹 ↔ ∀𝑥𝑋𝑦𝑋 (𝐴 = 𝐶𝐵 = 𝐷)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  wal 1341   = wceq 1343  wcel 2136  wral 2444  wrex 2445  wss 3116  cop 3579   class class class wbr 3982  cmpt 4043   × cxp 4602  ran crn 4605  Rel wrel 4609  Fun wfun 5182  cfv 5188
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-mpt 4045  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-fv 5196
This theorem is referenced by:  fliftfund  5765  fliftfuns  5766  qliftfun  6583
  Copyright terms: Public domain W3C validator