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

Theorem psmettri2 24634
Description: Triangle inequality for the distance function of a pseudometric. (Contributed by Thierry Arnoux, 11-Feb-2018.)
Assertion
Ref Expression
psmettri2 ((𝐷 ∈ (PsMet‘𝑋) ∧ (𝐶 ∈ 𝑋 ∧ 𝐴 ∈ 𝑋 ∧ 𝐵 ∈ 𝑋)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵)))

Proof of Theorem psmettri2
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elfvex 6921 . . . . . . . 8 (𝐷 ∈ (PsMet‘𝑋) → 𝑋 ∈ V)
2 ispsmet 24629 . . . . . . . 8 (𝑋 ∈ V → (𝐷 ∈ (PsMet‘𝑋) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ* ∧ ∀𝑎 ∈ 𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏))))))
31, 2syl 18 . . . . . . 7 (𝐷 ∈ (PsMet‘𝑋) → (𝐷 ∈ (PsMet‘𝑋) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ* ∧ ∀𝑎 ∈ 𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏))))))
43ibi 270 . . . . . 6 (𝐷 ∈ (PsMet‘𝑋) → (𝐷:(𝑋 × 𝑋)⟶ℝ* ∧ ∀𝑎 ∈ 𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)))))
54simprd 501 . . . . 5 (𝐷 ∈ (PsMet‘𝑋) → ∀𝑎 ∈ 𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏))))
65r19.21bi 3254 . . . 4 ((𝐷 ∈ (PsMet‘𝑋) ∧ 𝑎 ∈ 𝑋) → ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏))))
76simprd 501 . . 3 ((𝐷 ∈ (PsMet‘𝑋) ∧ 𝑎 ∈ 𝑋) → ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)))
87ralrimiva 3154 . 2 (𝐷 ∈ (PsMet‘𝑋) → ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)))
9 oveq1 7428 . . . . 5 (𝑎 = 𝐴 → (𝑎𝐷𝑏) = (𝐴𝐷𝑏))
10 oveq2 7429 . . . . . 6 (𝑎 = 𝐴 → (𝑐𝐷𝑎) = (𝑐𝐷𝐴))
1110oveq1d 7436 . . . . 5 (𝑎 = 𝐴 → ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)) = ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏)))
129, 11breq12d 5115 . . . 4 (𝑎 = 𝐴 → ((𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)) ↔ (𝐴𝐷𝑏) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏))))
13 oveq2 7429 . . . . 5 (𝑏 = 𝐵 → (𝐴𝐷𝑏) = (𝐴𝐷𝐵))
14 oveq2 7429 . . . . . 6 (𝑏 = 𝐵 → (𝑐𝐷𝑏) = (𝑐𝐷𝐵))
1514oveq2d 7437 . . . . 5 (𝑏 = 𝐵 → ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏)) = ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵)))
1613, 15breq12d 5115 . . . 4 (𝑏 = 𝐵 → ((𝐴𝐷𝑏) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏)) ↔ (𝐴𝐷𝐵) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵))))
17 oveq1 7428 . . . . . 6 (𝑐 = 𝐶 → (𝑐𝐷𝐴) = (𝐶𝐷𝐴))
18 oveq1 7428 . . . . . 6 (𝑐 = 𝐶 → (𝑐𝐷𝐵) = (𝐶𝐷𝐵))
1917, 18oveq12d 7439 . . . . 5 (𝑐 = 𝐶 → ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵)) = ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵)))
2019breq2d 5114 . . . 4 (𝑐 = 𝐶 → ((𝐴𝐷𝐵) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵)) ↔ (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵))))
2112, 16, 20rspc3v 3591 . . 3 ((𝐴 ∈ 𝑋 ∧ 𝐵 ∈ 𝑋 ∧ 𝐶 ∈ 𝑋) → (∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵))))
22213comr 1143 . 2 ((𝐶 ∈ 𝑋 ∧ 𝐴 ∈ 𝑋 ∧ 𝐵 ∈ 𝑋) → (∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵))))
238, 22mpan9 516 1 ((𝐷 ∈ (PsMet‘𝑋) ∧ (𝐶 ∈ 𝑋 ∧ 𝐴 ∈ 𝑋 ∧ 𝐵 ∈ 𝑋)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144  ∀wral 3076  Vcvv 3450   class class class wbr 5102   × cxp 5648  ⟶wf 6535  ‘cfv 6539  (class class class)co 7421  0cc0 11204  ℝ*cxr 11346   ≤ cle 11348   +e cxad 13243  PsMetcpsmet 21668
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7752  ax-cnex 11260  ax-resscn 11261
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-iota 6494  df-fun 6541  df-fn 6542  df-f 6543  df-fv 6547  df-ov 7424  df-oprab 7425  df-mpo 7426  df-map 8853  df-xr 11351  df-psmet 21676
This theorem is used by:  psmetsym  24635  psmettri  24636  psmetge0  24637  psmetres2  24639  xblss2ps  24726  metideq  34572  metider  34573  pstmxmet  34576
  Copyright terms: Public domain W3C validator