Metamath Proof Explorer


Theorem brxrn

Description: Characterize a ternary relation over a range Cartesian product. Together with xrnss3v , this characterizes elementhood in a range cross. (Contributed by Peter Mazsa, 27-Jun-2021)

Ref Expression
Assertion brxrn AVBWCXARSBCARBASC

Proof

Step Hyp Ref Expression
1 df-xrn RS=1stV×V-1R2ndV×V-1S
2 1 breqi ARSBCA1stV×V-1R2ndV×V-1SBC
3 2 a1i AVBWCXARSBCA1stV×V-1R2ndV×V-1SBC
4 brin A1stV×V-1R2ndV×V-1SBCA1stV×V-1RBCA2ndV×V-1SBC
5 4 a1i AVBWCXA1stV×V-1R2ndV×V-1SBCA1stV×V-1RBCA2ndV×V-1SBC
6 opex BCV
7 brcog AVBCVA1stV×V-1RBCxARxx1stV×V-1BC
8 6 7 mpan2 AVA1stV×V-1RBCxARxx1stV×V-1BC
9 8 3ad2ant1 AVBWCXA1stV×V-1RBCxARxx1stV×V-1BC
10 brcnvg xVBCVx1stV×V-1BCBC1stV×Vx
11 6 10 mpan2 xVx1stV×V-1BCBC1stV×Vx
12 11 elv x1stV×V-1BCBC1stV×Vx
13 brres xVBC1stV×VxBCV×VBC1stx
14 13 elv BC1stV×VxBCV×VBC1stx
15 opelvvg BWCXBCV×V
16 15 biantrurd BWCXBC1stxBCV×VBC1stx
17 14 16 bitr4id BWCXBC1stV×VxBC1stx
18 br1steqg BWCXBC1stxx=B
19 17 18 bitrd BWCXBC1stV×Vxx=B
20 19 3adant1 AVBWCXBC1stV×Vxx=B
21 12 20 syl5bb AVBWCXx1stV×V-1BCx=B
22 21 anbi1cd AVBWCXARxx1stV×V-1BCx=BARx
23 22 exbidv AVBWCXxARxx1stV×V-1BCxx=BARx
24 breq2 x=BARxARB
25 24 ceqsexgv BWxx=BARxARB
26 25 3ad2ant2 AVBWCXxx=BARxARB
27 9 23 26 3bitrd AVBWCXA1stV×V-1RBCARB
28 brcog AVBCVA2ndV×V-1SBCyASyy2ndV×V-1BC
29 6 28 mpan2 AVA2ndV×V-1SBCyASyy2ndV×V-1BC
30 29 3ad2ant1 AVBWCXA2ndV×V-1SBCyASyy2ndV×V-1BC
31 brcnvg yVBCVy2ndV×V-1BCBC2ndV×Vy
32 6 31 mpan2 yVy2ndV×V-1BCBC2ndV×Vy
33 32 elv y2ndV×V-1BCBC2ndV×Vy
34 brres yVBC2ndV×VyBCV×VBC2ndy
35 34 elv BC2ndV×VyBCV×VBC2ndy
36 15 biantrurd BWCXBC2ndyBCV×VBC2ndy
37 35 36 bitr4id BWCXBC2ndV×VyBC2ndy
38 br2ndeqg BWCXBC2ndyy=C
39 37 38 bitrd BWCXBC2ndV×Vyy=C
40 39 3adant1 AVBWCXBC2ndV×Vyy=C
41 33 40 syl5bb AVBWCXy2ndV×V-1BCy=C
42 41 anbi1cd AVBWCXASyy2ndV×V-1BCy=CASy
43 42 exbidv AVBWCXyASyy2ndV×V-1BCyy=CASy
44 breq2 y=CASyASC
45 44 ceqsexgv CXyy=CASyASC
46 45 3ad2ant3 AVBWCXyy=CASyASC
47 30 43 46 3bitrd AVBWCXA2ndV×V-1SBCASC
48 27 47 anbi12d AVBWCXA1stV×V-1RBCA2ndV×V-1SBCARBASC
49 3 5 48 3bitrd AVBWCXARSBCARBASC