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

Theorem psmettri2 24661
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 6946 . . . . . . . 8 (𝐷 ∈ (PsMet‘𝑋) → 𝑋 ∈ V)
2 ispsmet 24656 . . . . . . . 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 3258 . . . 4 ((𝐷 ∈ (PsMet‘𝑋) ∧ 𝑎 ∈ 𝑋) → ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏))))
76simprd 501 . . 3 ((𝐷 ∈ (PsMet‘𝑋) ∧ 𝑎 ∈ 𝑋) → ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)))
87ralrimiva 3158 . 2 (𝐷 ∈ (PsMet‘𝑋) → ∀𝑎 ∈ 𝑋 ∀𝑏 ∈ 𝑋 ∀𝑐 ∈ 𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)))
9 oveq1 7453 . . . . 5 (𝑎 = 𝐴 → (𝑎𝐷𝑏) = (𝐴𝐷𝑏))
10 oveq2 7454 . . . . . 6 (𝑎 = 𝐴 → (𝑐𝐷𝑎) = (𝑐𝐷𝐴))
1110oveq1d 7461 . . . . 5 (𝑎 = 𝐴 → ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)) = ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏)))
129, 11breq12d 5119 . . . 4 (𝑎 = 𝐴 → ((𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +e (𝑐𝐷𝑏)) ↔ (𝐴𝐷𝑏) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏))))
13 oveq2 7454 . . . . 5 (𝑏 = 𝐵 → (𝐴𝐷𝑏) = (𝐴𝐷𝐵))
14 oveq2 7454 . . . . . 6 (𝑏 = 𝐵 → (𝑐𝐷𝑏) = (𝑐𝐷𝐵))
1514oveq2d 7462 . . . . 5 (𝑏 = 𝐵 → ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏)) = ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵)))
1613, 15breq12d 5119 . . . 4 (𝑏 = 𝐵 → ((𝐴𝐷𝑏) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝑏)) ↔ (𝐴𝐷𝐵) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵))))
17 oveq1 7453 . . . . . 6 (𝑐 = 𝐶 → (𝑐𝐷𝐴) = (𝐶𝐷𝐴))
18 oveq1 7453 . . . . . 6 (𝑐 = 𝐶 → (𝑐𝐷𝐵) = (𝐶𝐷𝐵))
1917, 18oveq12d 7464 . . . . 5 (𝑐 = 𝐶 → ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵)) = ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵)))
2019breq2d 5118 . . . 4 (𝑐 = 𝐶 → ((𝐴𝐷𝐵) ≤ ((𝑐𝐷𝐴) +e (𝑐𝐷𝐵)) ↔ (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +e (𝐶𝐷𝐵))))
2112, 16, 20rspc3v 3595 . . 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 1570   ∈ wcel 2147  ∀wral 3080  Vcvv 3454   class class class wbr 5106   × cxp 5654  ⟶wf 6557  ‘cfv 6561  (class class class)co 7446  0cc0 11230  ℝ*cxr 11372   ≤ cle 11374   +e cxad 13269  PsMetcpsmet 21695
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5253  ax-nul 5264  ax-pow 5332  ax-pr 5396  ax-un 7778  ax-cnex 11286  ax-resscn 11287
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-rn 5667  df-iota 6515  df-fun 6563  df-fn 6564  df-f 6565  df-fv 6569  df-ov 7449  df-oprab 7450  df-mpo 7451  df-map 8880  df-xr 11377  df-psmet 21703
This theorem is used by:  psmetsym  24662  psmettri  24663  psmetge0  24664  psmetres2  24666  xblss2ps  24753  metideq  34608  metider  34609  pstmxmet  34612
  Copyright terms: Public domain W3C validator