Users' Mathboxes Mathbox for Peter Mazsa < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  brxrn Structured version   Visualization version   GIF version

Theorem brxrn 36431
Description: Characterize a ternary relation over a range Cartesian product. Together with xrnss3v 36429, this characterizes elementhood in a range cross. (Contributed by Peter Mazsa, 27-Jun-2021.)
Assertion
Ref Expression
brxrn ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))

Proof of Theorem brxrn
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-xrn 36428 . . . 4 (𝑅𝑆) = (((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))
21breqi 5076 . . 3 (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩)
32a1i 11 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩))
4 brin 5122 . . 3 (𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩ ↔ (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ∧ 𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩))
54a1i 11 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩ ↔ (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ∧ 𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩)))
6 opex 5373 . . . . . 6 𝐵, 𝐶⟩ ∈ V
7 brcog 5764 . . . . . 6 ((𝐴𝑉 ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
86, 7mpan2 687 . . . . 5 (𝐴𝑉 → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
983ad2ant1 1131 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
10 brcnvg 5777 . . . . . . . . 9 ((𝑥 ∈ V ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥))
116, 10mpan2 687 . . . . . . . 8 (𝑥 ∈ V → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥))
1211elv 3428 . . . . . . 7 (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥)
13 brres 5887 . . . . . . . . . . 11 (𝑥 ∈ V → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥)))
1413elv 3428 . . . . . . . . . 10 (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥))
15 opelvvg 5620 . . . . . . . . . . 11 ((𝐵𝑊𝐶𝑋) → ⟨𝐵, 𝐶⟩ ∈ (V × V))
1615biantrurd 532 . . . . . . . . . 10 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩1st 𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥)))
1714, 16bitr4id 289 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ ⟨𝐵, 𝐶⟩1st 𝑥))
18 br1steqg 7826 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩1st 𝑥𝑥 = 𝐵))
1917, 18bitrd 278 . . . . . . . 8 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥𝑥 = 𝐵))
20193adant1 1128 . . . . . . 7 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥𝑥 = 𝐵))
2112, 20syl5bb 282 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ 𝑥 = 𝐵))
2221anbi1cd 633 . . . . 5 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ (𝑥 = 𝐵𝐴𝑅𝑥)))
2322exbidv 1925 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ ∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥)))
24 breq2 5074 . . . . . 6 (𝑥 = 𝐵 → (𝐴𝑅𝑥𝐴𝑅𝐵))
2524ceqsexgv 3576 . . . . 5 (𝐵𝑊 → (∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥) ↔ 𝐴𝑅𝐵))
26253ad2ant2 1132 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥) ↔ 𝐴𝑅𝐵))
279, 23, 263bitrd 304 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ 𝐴𝑅𝐵))
28 brcog 5764 . . . . . 6 ((𝐴𝑉 ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
296, 28mpan2 687 . . . . 5 (𝐴𝑉 → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
30293ad2ant1 1131 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
31 brcnvg 5777 . . . . . . . . 9 ((𝑦 ∈ V ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦))
326, 31mpan2 687 . . . . . . . 8 (𝑦 ∈ V → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦))
3332elv 3428 . . . . . . 7 (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦)
34 brres 5887 . . . . . . . . . . 11 (𝑦 ∈ V → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦)))
3534elv 3428 . . . . . . . . . 10 (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦))
3615biantrurd 532 . . . . . . . . . 10 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩2nd 𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦)))
3735, 36bitr4id 289 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ ⟨𝐵, 𝐶⟩2nd 𝑦))
38 br2ndeqg 7827 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩2nd 𝑦𝑦 = 𝐶))
3937, 38bitrd 278 . . . . . . . 8 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦𝑦 = 𝐶))
40393adant1 1128 . . . . . . 7 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦𝑦 = 𝐶))
4133, 40syl5bb 282 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ 𝑦 = 𝐶))
4241anbi1cd 633 . . . . 5 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ (𝑦 = 𝐶𝐴𝑆𝑦)))
4342exbidv 1925 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ ∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦)))
44 breq2 5074 . . . . . 6 (𝑦 = 𝐶 → (𝐴𝑆𝑦𝐴𝑆𝐶))
4544ceqsexgv 3576 . . . . 5 (𝐶𝑋 → (∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦) ↔ 𝐴𝑆𝐶))
46453ad2ant3 1133 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦) ↔ 𝐴𝑆𝐶))
4730, 43, 463bitrd 304 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴𝑆𝐶))
4827, 47anbi12d 630 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ∧ 𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩) ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))
493, 5, 483bitrd 304 1 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  Vcvv 3422  cin 3882  cop 4564   class class class wbr 5070   × cxp 5578  ccnv 5579  cres 5582  ccom 5584  1st c1st 7802  2nd c2nd 7803  cxrn 36259
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  ax-un 7566
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-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  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-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fo 6424  df-fv 6426  df-1st 7804  df-2nd 7805  df-xrn 36428
This theorem is referenced by:  brxrn2  36432  dfxrn2  36433  brin2  36462  br1cossxrnres  36493
  Copyright terms: Public domain W3C validator