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 35630
Description: Characterize a ternary relation over a range Cartesian product. Together with xrnss3v 35628, 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 35627 . . . 4 (𝑅𝑆) = (((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))
21breqi 5075 . . 3 (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩)
32a1i 11 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴(((1st ↾ (V × V)) ∘ 𝑅) ∩ ((2nd ↾ (V × V)) ∘ 𝑆))⟨𝐵, 𝐶⟩))
4 brin 5121 . . 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 5359 . . . . . 6 𝐵, 𝐶⟩ ∈ V
7 brcog 5740 . . . . . 6 ((𝐴𝑉 ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
86, 7mpan2 689 . . . . 5 (𝐴𝑉 → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
983ad2ant1 1129 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ ∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩)))
10 brcnvg 5753 . . . . . . . . 9 ((𝑥 ∈ V ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥))
116, 10mpan2 689 . . . . . . . 8 (𝑥 ∈ V → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥))
1211elv 3502 . . . . . . 7 (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥)
13 opelvvg 5598 . . . . . . . . . . 11 ((𝐵𝑊𝐶𝑋) → ⟨𝐵, 𝐶⟩ ∈ (V × V))
1413biantrurd 535 . . . . . . . . . 10 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩1st 𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥)))
15 brres 5863 . . . . . . . . . . 11 (𝑥 ∈ V → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥)))
1615elv 3502 . . . . . . . . . 10 (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩1st 𝑥))
1714, 16syl6rbbr 292 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥 ↔ ⟨𝐵, 𝐶⟩1st 𝑥))
18 br1steqg 7714 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩1st 𝑥𝑥 = 𝐵))
1917, 18bitrd 281 . . . . . . . 8 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥𝑥 = 𝐵))
20193adant1 1126 . . . . . . 7 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(1st ↾ (V × V))𝑥𝑥 = 𝐵))
2112, 20syl5bb 285 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ 𝑥 = 𝐵))
2221anbi1cd 635 . . . . 5 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ (𝑥 = 𝐵𝐴𝑅𝑥)))
2322exbidv 1921 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥(𝐴𝑅𝑥𝑥(1st ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ ∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥)))
24 breq2 5073 . . . . . 6 (𝑥 = 𝐵 → (𝐴𝑅𝑥𝐴𝑅𝐵))
2524ceqsexgv 3650 . . . . 5 (𝐵𝑊 → (∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥) ↔ 𝐴𝑅𝐵))
26253ad2ant2 1130 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥(𝑥 = 𝐵𝐴𝑅𝑥) ↔ 𝐴𝑅𝐵))
279, 23, 263bitrd 307 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ↔ 𝐴𝑅𝐵))
28 brcog 5740 . . . . . 6 ((𝐴𝑉 ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
296, 28mpan2 689 . . . . 5 (𝐴𝑉 → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
30293ad2ant1 1129 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ ∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩)))
31 brcnvg 5753 . . . . . . . . 9 ((𝑦 ∈ V ∧ ⟨𝐵, 𝐶⟩ ∈ V) → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦))
326, 31mpan2 689 . . . . . . . 8 (𝑦 ∈ V → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦))
3332elv 3502 . . . . . . 7 (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ ⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦)
3413biantrurd 535 . . . . . . . . . 10 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩2nd 𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦)))
35 brres 5863 . . . . . . . . . . 11 (𝑦 ∈ V → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦)))
3635elv 3502 . . . . . . . . . 10 (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ (⟨𝐵, 𝐶⟩ ∈ (V × V) ∧ ⟨𝐵, 𝐶⟩2nd 𝑦))
3734, 36syl6rbbr 292 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦 ↔ ⟨𝐵, 𝐶⟩2nd 𝑦))
38 br2ndeqg 7715 . . . . . . . . 9 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩2nd 𝑦𝑦 = 𝐶))
3937, 38bitrd 281 . . . . . . . 8 ((𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦𝑦 = 𝐶))
40393adant1 1126 . . . . . . 7 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (⟨𝐵, 𝐶⟩(2nd ↾ (V × V))𝑦𝑦 = 𝐶))
4133, 40syl5bb 285 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩ ↔ 𝑦 = 𝐶))
4241anbi1cd 635 . . . . 5 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ (𝑦 = 𝐶𝐴𝑆𝑦)))
4342exbidv 1921 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑦(𝐴𝑆𝑦𝑦(2nd ↾ (V × V))⟨𝐵, 𝐶⟩) ↔ ∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦)))
44 breq2 5073 . . . . . 6 (𝑦 = 𝐶 → (𝐴𝑆𝑦𝐴𝑆𝐶))
4544ceqsexgv 3650 . . . . 5 (𝐶𝑋 → (∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦) ↔ 𝐴𝑆𝐶))
46453ad2ant3 1131 . . . 4 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑦(𝑦 = 𝐶𝐴𝑆𝑦) ↔ 𝐴𝑆𝐶))
4730, 43, 463bitrd 307 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩ ↔ 𝐴𝑆𝐶))
4827, 47anbi12d 632 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((𝐴((1st ↾ (V × V)) ∘ 𝑅)⟨𝐵, 𝐶⟩ ∧ 𝐴((2nd ↾ (V × V)) ∘ 𝑆)⟨𝐵, 𝐶⟩) ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))
493, 5, 483bitrd 307 1 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐴(𝑅𝑆)⟨𝐵, 𝐶⟩ ↔ (𝐴𝑅𝐵𝐴𝑆𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  w3a 1083   = wceq 1536  wex 1779  wcel 2113  Vcvv 3497  cin 3938  cop 4576   class class class wbr 5069   × cxp 5556  ccnv 5557  cres 5560  ccom 5562  1st c1st 7690  2nd c2nd 7691  cxrn 35456
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2796  ax-sep 5206  ax-nul 5213  ax-pow 5269  ax-pr 5333  ax-un 7464
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2966  df-ral 3146  df-rex 3147  df-rab 3150  df-v 3499  df-sbc 3776  df-dif 3942  df-un 3944  df-in 3946  df-ss 3955  df-nul 4295  df-if 4471  df-sn 4571  df-pr 4573  df-op 4577  df-uni 4842  df-br 5070  df-opab 5132  df-mpt 5150  df-id 5463  df-xp 5564  df-rel 5565  df-cnv 5566  df-co 5567  df-dm 5568  df-rn 5569  df-res 5570  df-iota 6317  df-fun 6360  df-fn 6361  df-f 6362  df-fo 6364  df-fv 6366  df-1st 7692  df-2nd 7693  df-xrn 35627
This theorem is referenced by:  brxrn2  35631  dfxrn2  35632  brin2  35661  br1cossxrnres  35692
  Copyright terms: Public domain W3C validator