MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  wemaplem3 Structured version   Visualization version   GIF version

Theorem wemaplem3 9237
Description: Lemma for wemapso 9240. Transitivity. (Contributed by Stefan O'Rear, 17-Jan-2015.) (Revised by AV, 21-Jul-2024.)
Hypotheses
Ref Expression
wemapso.t 𝑇 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐴 ((𝑥𝑧)𝑆(𝑦𝑧) ∧ ∀𝑤𝐴 (𝑤𝑅𝑧 → (𝑥𝑤) = (𝑦𝑤)))}
wemaplem2.p (𝜑𝑃 ∈ (𝐵m 𝐴))
wemaplem2.x (𝜑𝑋 ∈ (𝐵m 𝐴))
wemaplem2.q (𝜑𝑄 ∈ (𝐵m 𝐴))
wemaplem2.r (𝜑𝑅 Or 𝐴)
wemaplem2.s (𝜑𝑆 Po 𝐵)
wemaplem3.px (𝜑𝑃𝑇𝑋)
wemaplem3.xq (𝜑𝑋𝑇𝑄)
Assertion
Ref Expression
wemaplem3 (𝜑𝑃𝑇𝑄)
Distinct variable groups:   𝑥,𝐵   𝑥,𝑤,𝑦,𝑧,𝑋   𝑤,𝐴,𝑥,𝑦,𝑧   𝑤,𝑃,𝑥,𝑦,𝑧   𝑤,𝑄,𝑥,𝑦,𝑧   𝑤,𝑅,𝑥,𝑦,𝑧   𝑤,𝑆,𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧,𝑤)   𝐵(𝑦,𝑧,𝑤)   𝑇(𝑥,𝑦,𝑧,𝑤)

Proof of Theorem wemaplem3
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 wemaplem3.px . . 3 (𝜑𝑃𝑇𝑋)
2 wemaplem2.p . . . 4 (𝜑𝑃 ∈ (𝐵m 𝐴))
3 wemaplem2.x . . . 4 (𝜑𝑋 ∈ (𝐵m 𝐴))
4 wemapso.t . . . . 5 𝑇 = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐴 ((𝑥𝑧)𝑆(𝑦𝑧) ∧ ∀𝑤𝐴 (𝑤𝑅𝑧 → (𝑥𝑤) = (𝑦𝑤)))}
54wemaplem1 9235 . . . 4 ((𝑃 ∈ (𝐵m 𝐴) ∧ 𝑋 ∈ (𝐵m 𝐴)) → (𝑃𝑇𝑋 ↔ ∃𝑎𝐴 ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐)))))
62, 3, 5syl2anc 583 . . 3 (𝜑 → (𝑃𝑇𝑋 ↔ ∃𝑎𝐴 ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐)))))
71, 6mpbid 231 . 2 (𝜑 → ∃𝑎𝐴 ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))
8 wemaplem3.xq . . 3 (𝜑𝑋𝑇𝑄)
9 wemaplem2.q . . . 4 (𝜑𝑄 ∈ (𝐵m 𝐴))
104wemaplem1 9235 . . . 4 ((𝑋 ∈ (𝐵m 𝐴) ∧ 𝑄 ∈ (𝐵m 𝐴)) → (𝑋𝑇𝑄 ↔ ∃𝑏𝐴 ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐)))))
113, 9, 10syl2anc 583 . . 3 (𝜑 → (𝑋𝑇𝑄 ↔ ∃𝑏𝐴 ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐)))))
128, 11mpbid 231 . 2 (𝜑 → ∃𝑏𝐴 ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))
132ad2antrr 722 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑃 ∈ (𝐵m 𝐴))
143ad2antrr 722 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑋 ∈ (𝐵m 𝐴))
159ad2antrr 722 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑄 ∈ (𝐵m 𝐴))
16 wemaplem2.r . . . . . 6 (𝜑𝑅 Or 𝐴)
1716ad2antrr 722 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑅 Or 𝐴)
18 wemaplem2.s . . . . . 6 (𝜑𝑆 Po 𝐵)
1918ad2antrr 722 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑆 Po 𝐵)
20 simplrl 773 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑎𝐴)
21 simp2rl 1240 . . . . . 6 ((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐)))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → (𝑃𝑎)𝑆(𝑋𝑎))
22213expa 1116 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → (𝑃𝑎)𝑆(𝑋𝑎))
23 simprr 769 . . . . . 6 ((𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐)))) → ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐)))
2423ad2antlr 723 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐)))
25 simprl 767 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑏𝐴)
26 simprrl 777 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → (𝑋𝑏)𝑆(𝑄𝑏))
27 simprrr 778 . . . . 5 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐)))
284, 13, 14, 15, 17, 19, 20, 22, 24, 25, 26, 27wemaplem2 9236 . . . 4 (((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) ∧ (𝑏𝐴 ∧ ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))))) → 𝑃𝑇𝑄)
2928rexlimdvaa 3213 . . 3 ((𝜑 ∧ (𝑎𝐴 ∧ ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))))) → (∃𝑏𝐴 ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))) → 𝑃𝑇𝑄))
3029rexlimdvaa 3213 . 2 (𝜑 → (∃𝑎𝐴 ((𝑃𝑎)𝑆(𝑋𝑎) ∧ ∀𝑐𝐴 (𝑐𝑅𝑎 → (𝑃𝑐) = (𝑋𝑐))) → (∃𝑏𝐴 ((𝑋𝑏)𝑆(𝑄𝑏) ∧ ∀𝑐𝐴 (𝑐𝑅𝑏 → (𝑋𝑐) = (𝑄𝑐))) → 𝑃𝑇𝑄)))
317, 12, 30mp2d 49 1 (𝜑𝑃𝑇𝑄)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064   class class class wbr 5070  {copab 5132   Po wpo 5492   Or wor 5493  cfv 6418  (class class class)co 7255  m cmap 8573
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-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  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-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-po 5494  df-so 5495  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-map 8575
This theorem is referenced by:  wemappo  9238
  Copyright terms: Public domain W3C validator