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

Theorem cvxcl 25561
Description: Closure of a 0-1 linear combination in a convex set. (Contributed by Mario Carneiro, 21-Jun-2015.)
Hypotheses
Ref Expression
cvxcl.1 (𝜑𝐷 ⊆ ℝ)
cvxcl.2 ((𝜑 ∧ (𝑥𝐷𝑦𝐷)) → (𝑥[,]𝑦) ⊆ 𝐷)
Assertion
Ref Expression
cvxcl ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
Distinct variable groups:   𝑥,𝑦,𝐷   𝜑,𝑥,𝑦   𝑥,𝑋,𝑦   𝑥,𝑌,𝑦
Allowed substitution hints:   𝑇(𝑥,𝑦)

Proof of Theorem cvxcl
StepHypRef Expression
1 cvxcl.2 . . . . . 6 ((𝜑 ∧ (𝑥𝐷𝑦𝐷)) → (𝑥[,]𝑦) ⊆ 𝐷)
21ralrimivva 3191 . . . . 5 (𝜑 → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
32ad2antrr 724 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
4 simpr1 1190 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋𝐷)
5 simpr2 1191 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌𝐷)
6 oveq1 7162 . . . . . . . 8 (𝑥 = 𝑋 → (𝑥[,]𝑦) = (𝑋[,]𝑦))
76sseq1d 3997 . . . . . . 7 (𝑥 = 𝑋 → ((𝑥[,]𝑦) ⊆ 𝐷 ↔ (𝑋[,]𝑦) ⊆ 𝐷))
8 oveq2 7163 . . . . . . . 8 (𝑦 = 𝑌 → (𝑋[,]𝑦) = (𝑋[,]𝑌))
98sseq1d 3997 . . . . . . 7 (𝑦 = 𝑌 → ((𝑋[,]𝑦) ⊆ 𝐷 ↔ (𝑋[,]𝑌) ⊆ 𝐷))
107, 9rspc2v 3632 . . . . . 6 ((𝑋𝐷𝑌𝐷) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
114, 5, 10syl2anc 586 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
1211adantr 483 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
133, 12mpd 15 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (𝑋[,]𝑌) ⊆ 𝐷)
14 ax-1cn 10594 . . . . . . . 8 1 ∈ ℂ
15 unitssre 12884 . . . . . . . . . 10 (0[,]1) ⊆ ℝ
16 simpr3 1192 . . . . . . . . . 10 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ (0[,]1))
1715, 16sseldi 3964 . . . . . . . . 9 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ ℝ)
1817recnd 10668 . . . . . . . 8 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ ℂ)
19 nncan 10914 . . . . . . . 8 ((1 ∈ ℂ ∧ 𝑇 ∈ ℂ) → (1 − (1 − 𝑇)) = 𝑇)
2014, 18, 19sylancr 589 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − (1 − 𝑇)) = 𝑇)
2120oveq1d 7170 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((1 − (1 − 𝑇)) · 𝑋) = (𝑇 · 𝑋))
2221oveq1d 7170 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)))
2322adantr 483 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)))
24 cvxcl.1 . . . . . . . 8 (𝜑𝐷 ⊆ ℝ)
2524adantr 483 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝐷 ⊆ ℝ)
2625, 4sseldd 3967 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋 ∈ ℝ)
2726adantr 483 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑋 ∈ ℝ)
2825, 5sseldd 3967 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌 ∈ ℝ)
2928adantr 483 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑌 ∈ ℝ)
30 simpr 487 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑋 < 𝑌)
31 simplr3 1213 . . . . . 6 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑇 ∈ (0[,]1))
32 iirev 23532 . . . . . 6 (𝑇 ∈ (0[,]1) → (1 − 𝑇) ∈ (0[,]1))
3331, 32syl 17 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (1 − 𝑇) ∈ (0[,]1))
34 lincmb01cmp 12880 . . . . 5 (((𝑋 ∈ ℝ ∧ 𝑌 ∈ ℝ ∧ 𝑋 < 𝑌) ∧ (1 − 𝑇) ∈ (0[,]1)) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3527, 29, 30, 33, 34syl31anc 1369 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3623, 35eqeltrrd 2914 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3713, 36sseldd 3967 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
38 oveq2 7163 . . . . 5 (𝑋 = 𝑌 → (𝑇 · 𝑋) = (𝑇 · 𝑌))
3938oveq1d 7170 . . . 4 (𝑋 = 𝑌 → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)))
40 pncan3 10893 . . . . . . 7 ((𝑇 ∈ ℂ ∧ 1 ∈ ℂ) → (𝑇 + (1 − 𝑇)) = 1)
4118, 14, 40sylancl 588 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑇 + (1 − 𝑇)) = 1)
4241oveq1d 7170 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 + (1 − 𝑇)) · 𝑌) = (1 · 𝑌))
43 1re 10640 . . . . . . . 8 1 ∈ ℝ
44 resubcl 10949 . . . . . . . 8 ((1 ∈ ℝ ∧ 𝑇 ∈ ℝ) → (1 − 𝑇) ∈ ℝ)
4543, 17, 44sylancr 589 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − 𝑇) ∈ ℝ)
4645recnd 10668 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − 𝑇) ∈ ℂ)
4728recnd 10668 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌 ∈ ℂ)
4818, 46, 47adddird 10665 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 + (1 − 𝑇)) · 𝑌) = ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)))
4947mulid2d 10658 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 · 𝑌) = 𝑌)
5042, 48, 493eqtr3d 2864 . . . 4 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)) = 𝑌)
5139, 50sylan9eqr 2878 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = 𝑌)
525adantr 483 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → 𝑌𝐷)
5351, 52eqeltrd 2913 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
542ad2antrr 724 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
55 oveq1 7162 . . . . . . . 8 (𝑥 = 𝑌 → (𝑥[,]𝑦) = (𝑌[,]𝑦))
5655sseq1d 3997 . . . . . . 7 (𝑥 = 𝑌 → ((𝑥[,]𝑦) ⊆ 𝐷 ↔ (𝑌[,]𝑦) ⊆ 𝐷))
57 oveq2 7163 . . . . . . . 8 (𝑦 = 𝑋 → (𝑌[,]𝑦) = (𝑌[,]𝑋))
5857sseq1d 3997 . . . . . . 7 (𝑦 = 𝑋 → ((𝑌[,]𝑦) ⊆ 𝐷 ↔ (𝑌[,]𝑋) ⊆ 𝐷))
5956, 58rspc2v 3632 . . . . . 6 ((𝑌𝐷𝑋𝐷) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
605, 4, 59syl2anc 586 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
6160adantr 483 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
6254, 61mpd 15 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (𝑌[,]𝑋) ⊆ 𝐷)
6326recnd 10668 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋 ∈ ℂ)
6418, 63mulcld 10660 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑇 · 𝑋) ∈ ℂ)
6546, 47mulcld 10660 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((1 − 𝑇) · 𝑌) ∈ ℂ)
6664, 65addcomd 10841 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)))
6766adantr 483 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)))
6828adantr 483 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑌 ∈ ℝ)
6926adantr 483 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑋 ∈ ℝ)
70 simpr 487 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑌 < 𝑋)
71 simplr3 1213 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑇 ∈ (0[,]1))
72 lincmb01cmp 12880 . . . . 5 (((𝑌 ∈ ℝ ∧ 𝑋 ∈ ℝ ∧ 𝑌 < 𝑋) ∧ 𝑇 ∈ (0[,]1)) → (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)) ∈ (𝑌[,]𝑋))
7368, 69, 70, 71, 72syl31anc 1369 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)) ∈ (𝑌[,]𝑋))
7467, 73eqeltrd 2913 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑌[,]𝑋))
7562, 74sseldd 3967 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
7626, 28lttri4d 10780 . 2 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑋 < 𝑌𝑋 = 𝑌𝑌 < 𝑋))
7737, 53, 75, 76mpjao3dan 1427 1 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1533  wcel 2110  wral 3138  wss 3935   class class class wbr 5065  (class class class)co 7155  cc 10534  cr 10535  0cc0 10536  1c1 10537   + caddc 10539   · cmul 10541   < clt 10674  cmin 10869  [,]cicc 12740
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5202  ax-nul 5209  ax-pow 5265  ax-pr 5329  ax-un 7460  ax-cnex 10592  ax-resscn 10593  ax-1cn 10594  ax-icn 10595  ax-addcl 10596  ax-addrcl 10597  ax-mulcl 10598  ax-mulrcl 10599  ax-mulcom 10600  ax-addass 10601  ax-mulass 10602  ax-distr 10603  ax-i2m1 10604  ax-1ne0 10605  ax-1rid 10606  ax-rnegex 10607  ax-rrecex 10608  ax-cnre 10609  ax-pre-lttri 10610  ax-pre-lttrn 10611  ax-pre-ltadd 10612  ax-pre-mulgt0 10613
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4838  df-br 5066  df-opab 5128  df-mpt 5146  df-id 5459  df-po 5473  df-so 5474  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-ima 5567  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-f1 6359  df-fo 6360  df-f1o 6361  df-fv 6362  df-riota 7113  df-ov 7158  df-oprab 7159  df-mpo 7160  df-er 8288  df-en 8509  df-dom 8510  df-sdom 8511  df-pnf 10676  df-mnf 10677  df-xr 10678  df-ltxr 10679  df-le 10680  df-sub 10871  df-neg 10872  df-rp 12389  df-icc 12744
This theorem is referenced by:  scvxcvx  25562  jensenlem2  25564  amgmlem  25566
  Copyright terms: Public domain W3C validator