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

Theorem ispos 17947
Description: The predicate "is a poset". (Contributed by NM, 18-Oct-2012.) (Revised by Mario Carneiro, 4-Nov-2013.)
Hypotheses
Ref Expression
ispos.b 𝐵 = (Base‘𝐾)
ispos.l = (le‘𝐾)
Assertion
Ref Expression
ispos (𝐾 ∈ Poset ↔ (𝐾 ∈ V ∧ ∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧))))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐵   𝑥, ,𝑦,𝑧
Allowed substitution hints:   𝐾(𝑥,𝑦,𝑧)

Proof of Theorem ispos
Dummy variables 𝑝 𝑏 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 6756 . . . . . . 7 (𝑝 = 𝐾 → (Base‘𝑝) = (Base‘𝐾))
2 ispos.b . . . . . . 7 𝐵 = (Base‘𝐾)
31, 2eqtr4di 2797 . . . . . 6 (𝑝 = 𝐾 → (Base‘𝑝) = 𝐵)
43eqeq2d 2749 . . . . 5 (𝑝 = 𝐾 → (𝑏 = (Base‘𝑝) ↔ 𝑏 = 𝐵))
5 fveq2 6756 . . . . . . 7 (𝑝 = 𝐾 → (le‘𝑝) = (le‘𝐾))
6 ispos.l . . . . . . 7 = (le‘𝐾)
75, 6eqtr4di 2797 . . . . . 6 (𝑝 = 𝐾 → (le‘𝑝) = )
87eqeq2d 2749 . . . . 5 (𝑝 = 𝐾 → (𝑟 = (le‘𝑝) ↔ 𝑟 = ))
94, 83anbi12d 1435 . . . 4 (𝑝 = 𝐾 → ((𝑏 = (Base‘𝑝) ∧ 𝑟 = (le‘𝑝) ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧))) ↔ (𝑏 = 𝐵𝑟 = ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)))))
1092exbidv 1928 . . 3 (𝑝 = 𝐾 → (∃𝑏𝑟(𝑏 = (Base‘𝑝) ∧ 𝑟 = (le‘𝑝) ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧))) ↔ ∃𝑏𝑟(𝑏 = 𝐵𝑟 = ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)))))
11 df-poset 17946 . . 3 Poset = {𝑝 ∣ ∃𝑏𝑟(𝑏 = (Base‘𝑝) ∧ 𝑟 = (le‘𝑝) ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)))}
1210, 11elab4g 3607 . 2 (𝐾 ∈ Poset ↔ (𝐾 ∈ V ∧ ∃𝑏𝑟(𝑏 = 𝐵𝑟 = ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)))))
132fvexi 6770 . . . 4 𝐵 ∈ V
146fvexi 6770 . . . 4 ∈ V
15 raleq 3333 . . . . . 6 (𝑏 = 𝐵 → (∀𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)) ↔ ∀𝑧𝐵 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧))))
1615raleqbi1dv 3331 . . . . 5 (𝑏 = 𝐵 → (∀𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)) ↔ ∀𝑦𝐵𝑧𝐵 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧))))
1716raleqbi1dv 3331 . . . 4 (𝑏 = 𝐵 → (∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)) ↔ ∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧))))
18 breq 5072 . . . . . . 7 (𝑟 = → (𝑥𝑟𝑥𝑥 𝑥))
19 breq 5072 . . . . . . . . 9 (𝑟 = → (𝑥𝑟𝑦𝑥 𝑦))
20 breq 5072 . . . . . . . . 9 (𝑟 = → (𝑦𝑟𝑥𝑦 𝑥))
2119, 20anbi12d 630 . . . . . . . 8 (𝑟 = → ((𝑥𝑟𝑦𝑦𝑟𝑥) ↔ (𝑥 𝑦𝑦 𝑥)))
2221imbi1d 341 . . . . . . 7 (𝑟 = → (((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ↔ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦)))
23 breq 5072 . . . . . . . . 9 (𝑟 = → (𝑦𝑟𝑧𝑦 𝑧))
2419, 23anbi12d 630 . . . . . . . 8 (𝑟 = → ((𝑥𝑟𝑦𝑦𝑟𝑧) ↔ (𝑥 𝑦𝑦 𝑧)))
25 breq 5072 . . . . . . . 8 (𝑟 = → (𝑥𝑟𝑧𝑥 𝑧))
2624, 25imbi12d 344 . . . . . . 7 (𝑟 = → (((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧) ↔ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧)))
2718, 22, 263anbi123d 1434 . . . . . 6 (𝑟 = → ((𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)) ↔ (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧))))
2827ralbidv 3120 . . . . 5 (𝑟 = → (∀𝑧𝐵 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)) ↔ ∀𝑧𝐵 (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧))))
29282ralbidv 3122 . . . 4 (𝑟 = → (∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)) ↔ ∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧))))
3013, 14, 17, 29ceqsex2v 3473 . . 3 (∃𝑏𝑟(𝑏 = 𝐵𝑟 = ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧))) ↔ ∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧)))
3130anbi2i 622 . 2 ((𝐾 ∈ V ∧ ∃𝑏𝑟(𝑏 = 𝐵𝑟 = ∧ ∀𝑥𝑏𝑦𝑏𝑧𝑏 (𝑥𝑟𝑥 ∧ ((𝑥𝑟𝑦𝑦𝑟𝑥) → 𝑥 = 𝑦) ∧ ((𝑥𝑟𝑦𝑦𝑟𝑧) → 𝑥𝑟𝑧)))) ↔ (𝐾 ∈ V ∧ ∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧))))
3212, 31bitri 274 1 (𝐾 ∈ Poset ↔ (𝐾 ∈ V ∧ ∀𝑥𝐵𝑦𝐵𝑧𝐵 (𝑥 𝑥 ∧ ((𝑥 𝑦𝑦 𝑥) → 𝑥 = 𝑦) ∧ ((𝑥 𝑦𝑦 𝑧) → 𝑥 𝑧))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  wral 3063  Vcvv 3422   class class class wbr 5070  cfv 6418  Basecbs 16840  lecple 16895  Posetcpo 17940
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-nul 5225
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  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-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-iota 6376  df-fv 6426  df-poset 17946
This theorem is referenced by:  ispos2  17948  posi  17950  0pos  17954  0posOLD  17955  isposd  17956  isposi  17957  pospropd  17960  resspos  31146
  Copyright terms: Public domain W3C validator