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

Theorem tmsxpsval2 24838
Description: Value of the product of two metrics. (Contributed by Mario Carneiro, 2-Sep-2015.)
Hypotheses
Ref Expression
tmsxps.p 𝑃 = (dist‘((toMetSp‘𝑀) ×s (toMetSp‘𝑁)))
tmsxps.1 (𝜑 → 𝑀 ∈ (∞Met‘𝑋))
tmsxps.2 (𝜑 → 𝑁 ∈ (∞Met‘𝑌))
tmsxpsval.a (𝜑 → 𝐴 ∈ 𝑋)
tmsxpsval.b (𝜑 → 𝐵 ∈ 𝑌)
tmsxpsval.c (𝜑 → 𝐶 ∈ 𝑋)
tmsxpsval.d (𝜑 → 𝐷 ∈ 𝑌)
Assertion
Ref Expression
tmsxpsval2 (𝜑 → (⟨𝐴, 𝐵⟩𝑃⟨𝐶, 𝐷⟩) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶)))

Proof of Theorem tmsxpsval2
StepHypRef Expression
1 tmsxps.p . . 3 𝑃 = (dist‘((toMetSp‘𝑀) ×s (toMetSp‘𝑁)))
2 tmsxps.1 . . 3 (𝜑 → 𝑀 ∈ (∞Met‘𝑋))
3 tmsxps.2 . . 3 (𝜑 → 𝑁 ∈ (∞Met‘𝑌))
4 tmsxpsval.a . . 3 (𝜑 → 𝐴 ∈ 𝑋)
5 tmsxpsval.b . . 3 (𝜑 → 𝐵 ∈ 𝑌)
6 tmsxpsval.c . . 3 (𝜑 → 𝐶 ∈ 𝑋)
7 tmsxpsval.d . . 3 (𝜑 → 𝐷 ∈ 𝑌)
81, 2, 3, 4, 5, 6, 7tmsxpsval 24837 . 2 (𝜑 → (⟨𝐴, 𝐵⟩𝑃⟨𝐶, 𝐷⟩) = sup({(𝐴𝑀𝐶), (𝐵𝑁𝐷)}, ℝ*, < ))
9 xrltso 13251 . . 3 < Or ℝ*
10 xmetcl 24630 . . . 4 ((𝑀 ∈ (∞Met‘𝑋) ∧ 𝐴 ∈ 𝑋 ∧ 𝐶 ∈ 𝑋) → (𝐴𝑀𝐶) ∈ ℝ*)
112, 4, 6, 10syl3anc 1398 . . 3 (𝜑 → (𝐴𝑀𝐶) ∈ ℝ*)
12 xmetcl 24630 . . . 4 ((𝑁 ∈ (∞Met‘𝑌) ∧ 𝐵 ∈ 𝑌 ∧ 𝐷 ∈ 𝑌) → (𝐵𝑁𝐷) ∈ ℝ*)
133, 5, 7, 12syl3anc 1398 . . 3 (𝜑 → (𝐵𝑁𝐷) ∈ ℝ*)
14 suppr 9448 . . 3 (( < Or ℝ* ∧ (𝐴𝑀𝐶) ∈ ℝ* ∧ (𝐵𝑁𝐷) ∈ ℝ*) → sup({(𝐴𝑀𝐶), (𝐵𝑁𝐷)}, ℝ*, < ) = if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)))
159, 11, 13, 14mp3an2i 1495 . 2 (𝜑 → sup({(𝐴𝑀𝐶), (𝐵𝑁𝐷)}, ℝ*, < ) = if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)))
16 xrltnle 11357 . . . . 5 (((𝐵𝑁𝐷) ∈ ℝ* ∧ (𝐴𝑀𝐶) ∈ ℝ*) → ((𝐵𝑁𝐷) < (𝐴𝑀𝐶) ↔ ¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷)))
1713, 11, 16syl2anc 596 . . . 4 (𝜑 → ((𝐵𝑁𝐷) < (𝐴𝑀𝐶) ↔ ¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷)))
1817ifbid 4506 . . 3 (𝜑 → if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)) = if(¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐴𝑀𝐶), (𝐵𝑁𝐷)))
19 ifnot 4535 . . 3 if(¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐴𝑀𝐶), (𝐵𝑁𝐷)) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶))
2018, 19eqtrdi 2812 . 2 (𝜑 → if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶)))
218, 15, 203eqtrd 2800 1 (𝜑 → (⟨𝐴, 𝐵⟩𝑃⟨𝐶, 𝐷⟩) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   = wceq 1570   ∈ wcel 2145  ifcif 4482  {cpr 4586  ⟨cop 4590   class class class wbr 5103   Or wor 5558  ‘cfv 6531  (class class class)co 7412  supcsup 9416  ℝ*cxr 11323   < clt 11324   ≤ cle 11325  distcds 17417   ×s cxps 17658  ∞Metcxmet 21643  toMetSpctms 24618
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740  ax-cnex 11237  ax-resscn 11238  ax-1cn 11239  ax-icn 11240  ax-addcl 11241  ax-addrcl 11242  ax-mulcl 11243  ax-mulrcl 11244  ax-mulcom 11245  ax-addass 11246  ax-mulass 11247  ax-distr 11248  ax-i2m1 11249  ax-1ne0 11250  ax-1rid 11251  ax-rnegex 11252  ax-rrecex 11253  ax-cnre 11254  ax-pre-lttri 11255  ax-pre-lttrn 11256  ax-pre-ltadd 11257  ax-pre-mulgt0 11258  ax-pre-sup 11259
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-iin 4954  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-se 5605  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6297  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-isom 6540  df-riota 7369  df-ov 7415  df-oprab 7416  df-mpo 7417  df-of 7682  df-om 7867  df-1st 7990  df-2nd 7991  df-supp 8162  df-frecs 8283  df-wrecs 8314  df-recs 8363  df-rdg 8402  df-1o 8460  df-2o 8461  df-er 8701  df-map 8833  df-ixp 8910  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  df-fsupp 9338  df-sup 9418  df-inf 9419  df-oi 9488  df-card 10001  df-pnf 11326  df-mnf 11327  df-xr 11328  df-ltxr 11329  df-le 11330  df-sub 11524  df-neg 11525  df-div 11955  df-nn 12317  df-2 12386  df-3 12387  df-4 12388  df-5 12389  df-6 12390  df-7 12391  df-8 12392  df-9 12393  df-n0 12588  df-z 12675  df-dec 12796  df-uz 12947  df-q 13057  df-rp 13102  df-xneg 13222  df-xadd 13223  df-xmul 13224  df-icc 13464  df-fz 13621  df-fzo 13769  df-seq 14125  df-hash 14455  df-struct 17305  df-sets 17322  df-slot 17340  df-ndx 17352  df-base 17368  df-ress 17389  df-plusg 17421  df-mulr 17422  df-sca 17424  df-vsca 17425  df-ip 17426  df-tset 17427  df-ple 17428  df-ds 17430  df-hom 17432  df-cco 17433  df-rest 17573  df-topn 17574  df-0g 17592  df-gsum 17593  df-topgen 17594  df-prds 17598  df-xrs 17654  df-imas 17660  df-xps 17662  df-mre 17736  df-mrc 17737  df-acs 17739  df-mgm 18796  df-sgrp 18888  df-mnd 18904  df-submnd 18959  df-mulg 19258  df-cntz 19511  df-cmn 19976  df-psmet 21650  df-xmet 21651  df-bl 21653  df-mopn 21654  df-top 23192  df-topon 23209  df-topsp 23231  df-bases 23244  df-xms 24619  df-tms 24621
This theorem is used by:  txmetcnp  24846
  Copyright terms: Public domain W3C validator