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 36504
Description: Characterize a ternary relation over a range Cartesian product. Together with xrnss3v 36502, 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 36501 . . . 4 (𝑅𝑆) = (((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))
21breqi 5080 . . 3 (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩)
32a1i 11 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩))
4 brin 5126 . . 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 5379 . . . . . 6 𝐵, 𝐶⟩ ∈ V
7 brcog 5775 . . . . . 6 ((𝐴𝑉 ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
86, 7mpan2 688 . . . . 5 (𝐴𝑉 → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
983ad2ant1 1132 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
10 brcnvg 5788 . . . . . . . . 9 ((𝑥 ∈ V ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥))
116, 10mpan2 688 . . . . . . . 8 (𝑥 ∈ V → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥))
1211elv 3438 . . . . . . 7 (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥)
13 brres 5898 . . . . . . . . . . 11 (𝑥 ∈ V → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥)))
1413elv 3438 . . . . . . . . . 10 (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥))
15 opelvvg 5629 . . . . . . . . . . 11 ((𝐵𝑊𝐶𝑋) → ⟨𝐵, 𝐶⟩ ∈ (V × V))
1615biantrurd 533 . . . . . . . . . 10 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩1st 𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥)))
1714, 16bitr4id 290 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ ⟨𝐵, 𝐶⟩1st 𝑥))
18 br1steqg 7853 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩1st 𝑥𝑥 = 𝐵))
1917, 18bitrd 278 . . . . . . . 8 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥𝑥 = 𝐵))
20193adant1 1129 . . . . . . 7 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥𝑥 = 𝐵))
2112, 20syl5bb 283 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ 𝑥 = 𝐵))
2221anbi1cd 634 . . . . 5 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ (𝑥 = 𝐵𝐴𝑅𝑥)))
2322exbidv 1924 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ ∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥)))
24 breq2 5078 . . . . . 6 (𝑥 = 𝐵 → (𝐴𝑅𝑥𝐴𝑅𝐵))
2524ceqsexgv 3584 . . . . 5 (𝐵𝑊 → (∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥) ↔ 𝐴𝑅𝐵))
26253ad2ant2 1133 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥) ↔ 𝐴𝑅𝐵))
279, 23, 263bitrd 305 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ 𝐴𝑅𝐵))
28 brcog 5775 . . . . . 6 ((𝐴𝑉 ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
296, 28mpan2 688 . . . . 5 (𝐴𝑉 → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
30293ad2ant1 1132 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
31 brcnvg 5788 . . . . . . . . 9 ((𝑦 ∈ V ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦))
326, 31mpan2 688 . . . . . . . 8 (𝑦 ∈ V → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦))
3332elv 3438 . . . . . . 7 (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦)
34 brres 5898 . . . . . . . . . . 11 (𝑦 ∈ V → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦)))
3534elv 3438 . . . . . . . . . 10 (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦))
3615biantrurd 533 . . . . . . . . . 10 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩2nd 𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦)))
3735, 36bitr4id 290 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ ⟨𝐵, 𝐶⟩2nd 𝑦))
38 br2ndeqg 7854 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩2nd 𝑦𝑦 = 𝐶))
3937, 38bitrd 278 . . . . . . . 8 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦𝑦 = 𝐶))
40393adant1 1129 . . . . . . 7 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦𝑦 = 𝐶))
4133, 40syl5bb 283 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ 𝑦 = 𝐶))
4241anbi1cd 634 . . . . 5 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ (𝑦 = 𝐶𝐴𝑆𝑦)))
4342exbidv 1924 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ ∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦)))
44 breq2 5078 . . . . . 6 (𝑦 = 𝐶 → (𝐴𝑆𝑦𝐴𝑆𝐶))
4544ceqsexgv 3584 . . . . 5 (𝐶𝑋 → (∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦) ↔ 𝐴𝑆𝐶))
46453ad2ant3 1134 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦) ↔ 𝐴𝑆𝐶))
4730, 43, 463bitrd 305 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴𝑆𝐶))
4827, 47anbi12d 631 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ∧ 𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩) ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))
493, 5, 483bitrd 305 1 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wex 1782  wcel 2106  Vcvv 3432  cin 3886  cop 4567   class class class wbr 5074   × cxp 5587  ccnv 5588  cres 5591  ccom 5593  1st c1st 7829  2nd c2nd 7830  cxrn 36332
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-fo 6439  df-fv 6441  df-1st 7831  df-2nd 7832  df-xrn 36501
This theorem is referenced by:  brxrn2  36505  dfxrn2  36506  brin2  36535  br1cossxrnres  36566
  Copyright terms: Public domain W3C validator