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

Theorem addcanpr 9868
Description: Addition cancellation law for positive reals. Proposition 9-3.5(vi) of [Gleason] p. 123. (Contributed by NM, 9-Apr-1996.) (New usage is discouraged.)
Assertion
Ref Expression
addcanpr ((𝐴P𝐵P) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → 𝐵 = 𝐶))

Proof of Theorem addcanpr
StepHypRef Expression
1 addclpr 9840 . . . 4 ((𝐴P𝐵P) → (𝐴 +P 𝐵) ∈ P)
2 eleq1 2689 . . . . 5 ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → ((𝐴 +P 𝐵) ∈ P ↔ (𝐴 +P 𝐶) ∈ P))
3 dmplp 9834 . . . . . 6 dom +P = (P × P)
4 0npr 9814 . . . . . 6 ¬ ∅ ∈ P
53, 4ndmovrcl 6820 . . . . 5 ((𝐴 +P 𝐶) ∈ P → (𝐴P𝐶P))
62, 5syl6bi 243 . . . 4 ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → ((𝐴 +P 𝐵) ∈ P → (𝐴P𝐶P)))
71, 6syl5com 31 . . 3 ((𝐴P𝐵P) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → (𝐴P𝐶P)))
8 ltapr 9867 . . . . . . . 8 (𝐴P → (𝐵<P 𝐶 ↔ (𝐴 +P 𝐵)<P (𝐴 +P 𝐶)))
9 ltapr 9867 . . . . . . . 8 (𝐴P → (𝐶<P 𝐵 ↔ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵)))
108, 9orbi12d 746 . . . . . . 7 (𝐴P → ((𝐵<P 𝐶𝐶<P 𝐵) ↔ ((𝐴 +P 𝐵)<P (𝐴 +P 𝐶) ∨ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵))))
1110notbid 308 . . . . . 6 (𝐴P → (¬ (𝐵<P 𝐶𝐶<P 𝐵) ↔ ¬ ((𝐴 +P 𝐵)<P (𝐴 +P 𝐶) ∨ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵))))
1211ad2antrr 762 . . . . 5 (((𝐴P𝐵P) ∧ (𝐴P𝐶P)) → (¬ (𝐵<P 𝐶𝐶<P 𝐵) ↔ ¬ ((𝐴 +P 𝐵)<P (𝐴 +P 𝐶) ∨ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵))))
13 ltsopr 9854 . . . . . . 7 <P Or P
14 sotrieq 5062 . . . . . . 7 ((<P Or P ∧ (𝐵P𝐶P)) → (𝐵 = 𝐶 ↔ ¬ (𝐵<P 𝐶𝐶<P 𝐵)))
1513, 14mpan 706 . . . . . 6 ((𝐵P𝐶P) → (𝐵 = 𝐶 ↔ ¬ (𝐵<P 𝐶𝐶<P 𝐵)))
1615ad2ant2l 782 . . . . 5 (((𝐴P𝐵P) ∧ (𝐴P𝐶P)) → (𝐵 = 𝐶 ↔ ¬ (𝐵<P 𝐶𝐶<P 𝐵)))
17 addclpr 9840 . . . . . 6 ((𝐴P𝐶P) → (𝐴 +P 𝐶) ∈ P)
18 sotrieq 5062 . . . . . . 7 ((<P Or P ∧ ((𝐴 +P 𝐵) ∈ P ∧ (𝐴 +P 𝐶) ∈ P)) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) ↔ ¬ ((𝐴 +P 𝐵)<P (𝐴 +P 𝐶) ∨ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵))))
1913, 18mpan 706 . . . . . 6 (((𝐴 +P 𝐵) ∈ P ∧ (𝐴 +P 𝐶) ∈ P) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) ↔ ¬ ((𝐴 +P 𝐵)<P (𝐴 +P 𝐶) ∨ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵))))
201, 17, 19syl2an 494 . . . . 5 (((𝐴P𝐵P) ∧ (𝐴P𝐶P)) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) ↔ ¬ ((𝐴 +P 𝐵)<P (𝐴 +P 𝐶) ∨ (𝐴 +P 𝐶)<P (𝐴 +P 𝐵))))
2112, 16, 203bitr4d 300 . . . 4 (((𝐴P𝐵P) ∧ (𝐴P𝐶P)) → (𝐵 = 𝐶 ↔ (𝐴 +P 𝐵) = (𝐴 +P 𝐶)))
2221exbiri 652 . . 3 ((𝐴P𝐵P) → ((𝐴P𝐶P) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → 𝐵 = 𝐶)))
237, 22syld 47 . 2 ((𝐴P𝐵P) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → 𝐵 = 𝐶)))
2423pm2.43d 53 1 ((𝐴P𝐵P) → ((𝐴 +P 𝐵) = (𝐴 +P 𝐶) → 𝐵 = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384   = wceq 1483  wcel 1990   class class class wbr 4653   Or wor 5034  (class class class)co 6650  Pcnp 9681   +P cpp 9683  <P cltp 9685
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949  ax-inf2 8538
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-pss 3590  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-tp 4182  df-op 4184  df-uni 4437  df-int 4476  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-tr 4753  df-id 5024  df-eprel 5029  df-po 5035  df-so 5036  df-fr 5073  df-we 5075  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-pred 5680  df-ord 5726  df-on 5727  df-lim 5728  df-suc 5729  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-om 7066  df-1st 7168  df-2nd 7169  df-wrecs 7407  df-recs 7468  df-rdg 7506  df-1o 7560  df-oadd 7564  df-omul 7565  df-er 7742  df-ni 9694  df-pli 9695  df-mi 9696  df-lti 9697  df-plpq 9730  df-mpq 9731  df-ltpq 9732  df-enq 9733  df-nq 9734  df-erq 9735  df-plq 9736  df-mq 9737  df-1nq 9738  df-rq 9739  df-ltnq 9740  df-np 9803  df-plp 9805  df-ltp 9807
This theorem is referenced by:  enrer  9886  mulcmpblnr  9892  mulgt0sr  9926
  Copyright terms: Public domain W3C validator