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

Theorem cnvoprab 6139
Description: The converse of a class abstraction of nested ordered pairs. (Contributed by Thierry Arnoux, 17-Aug-2017.)
Hypotheses
Ref Expression
cnvoprab.x 𝑥𝜓
cnvoprab.y 𝑦𝜓
cnvoprab.1 (𝑎 = ⟨𝑥, 𝑦⟩ → (𝜓𝜑))
cnvoprab.2 (𝜓𝑎 ∈ (V × V))
Assertion
Ref Expression
cnvoprab {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨𝑧, 𝑎⟩ ∣ 𝜓}
Distinct variable groups:   𝑥,𝑎,𝑦,𝑧   𝜑,𝑎
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)   𝜓(𝑥,𝑦,𝑧,𝑎)

Proof of Theorem cnvoprab
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 excom 1643 . . . . . 6 (∃𝑎𝑧(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) ↔ ∃𝑧𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
2 nfv 1509 . . . . . . . . . . 11 𝑥 𝑤 = ⟨𝑎, 𝑧
3 cnvoprab.x . . . . . . . . . . 11 𝑥𝜓
42, 3nfan 1545 . . . . . . . . . 10 𝑥(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)
54nfex 1617 . . . . . . . . 9 𝑥𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)
6 nfv 1509 . . . . . . . . . . . 12 𝑦 𝑤 = ⟨𝑎, 𝑧
7 cnvoprab.y . . . . . . . . . . . 12 𝑦𝜓
86, 7nfan 1545 . . . . . . . . . . 11 𝑦(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)
98nfex 1617 . . . . . . . . . 10 𝑦𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)
10 vex 2692 . . . . . . . . . . . 12 𝑥 ∈ V
11 vex 2692 . . . . . . . . . . . 12 𝑦 ∈ V
1210, 11opex 4159 . . . . . . . . . . 11 𝑥, 𝑦⟩ ∈ V
13 opeq1 3713 . . . . . . . . . . . . 13 (𝑎 = ⟨𝑥, 𝑦⟩ → ⟨𝑎, 𝑧⟩ = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩)
1413eqeq2d 2152 . . . . . . . . . . . 12 (𝑎 = ⟨𝑥, 𝑦⟩ → (𝑤 = ⟨𝑎, 𝑧⟩ ↔ 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩))
15 cnvoprab.1 . . . . . . . . . . . 12 (𝑎 = ⟨𝑥, 𝑦⟩ → (𝜓𝜑))
1614, 15anbi12d 465 . . . . . . . . . . 11 (𝑎 = ⟨𝑥, 𝑦⟩ → ((𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) ↔ (𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)))
1712, 16spcev 2784 . . . . . . . . . 10 ((𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) → ∃𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
189, 17exlimi 1574 . . . . . . . . 9 (∃𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) → ∃𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
195, 18exlimi 1574 . . . . . . . 8 (∃𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) → ∃𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
20 cnvoprab.2 . . . . . . . . . . 11 (𝜓𝑎 ∈ (V × V))
2120adantl 275 . . . . . . . . . 10 ((𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) → 𝑎 ∈ (V × V))
22 vex 2692 . . . . . . . . . . . 12 𝑎 ∈ V
23 1stexg 6073 . . . . . . . . . . . 12 (𝑎 ∈ V → (1st𝑎) ∈ V)
2422, 23ax-mp 5 . . . . . . . . . . 11 (1st𝑎) ∈ V
25 2ndexg 6074 . . . . . . . . . . . 12 (𝑎 ∈ V → (2nd𝑎) ∈ V)
2622, 25ax-mp 5 . . . . . . . . . . 11 (2nd𝑎) ∈ V
27 eqcom 2142 . . . . . . . . . . . . . . 15 ((1st𝑎) = 𝑥𝑥 = (1st𝑎))
28 eqcom 2142 . . . . . . . . . . . . . . 15 ((2nd𝑎) = 𝑦𝑦 = (2nd𝑎))
2927, 28anbi12i 456 . . . . . . . . . . . . . 14 (((1st𝑎) = 𝑥 ∧ (2nd𝑎) = 𝑦) ↔ (𝑥 = (1st𝑎) ∧ 𝑦 = (2nd𝑎)))
30 eqopi 6078 . . . . . . . . . . . . . 14 ((𝑎 ∈ (V × V) ∧ ((1st𝑎) = 𝑥 ∧ (2nd𝑎) = 𝑦)) → 𝑎 = ⟨𝑥, 𝑦⟩)
3129, 30sylan2br 286 . . . . . . . . . . . . 13 ((𝑎 ∈ (V × V) ∧ (𝑥 = (1st𝑎) ∧ 𝑦 = (2nd𝑎))) → 𝑎 = ⟨𝑥, 𝑦⟩)
3216bicomd 140 . . . . . . . . . . . . 13 (𝑎 = ⟨𝑥, 𝑦⟩ → ((𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ (𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)))
3331, 32syl 14 . . . . . . . . . . . 12 ((𝑎 ∈ (V × V) ∧ (𝑥 = (1st𝑎) ∧ 𝑦 = (2nd𝑎))) → ((𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ (𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)))
344, 8, 33spc2ed 6138 . . . . . . . . . . 11 ((𝑎 ∈ (V × V) ∧ ((1st𝑎) ∈ V ∧ (2nd𝑎) ∈ V)) → ((𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) → ∃𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)))
3524, 26, 34mpanr12 436 . . . . . . . . . 10 (𝑎 ∈ (V × V) → ((𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) → ∃𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)))
3621, 35mpcom 36 . . . . . . . . 9 ((𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) → ∃𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑))
3736exlimiv 1578 . . . . . . . 8 (∃𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓) → ∃𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑))
3819, 37impbii 125 . . . . . . 7 (∃𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
3938exbii 1585 . . . . . 6 (∃𝑧𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑧𝑎(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
40 exrot3 1669 . . . . . 6 (∃𝑧𝑥𝑦(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑥𝑦𝑧(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑))
411, 39, 403bitr2ri 208 . . . . 5 (∃𝑥𝑦𝑧(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑎𝑧(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓))
4241abbii 2256 . . . 4 {𝑤 ∣ ∃𝑥𝑦𝑧(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)} = {𝑤 ∣ ∃𝑎𝑧(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)}
43 df-oprab 5786 . . . 4 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {𝑤 ∣ ∃𝑥𝑦𝑧(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)}
44 df-opab 3998 . . . 4 {⟨𝑎, 𝑧⟩ ∣ 𝜓} = {𝑤 ∣ ∃𝑎𝑧(𝑤 = ⟨𝑎, 𝑧⟩ ∧ 𝜓)}
4542, 43, 443eqtr4ri 2172 . . 3 {⟨𝑎, 𝑧⟩ ∣ 𝜓} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}
4645cnveqi 4722 . 2 {⟨𝑎, 𝑧⟩ ∣ 𝜓} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}
47 cnvopab 4948 . 2 {⟨𝑎, 𝑧⟩ ∣ 𝜓} = {⟨𝑧, 𝑎⟩ ∣ 𝜓}
4846, 47eqtr3i 2163 1 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨𝑧, 𝑎⟩ ∣ 𝜓}
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104   = wceq 1332  wnf 1437  wex 1469  wcel 1481  {cab 2126  Vcvv 2689  cop 3535  {copab 3996   × cxp 4545  ccnv 4546  cfv 5131  {coprab 5783  1st c1st 6044  2nd c2nd 6045
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 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1483  ax-10 1484  ax-11 1485  ax-i12 1486  ax-bndl 1487  ax-4 1488  ax-13 1492  ax-14 1493  ax-17 1507  ax-i9 1511  ax-ial 1515  ax-i5r 1516  ax-ext 2122  ax-sep 4054  ax-pow 4106  ax-pr 4139  ax-un 4363
This theorem depends on definitions:  df-bi 116  df-3an 965  df-tru 1335  df-nf 1438  df-sb 1737  df-eu 2003  df-mo 2004  df-clab 2127  df-cleq 2133  df-clel 2136  df-nfc 2271  df-ral 2422  df-rex 2423  df-v 2691  df-sbc 2914  df-un 3080  df-in 3082  df-ss 3089  df-pw 3517  df-sn 3538  df-pr 3539  df-op 3541  df-uni 3745  df-br 3938  df-opab 3998  df-mpt 3999  df-id 4223  df-xp 4553  df-rel 4554  df-cnv 4555  df-co 4556  df-dm 4557  df-rn 4558  df-iota 5096  df-fun 5133  df-fn 5134  df-f 5135  df-fo 5137  df-fv 5139  df-oprab 5786  df-1st 6046  df-2nd 6047
This theorem is referenced by:  f1od2  6140
  Copyright terms: Public domain W3C validator