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

Theorem rankaltopb 33700
 Description: Compute the rank of an alternate ordered pair. (Contributed by Scott Fenton, 18-Dec-2013.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
rankaltopb ((𝐴 (𝑅1 “ On) ∧ 𝐵 (𝑅1 “ On)) → (rank‘⟪𝐴, 𝐵⟫) = suc suc ((rank‘𝐴) ∪ suc (rank‘𝐵)))

Proof of Theorem rankaltopb
StepHypRef Expression
1 snwf 9240 . . 3 (𝐵 (𝑅1 “ On) → {𝐵} ∈ (𝑅1 “ On))
2 df-altop 33679 . . . . . 6 𝐴, 𝐵⟫ = {{𝐴}, {𝐴, {𝐵}}}
32fveq2i 6658 . . . . 5 (rank‘⟪𝐴, 𝐵⟫) = (rank‘{{𝐴}, {𝐴, {𝐵}}})
4 snwf 9240 . . . . . . 7 (𝐴 (𝑅1 “ On) → {𝐴} ∈ (𝑅1 “ On))
54adantr 484 . . . . . 6 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → {𝐴} ∈ (𝑅1 “ On))
6 prwf 9242 . . . . . 6 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → {𝐴, {𝐵}} ∈ (𝑅1 “ On))
7 rankprb 9282 . . . . . 6 (({𝐴} ∈ (𝑅1 “ On) ∧ {𝐴, {𝐵}} ∈ (𝑅1 “ On)) → (rank‘{{𝐴}, {𝐴, {𝐵}}}) = suc ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})))
85, 6, 7syl2anc 587 . . . . 5 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → (rank‘{{𝐴}, {𝐴, {𝐵}}}) = suc ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})))
93, 8syl5eq 2845 . . . 4 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → (rank‘⟪𝐴, 𝐵⟫) = suc ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})))
10 snsspr1 4710 . . . . . . . 8 {𝐴} ⊆ {𝐴, {𝐵}}
11 ssequn1 4110 . . . . . . . 8 ({𝐴} ⊆ {𝐴, {𝐵}} ↔ ({𝐴} ∪ {𝐴, {𝐵}}) = {𝐴, {𝐵}})
1210, 11mpbi 233 . . . . . . 7 ({𝐴} ∪ {𝐴, {𝐵}}) = {𝐴, {𝐵}}
1312fveq2i 6658 . . . . . 6 (rank‘({𝐴} ∪ {𝐴, {𝐵}})) = (rank‘{𝐴, {𝐵}})
14 rankunb 9281 . . . . . . 7 (({𝐴} ∈ (𝑅1 “ On) ∧ {𝐴, {𝐵}} ∈ (𝑅1 “ On)) → (rank‘({𝐴} ∪ {𝐴, {𝐵}})) = ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})))
155, 6, 14syl2anc 587 . . . . . 6 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → (rank‘({𝐴} ∪ {𝐴, {𝐵}})) = ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})))
16 rankprb 9282 . . . . . 6 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → (rank‘{𝐴, {𝐵}}) = suc ((rank‘𝐴) ∪ (rank‘{𝐵})))
1713, 15, 163eqtr3a 2857 . . . . 5 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})) = suc ((rank‘𝐴) ∪ (rank‘{𝐵})))
18 suceq 6231 . . . . 5 (((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})) = suc ((rank‘𝐴) ∪ (rank‘{𝐵})) → suc ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})) = suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})))
1917, 18syl 17 . . . 4 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → suc ((rank‘{𝐴}) ∪ (rank‘{𝐴, {𝐵}})) = suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})))
209, 19eqtrd 2833 . . 3 ((𝐴 (𝑅1 “ On) ∧ {𝐵} ∈ (𝑅1 “ On)) → (rank‘⟪𝐴, 𝐵⟫) = suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})))
211, 20sylan2 595 . 2 ((𝐴 (𝑅1 “ On) ∧ 𝐵 (𝑅1 “ On)) → (rank‘⟪𝐴, 𝐵⟫) = suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})))
22 ranksnb 9258 . . . . 5 (𝐵 (𝑅1 “ On) → (rank‘{𝐵}) = suc (rank‘𝐵))
2322uneq2d 4093 . . . 4 (𝐵 (𝑅1 “ On) → ((rank‘𝐴) ∪ (rank‘{𝐵})) = ((rank‘𝐴) ∪ suc (rank‘𝐵)))
24 suceq 6231 . . . 4 (((rank‘𝐴) ∪ (rank‘{𝐵})) = ((rank‘𝐴) ∪ suc (rank‘𝐵)) → suc ((rank‘𝐴) ∪ (rank‘{𝐵})) = suc ((rank‘𝐴) ∪ suc (rank‘𝐵)))
25 suceq 6231 . . . 4 (suc ((rank‘𝐴) ∪ (rank‘{𝐵})) = suc ((rank‘𝐴) ∪ suc (rank‘𝐵)) → suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})) = suc suc ((rank‘𝐴) ∪ suc (rank‘𝐵)))
2623, 24, 253syl 18 . . 3 (𝐵 (𝑅1 “ On) → suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})) = suc suc ((rank‘𝐴) ∪ suc (rank‘𝐵)))
2726adantl 485 . 2 ((𝐴 (𝑅1 “ On) ∧ 𝐵 (𝑅1 “ On)) → suc suc ((rank‘𝐴) ∪ (rank‘{𝐵})) = suc suc ((rank‘𝐴) ∪ suc (rank‘𝐵)))
2821, 27eqtrd 2833 1 ((𝐴 (𝑅1 “ On) ∧ 𝐵 (𝑅1 “ On)) → (rank‘⟪𝐴, 𝐵⟫) = suc suc ((rank‘𝐴) ∪ suc (rank‘𝐵)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   = wceq 1538   ∈ wcel 2111   ∪ cun 3881   ⊆ wss 3883  {csn 4528  {cpr 4530  ∪ cuni 4804   “ cima 5526  Oncon0 6166  suc csuc 6168  ‘cfv 6332  𝑅1cr1 9193  rankcrnk 9194  ⟪caltop 33677 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5171  ax-nul 5178  ax-pow 5235  ax-pr 5299  ax-un 7454 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3444  df-sbc 3723  df-csb 3831  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4805  df-int 4843  df-iun 4887  df-br 5035  df-opab 5097  df-mpt 5115  df-tr 5141  df-id 5429  df-eprel 5434  df-po 5442  df-so 5443  df-fr 5482  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6123  df-ord 6169  df-on 6170  df-lim 6171  df-suc 6172  df-iota 6291  df-fun 6334  df-fn 6335  df-f 6336  df-f1 6337  df-fo 6338  df-f1o 6339  df-fv 6340  df-om 7574  df-wrecs 7948  df-recs 8009  df-rdg 8047  df-r1 9195  df-rank 9196  df-altop 33679 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator