Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  xpord2pred Structured version   Visualization version   GIF version

Theorem xpord2pred 33792
Description: Calculate the predecessor class in frxp2 33791. (Contributed by Scott Fenton, 22-Aug-2024.)
Hypothesis
Ref Expression
xpord2.1 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦))}
Assertion
Ref Expression
xpord2pred ((𝑋𝐴𝑌𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑌⟩) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑌) ∪ {𝑌})) ∖ {⟨𝑋, 𝑌⟩}))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑅,𝑦   𝑥,𝑆,𝑦
Allowed substitution hints:   𝑇(𝑥,𝑦)   𝑋(𝑥,𝑦)   𝑌(𝑥,𝑦)

Proof of Theorem xpord2pred
Dummy variables 𝑎 𝑏 𝑐 𝑑 𝑒 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opeq1 4804 . . . 4 (𝑎 = 𝑋 → ⟨𝑎, 𝑏⟩ = ⟨𝑋, 𝑏⟩)
2 predeq3 6206 . . . 4 (⟨𝑎, 𝑏⟩ = ⟨𝑋, 𝑏⟩ → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑏⟩))
31, 2syl 17 . . 3 (𝑎 = 𝑋 → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑏⟩))
4 predeq3 6206 . . . . . 6 (𝑎 = 𝑋 → Pred(𝑅, 𝐴, 𝑎) = Pred(𝑅, 𝐴, 𝑋))
5 sneq 4571 . . . . . 6 (𝑎 = 𝑋 → {𝑎} = {𝑋})
64, 5uneq12d 4098 . . . . 5 (𝑎 = 𝑋 → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) = (Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}))
76xpeq1d 5618 . . . 4 (𝑎 = 𝑋 → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) = ((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})))
81sneqd 4573 . . . 4 (𝑎 = 𝑋 → {⟨𝑎, 𝑏⟩} = {⟨𝑋, 𝑏⟩})
97, 8difeq12d 4058 . . 3 (𝑎 = 𝑋 → (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑋, 𝑏⟩}))
103, 9eqeq12d 2754 . 2 (𝑎 = 𝑋 → (Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ↔ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑋, 𝑏⟩})))
11 opeq2 4805 . . . 4 (𝑏 = 𝑌 → ⟨𝑋, 𝑏⟩ = ⟨𝑋, 𝑌⟩)
12 predeq3 6206 . . . 4 (⟨𝑋, 𝑏⟩ = ⟨𝑋, 𝑌⟩ → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑏⟩) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑌⟩))
1311, 12syl 17 . . 3 (𝑏 = 𝑌 → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑏⟩) = Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑌⟩))
14 predeq3 6206 . . . . . 6 (𝑏 = 𝑌 → Pred(𝑆, 𝐵, 𝑏) = Pred(𝑆, 𝐵, 𝑌))
15 sneq 4571 . . . . . 6 (𝑏 = 𝑌 → {𝑏} = {𝑌})
1614, 15uneq12d 4098 . . . . 5 (𝑏 = 𝑌 → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) = (Pred(𝑆, 𝐵, 𝑌) ∪ {𝑌}))
1716xpeq2d 5619 . . . 4 (𝑏 = 𝑌 → ((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) = ((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑌) ∪ {𝑌})))
1811sneqd 4573 . . . 4 (𝑏 = 𝑌 → {⟨𝑋, 𝑏⟩} = {⟨𝑋, 𝑌⟩})
1917, 18difeq12d 4058 . . 3 (𝑏 = 𝑌 → (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑋, 𝑏⟩}) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑌) ∪ {𝑌})) ∖ {⟨𝑋, 𝑌⟩}))
2013, 19eqeq12d 2754 . 2 (𝑏 = 𝑌 → (Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑋, 𝑏⟩}) ↔ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑌⟩) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑌) ∪ {𝑌})) ∖ {⟨𝑋, 𝑌⟩})))
21 predel 6223 . . . . 5 (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) → 𝑒 ∈ (𝐴 × 𝐵))
2221a1i 11 . . . 4 ((𝑎𝐴𝑏𝐵) → (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) → 𝑒 ∈ (𝐴 × 𝐵)))
23 eldifi 4061 . . . . 5 (𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) → 𝑒 ∈ ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})))
24 predss 6210 . . . . . . . . 9 Pred(𝑅, 𝐴, 𝑎) ⊆ 𝐴
2524a1i 11 . . . . . . . 8 (𝑎𝐴 → Pred(𝑅, 𝐴, 𝑎) ⊆ 𝐴)
26 snssi 4741 . . . . . . . 8 (𝑎𝐴 → {𝑎} ⊆ 𝐴)
2725, 26unssd 4120 . . . . . . 7 (𝑎𝐴 → (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ⊆ 𝐴)
28 predss 6210 . . . . . . . . 9 Pred(𝑆, 𝐵, 𝑏) ⊆ 𝐵
2928a1i 11 . . . . . . . 8 (𝑏𝐵 → Pred(𝑆, 𝐵, 𝑏) ⊆ 𝐵)
30 snssi 4741 . . . . . . . 8 (𝑏𝐵 → {𝑏} ⊆ 𝐵)
3129, 30unssd 4120 . . . . . . 7 (𝑏𝐵 → (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ⊆ 𝐵)
32 xpss12 5604 . . . . . . 7 (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ⊆ 𝐴 ∧ (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ⊆ 𝐵) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ⊆ (𝐴 × 𝐵))
3327, 31, 32syl2an 596 . . . . . 6 ((𝑎𝐴𝑏𝐵) → ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ⊆ (𝐴 × 𝐵))
3433sseld 3920 . . . . 5 ((𝑎𝐴𝑏𝐵) → (𝑒 ∈ ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) → 𝑒 ∈ (𝐴 × 𝐵)))
3523, 34syl5 34 . . . 4 ((𝑎𝐴𝑏𝐵) → (𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) → 𝑒 ∈ (𝐴 × 𝐵)))
36 elxp2 5613 . . . . 5 (𝑒 ∈ (𝐴 × 𝐵) ↔ ∃𝑐𝐴𝑑𝐵 𝑒 = ⟨𝑐, 𝑑⟩)
37 opex 5379 . . . . . . . . 9 𝑎, 𝑏⟩ ∈ V
38 opex 5379 . . . . . . . . . 10 𝑐, 𝑑⟩ ∈ V
3938elpred 6219 . . . . . . . . 9 (⟨𝑎, 𝑏⟩ ∈ V → (⟨𝑐, 𝑑⟩ ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ (⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩)))
4037, 39ax-mp 5 . . . . . . . 8 (⟨𝑐, 𝑑⟩ ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ (⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩))
41 opelxpi 5626 . . . . . . . . . . 11 ((𝑐𝐴𝑑𝐵) → ⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵))
4241adantl 482 . . . . . . . . . 10 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → ⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵))
4342biantrurd 533 . . . . . . . . 9 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩ ↔ (⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩)))
44 xpord2.1 . . . . . . . . . . 11 𝑇 = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝑦 ∈ (𝐴 × 𝐵) ∧ (((1st𝑥)𝑅(1st𝑦) ∨ (1st𝑥) = (1st𝑦)) ∧ ((2nd𝑥)𝑆(2nd𝑦) ∨ (2nd𝑥) = (2nd𝑦)) ∧ 𝑥𝑦))}
4544xpord2lem 33789 . . . . . . . . . 10 (⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩ ↔ ((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵) ∧ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))))
46 eldif 3897 . . . . . . . . . . . . 13 (⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ↔ (⟨𝑐, 𝑑⟩ ∈ ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∧ ¬ ⟨𝑐, 𝑑⟩ ∈ {⟨𝑎, 𝑏⟩}))
47 opelxp 5625 . . . . . . . . . . . . . . 15 (⟨𝑐, 𝑑⟩ ∈ ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ↔ (𝑐 ∈ (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∧ 𝑑 ∈ (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})))
48 elun 4083 . . . . . . . . . . . . . . . . 17 (𝑐 ∈ (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ↔ (𝑐 ∈ Pred(𝑅, 𝐴, 𝑎) ∨ 𝑐 ∈ {𝑎}))
49 vex 3436 . . . . . . . . . . . . . . . . . . . 20 𝑐 ∈ V
5049elpred 6219 . . . . . . . . . . . . . . . . . . 19 (𝑎 ∈ V → (𝑐 ∈ Pred(𝑅, 𝐴, 𝑎) ↔ (𝑐𝐴𝑐𝑅𝑎)))
5150elv 3438 . . . . . . . . . . . . . . . . . 18 (𝑐 ∈ Pred(𝑅, 𝐴, 𝑎) ↔ (𝑐𝐴𝑐𝑅𝑎))
52 velsn 4577 . . . . . . . . . . . . . . . . . 18 (𝑐 ∈ {𝑎} ↔ 𝑐 = 𝑎)
5351, 52orbi12i 912 . . . . . . . . . . . . . . . . 17 ((𝑐 ∈ Pred(𝑅, 𝐴, 𝑎) ∨ 𝑐 ∈ {𝑎}) ↔ ((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎))
5448, 53bitri 274 . . . . . . . . . . . . . . . 16 (𝑐 ∈ (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ↔ ((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎))
55 elun 4083 . . . . . . . . . . . . . . . . 17 (𝑑 ∈ (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ↔ (𝑑 ∈ Pred(𝑆, 𝐵, 𝑏) ∨ 𝑑 ∈ {𝑏}))
56 vex 3436 . . . . . . . . . . . . . . . . . . . 20 𝑑 ∈ V
5756elpred 6219 . . . . . . . . . . . . . . . . . . 19 (𝑏 ∈ V → (𝑑 ∈ Pred(𝑆, 𝐵, 𝑏) ↔ (𝑑𝐵𝑑𝑆𝑏)))
5857elv 3438 . . . . . . . . . . . . . . . . . 18 (𝑑 ∈ Pred(𝑆, 𝐵, 𝑏) ↔ (𝑑𝐵𝑑𝑆𝑏))
59 velsn 4577 . . . . . . . . . . . . . . . . . 18 (𝑑 ∈ {𝑏} ↔ 𝑑 = 𝑏)
6058, 59orbi12i 912 . . . . . . . . . . . . . . . . 17 ((𝑑 ∈ Pred(𝑆, 𝐵, 𝑏) ∨ 𝑑 ∈ {𝑏}) ↔ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏))
6155, 60bitri 274 . . . . . . . . . . . . . . . 16 (𝑑 ∈ (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏}) ↔ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏))
6254, 61anbi12i 627 . . . . . . . . . . . . . . 15 ((𝑐 ∈ (Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) ∧ 𝑑 ∈ (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ↔ (((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)))
6347, 62bitri 274 . . . . . . . . . . . . . 14 (⟨𝑐, 𝑑⟩ ∈ ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ↔ (((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)))
6438elsn 4576 . . . . . . . . . . . . . . . 16 (⟨𝑐, 𝑑⟩ ∈ {⟨𝑎, 𝑏⟩} ↔ ⟨𝑐, 𝑑⟩ = ⟨𝑎, 𝑏⟩)
6564notbii 320 . . . . . . . . . . . . . . 15 (¬ ⟨𝑐, 𝑑⟩ ∈ {⟨𝑎, 𝑏⟩} ↔ ¬ ⟨𝑐, 𝑑⟩ = ⟨𝑎, 𝑏⟩)
66 df-ne 2944 . . . . . . . . . . . . . . 15 (⟨𝑐, 𝑑⟩ ≠ ⟨𝑎, 𝑏⟩ ↔ ¬ ⟨𝑐, 𝑑⟩ = ⟨𝑎, 𝑏⟩)
6749, 56opthne 5397 . . . . . . . . . . . . . . 15 (⟨𝑐, 𝑑⟩ ≠ ⟨𝑎, 𝑏⟩ ↔ (𝑐𝑎𝑑𝑏))
6865, 66, 673bitr2i 299 . . . . . . . . . . . . . 14 (¬ ⟨𝑐, 𝑑⟩ ∈ {⟨𝑎, 𝑏⟩} ↔ (𝑐𝑎𝑑𝑏))
6963, 68anbi12i 627 . . . . . . . . . . . . 13 ((⟨𝑐, 𝑑⟩ ∈ ((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∧ ¬ ⟨𝑐, 𝑑⟩ ∈ {⟨𝑎, 𝑏⟩}) ↔ ((((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)) ∧ (𝑐𝑎𝑑𝑏)))
7046, 69bitri 274 . . . . . . . . . . . 12 (⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ↔ ((((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)) ∧ (𝑐𝑎𝑑𝑏)))
71 simprl 768 . . . . . . . . . . . . . . . 16 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → 𝑐𝐴)
7271biantrurd 533 . . . . . . . . . . . . . . 15 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (𝑐𝑅𝑎 ↔ (𝑐𝐴𝑐𝑅𝑎)))
7372orbi1d 914 . . . . . . . . . . . . . 14 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → ((𝑐𝑅𝑎𝑐 = 𝑎) ↔ ((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎)))
74 simprr 770 . . . . . . . . . . . . . . . 16 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → 𝑑𝐵)
7574biantrurd 533 . . . . . . . . . . . . . . 15 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (𝑑𝑆𝑏 ↔ (𝑑𝐵𝑑𝑆𝑏)))
7675orbi1d 914 . . . . . . . . . . . . . 14 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → ((𝑑𝑆𝑏𝑑 = 𝑏) ↔ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)))
7773, 763anbi12d 1436 . . . . . . . . . . . . 13 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏)) ↔ (((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))))
78 df-3an 1088 . . . . . . . . . . . . 13 ((((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏)) ↔ ((((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)) ∧ (𝑐𝑎𝑑𝑏)))
7977, 78bitr2di 288 . . . . . . . . . . . 12 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (((((𝑐𝐴𝑐𝑅𝑎) ∨ 𝑐 = 𝑎) ∧ ((𝑑𝐵𝑑𝑆𝑏) ∨ 𝑑 = 𝑏)) ∧ (𝑐𝑎𝑑𝑏)) ↔ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))))
8070, 79syl5bb 283 . . . . . . . . . . 11 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ↔ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))))
81 pm3.22 460 . . . . . . . . . . . . 13 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → ((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵)))
8281biantrurd 533 . . . . . . . . . . . 12 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏)) ↔ (((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵)) ∧ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏)))))
83 df-3an 1088 . . . . . . . . . . . 12 (((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵) ∧ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))) ↔ (((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵)) ∧ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))))
8482, 83bitr4di 289 . . . . . . . . . . 11 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏)) ↔ ((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵) ∧ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏)))))
8580, 84bitr2d 279 . . . . . . . . . 10 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (((𝑐𝐴𝑑𝐵) ∧ (𝑎𝐴𝑏𝐵) ∧ ((𝑐𝑅𝑎𝑐 = 𝑎) ∧ (𝑑𝑆𝑏𝑑 = 𝑏) ∧ (𝑐𝑎𝑑𝑏))) ↔ ⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})))
8645, 85syl5bb 283 . . . . . . . . 9 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩ ↔ ⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})))
8743, 86bitr3d 280 . . . . . . . 8 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → ((⟨𝑐, 𝑑⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑐, 𝑑𝑇𝑎, 𝑏⟩) ↔ ⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})))
8840, 87syl5bb 283 . . . . . . 7 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (⟨𝑐, 𝑑⟩ ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ ⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})))
89 eleq1 2826 . . . . . . . 8 (𝑒 = ⟨𝑐, 𝑑⟩ → (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ ⟨𝑐, 𝑑⟩ ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩)))
90 eleq1 2826 . . . . . . . 8 (𝑒 = ⟨𝑐, 𝑑⟩ → (𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}) ↔ ⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})))
9189, 90bibi12d 346 . . . . . . 7 (𝑒 = ⟨𝑐, 𝑑⟩ → ((𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ 𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})) ↔ (⟨𝑐, 𝑑⟩ ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ ⟨𝑐, 𝑑⟩ ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))))
9288, 91syl5ibrcom 246 . . . . . 6 (((𝑎𝐴𝑏𝐵) ∧ (𝑐𝐴𝑑𝐵)) → (𝑒 = ⟨𝑐, 𝑑⟩ → (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ 𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))))
9392rexlimdvva 3223 . . . . 5 ((𝑎𝐴𝑏𝐵) → (∃𝑐𝐴𝑑𝐵 𝑒 = ⟨𝑐, 𝑑⟩ → (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ 𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))))
9436, 93syl5bi 241 . . . 4 ((𝑎𝐴𝑏𝐵) → (𝑒 ∈ (𝐴 × 𝐵) → (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ 𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))))
9522, 35, 94pm5.21ndd 381 . . 3 ((𝑎𝐴𝑏𝐵) → (𝑒 ∈ Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) ↔ 𝑒 ∈ (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩})))
9695eqrdv 2736 . 2 ((𝑎𝐴𝑏𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑎, 𝑏⟩) = (((Pred(𝑅, 𝐴, 𝑎) ∪ {𝑎}) × (Pred(𝑆, 𝐵, 𝑏) ∪ {𝑏})) ∖ {⟨𝑎, 𝑏⟩}))
9710, 20, 96vtocl2ga 3514 1 ((𝑋𝐴𝑌𝐵) → Pred(𝑇, (𝐴 × 𝐵), ⟨𝑋, 𝑌⟩) = (((Pred(𝑅, 𝐴, 𝑋) ∪ {𝑋}) × (Pred(𝑆, 𝐵, 𝑌) ∪ {𝑌})) ∖ {⟨𝑋, 𝑌⟩}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  wne 2943  wrex 3065  Vcvv 3432  cdif 3884  cun 3885  wss 3887  {csn 4561  cop 4567   class class class wbr 5074  {copab 5136   × cxp 5587  Predcpred 6201  cfv 6433  1st c1st 7829  2nd c2nd 7830
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-ne 2944  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-ima 5602  df-pred 6202  df-iota 6391  df-fun 6435  df-fv 6441  df-1st 7831  df-2nd 7832
This theorem is referenced by:  sexp2  33793  xpord2ind  33794  on2recsov  33827  noxpordpred  34110
  Copyright terms: Public domain W3C validator