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

Theorem cvxcl 26334
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 3197 . . . . 5 (𝜑 → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
32ad2antrr 724 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
4 simpr1 1194 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋𝐷)
5 simpr2 1195 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌𝐷)
6 oveq1 7364 . . . . . . . 8 (𝑥 = 𝑋 → (𝑥[,]𝑦) = (𝑋[,]𝑦))
76sseq1d 3975 . . . . . . 7 (𝑥 = 𝑋 → ((𝑥[,]𝑦) ⊆ 𝐷 ↔ (𝑋[,]𝑦) ⊆ 𝐷))
8 oveq2 7365 . . . . . . . 8 (𝑦 = 𝑌 → (𝑋[,]𝑦) = (𝑋[,]𝑌))
98sseq1d 3975 . . . . . . 7 (𝑦 = 𝑌 → ((𝑋[,]𝑦) ⊆ 𝐷 ↔ (𝑋[,]𝑌) ⊆ 𝐷))
107, 9rspc2v 3590 . . . . . 6 ((𝑋𝐷𝑌𝐷) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
114, 5, 10syl2anc 584 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
1211adantr 481 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
133, 12mpd 15 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (𝑋[,]𝑌) ⊆ 𝐷)
14 ax-1cn 11109 . . . . . . . 8 1 ∈ ℂ
15 unitssre 13416 . . . . . . . . . 10 (0[,]1) ⊆ ℝ
16 simpr3 1196 . . . . . . . . . 10 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ (0[,]1))
1715, 16sselid 3942 . . . . . . . . 9 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ ℝ)
1817recnd 11183 . . . . . . . 8 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ ℂ)
19 nncan 11430 . . . . . . . 8 ((1 ∈ ℂ ∧ 𝑇 ∈ ℂ) → (1 − (1 − 𝑇)) = 𝑇)
2014, 18, 19sylancr 587 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − (1 − 𝑇)) = 𝑇)
2120oveq1d 7372 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((1 − (1 − 𝑇)) · 𝑋) = (𝑇 · 𝑋))
2221oveq1d 7372 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)))
2322adantr 481 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)))
24 cvxcl.1 . . . . . . . 8 (𝜑𝐷 ⊆ ℝ)
2524adantr 481 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝐷 ⊆ ℝ)
2625, 4sseldd 3945 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋 ∈ ℝ)
2726adantr 481 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑋 ∈ ℝ)
2825, 5sseldd 3945 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌 ∈ ℝ)
2928adantr 481 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑌 ∈ ℝ)
30 simpr 485 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑋 < 𝑌)
31 simplr3 1217 . . . . . 6 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑇 ∈ (0[,]1))
32 iirev 24292 . . . . . 6 (𝑇 ∈ (0[,]1) → (1 − 𝑇) ∈ (0[,]1))
3331, 32syl 17 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (1 − 𝑇) ∈ (0[,]1))
34 lincmb01cmp 13412 . . . . 5 (((𝑋 ∈ ℝ ∧ 𝑌 ∈ ℝ ∧ 𝑋 < 𝑌) ∧ (1 − 𝑇) ∈ (0[,]1)) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3527, 29, 30, 33, 34syl31anc 1373 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3623, 35eqeltrrd 2839 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3713, 36sseldd 3945 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
38 oveq2 7365 . . . . 5 (𝑋 = 𝑌 → (𝑇 · 𝑋) = (𝑇 · 𝑌))
3938oveq1d 7372 . . . 4 (𝑋 = 𝑌 → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)))
40 pncan3 11409 . . . . . . 7 ((𝑇 ∈ ℂ ∧ 1 ∈ ℂ) → (𝑇 + (1 − 𝑇)) = 1)
4118, 14, 40sylancl 586 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑇 + (1 − 𝑇)) = 1)
4241oveq1d 7372 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 + (1 − 𝑇)) · 𝑌) = (1 · 𝑌))
43 1re 11155 . . . . . . . 8 1 ∈ ℝ
44 resubcl 11465 . . . . . . . 8 ((1 ∈ ℝ ∧ 𝑇 ∈ ℝ) → (1 − 𝑇) ∈ ℝ)
4543, 17, 44sylancr 587 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − 𝑇) ∈ ℝ)
4645recnd 11183 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − 𝑇) ∈ ℂ)
4728recnd 11183 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌 ∈ ℂ)
4818, 46, 47adddird 11180 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 + (1 − 𝑇)) · 𝑌) = ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)))
4947mulid2d 11173 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 · 𝑌) = 𝑌)
5042, 48, 493eqtr3d 2784 . . . 4 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)) = 𝑌)
5139, 50sylan9eqr 2798 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = 𝑌)
525adantr 481 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → 𝑌𝐷)
5351, 52eqeltrd 2838 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
542ad2antrr 724 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
55 oveq1 7364 . . . . . . . 8 (𝑥 = 𝑌 → (𝑥[,]𝑦) = (𝑌[,]𝑦))
5655sseq1d 3975 . . . . . . 7 (𝑥 = 𝑌 → ((𝑥[,]𝑦) ⊆ 𝐷 ↔ (𝑌[,]𝑦) ⊆ 𝐷))
57 oveq2 7365 . . . . . . . 8 (𝑦 = 𝑋 → (𝑌[,]𝑦) = (𝑌[,]𝑋))
5857sseq1d 3975 . . . . . . 7 (𝑦 = 𝑋 → ((𝑌[,]𝑦) ⊆ 𝐷 ↔ (𝑌[,]𝑋) ⊆ 𝐷))
5956, 58rspc2v 3590 . . . . . 6 ((𝑌𝐷𝑋𝐷) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
605, 4, 59syl2anc 584 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
6160adantr 481 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
6254, 61mpd 15 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (𝑌[,]𝑋) ⊆ 𝐷)
6326recnd 11183 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋 ∈ ℂ)
6418, 63mulcld 11175 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑇 · 𝑋) ∈ ℂ)
6546, 47mulcld 11175 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((1 − 𝑇) · 𝑌) ∈ ℂ)
6664, 65addcomd 11357 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)))
6766adantr 481 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)))
6828adantr 481 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑌 ∈ ℝ)
6926adantr 481 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑋 ∈ ℝ)
70 simpr 485 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑌 < 𝑋)
71 simplr3 1217 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑇 ∈ (0[,]1))
72 lincmb01cmp 13412 . . . . 5 (((𝑌 ∈ ℝ ∧ 𝑋 ∈ ℝ ∧ 𝑌 < 𝑋) ∧ 𝑇 ∈ (0[,]1)) → (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)) ∈ (𝑌[,]𝑋))
7368, 69, 70, 71, 72syl31anc 1373 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)) ∈ (𝑌[,]𝑋))
7467, 73eqeltrd 2838 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑌[,]𝑋))
7562, 74sseldd 3945 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
7626, 28lttri4d 11296 . 2 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑋 < 𝑌𝑋 = 𝑌𝑌 < 𝑋))
7737, 53, 75, 76mpjao3dan 1431 1 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1087   = wceq 1541  wcel 2106  wral 3064  wss 3910   class class class wbr 5105  (class class class)co 7357  cc 11049  cr 11050  0cc0 11051  1c1 11052   + caddc 11054   · cmul 11056   < clt 11189  cmin 11385  [,]cicc 13267
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2707  ax-sep 5256  ax-nul 5263  ax-pow 5320  ax-pr 5384  ax-un 7672  ax-cnex 11107  ax-resscn 11108  ax-1cn 11109  ax-icn 11110  ax-addcl 11111  ax-addrcl 11112  ax-mulcl 11113  ax-mulrcl 11114  ax-mulcom 11115  ax-addass 11116  ax-mulass 11117  ax-distr 11118  ax-i2m1 11119  ax-1ne0 11120  ax-1rid 11121  ax-rnegex 11122  ax-rrecex 11123  ax-cnre 11124  ax-pre-lttri 11125  ax-pre-lttrn 11126  ax-pre-ltadd 11127  ax-pre-mulgt0 11128
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3065  df-rex 3074  df-reu 3354  df-rab 3408  df-v 3447  df-sbc 3740  df-csb 3856  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-nul 4283  df-if 4487  df-pw 4562  df-sn 4587  df-pr 4589  df-op 4593  df-uni 4866  df-br 5106  df-opab 5168  df-mpt 5189  df-id 5531  df-po 5545  df-so 5546  df-xp 5639  df-rel 5640  df-cnv 5641  df-co 5642  df-dm 5643  df-rn 5644  df-res 5645  df-ima 5646  df-iota 6448  df-fun 6498  df-fn 6499  df-f 6500  df-f1 6501  df-fo 6502  df-f1o 6503  df-fv 6504  df-riota 7313  df-ov 7360  df-oprab 7361  df-mpo 7362  df-er 8648  df-en 8884  df-dom 8885  df-sdom 8886  df-pnf 11191  df-mnf 11192  df-xr 11193  df-ltxr 11194  df-le 11195  df-sub 11387  df-neg 11388  df-rp 12916  df-icc 13271
This theorem is referenced by:  scvxcvx  26335  jensenlem2  26337  amgmlem  26339
  Copyright terms: Public domain W3C validator