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

Theorem cvxcl 26240
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 3193 . . . . 5 (𝜑 → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
32ad2antrr 723 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
4 simpr1 1193 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋𝐷)
5 simpr2 1194 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌𝐷)
6 oveq1 7344 . . . . . . . 8 (𝑥 = 𝑋 → (𝑥[,]𝑦) = (𝑋[,]𝑦))
76sseq1d 3963 . . . . . . 7 (𝑥 = 𝑋 → ((𝑥[,]𝑦) ⊆ 𝐷 ↔ (𝑋[,]𝑦) ⊆ 𝐷))
8 oveq2 7345 . . . . . . . 8 (𝑦 = 𝑌 → (𝑋[,]𝑦) = (𝑋[,]𝑌))
98sseq1d 3963 . . . . . . 7 (𝑦 = 𝑌 → ((𝑋[,]𝑦) ⊆ 𝐷 ↔ (𝑋[,]𝑌) ⊆ 𝐷))
107, 9rspc2v 3579 . . . . . 6 ((𝑋𝐷𝑌𝐷) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
114, 5, 10syl2anc 584 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
1211adantr 481 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑋[,]𝑌) ⊆ 𝐷))
133, 12mpd 15 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (𝑋[,]𝑌) ⊆ 𝐷)
14 ax-1cn 11030 . . . . . . . 8 1 ∈ ℂ
15 unitssre 13332 . . . . . . . . . 10 (0[,]1) ⊆ ℝ
16 simpr3 1195 . . . . . . . . . 10 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ (0[,]1))
1715, 16sselid 3930 . . . . . . . . 9 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ ℝ)
1817recnd 11104 . . . . . . . 8 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑇 ∈ ℂ)
19 nncan 11351 . . . . . . . 8 ((1 ∈ ℂ ∧ 𝑇 ∈ ℂ) → (1 − (1 − 𝑇)) = 𝑇)
2014, 18, 19sylancr 587 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − (1 − 𝑇)) = 𝑇)
2120oveq1d 7352 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((1 − (1 − 𝑇)) · 𝑋) = (𝑇 · 𝑋))
2221oveq1d 7352 . . . . 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 3933 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋 ∈ ℝ)
2726adantr 481 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑋 ∈ ℝ)
2825, 5sseldd 3933 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌 ∈ ℝ)
2928adantr 481 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑌 ∈ ℝ)
30 simpr 485 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑋 < 𝑌)
31 simplr3 1216 . . . . . 6 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → 𝑇 ∈ (0[,]1))
32 iirev 24198 . . . . . 6 (𝑇 ∈ (0[,]1) → (1 − 𝑇) ∈ (0[,]1))
3331, 32syl 17 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (1 − 𝑇) ∈ (0[,]1))
34 lincmb01cmp 13328 . . . . 5 (((𝑋 ∈ ℝ ∧ 𝑌 ∈ ℝ ∧ 𝑋 < 𝑌) ∧ (1 − 𝑇) ∈ (0[,]1)) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3527, 29, 30, 33, 34syl31anc 1372 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → (((1 − (1 − 𝑇)) · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3623, 35eqeltrrd 2838 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑋[,]𝑌))
3713, 36sseldd 3933 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 < 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
38 oveq2 7345 . . . . 5 (𝑋 = 𝑌 → (𝑇 · 𝑋) = (𝑇 · 𝑌))
3938oveq1d 7352 . . . 4 (𝑋 = 𝑌 → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) = ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)))
40 pncan3 11330 . . . . . . 7 ((𝑇 ∈ ℂ ∧ 1 ∈ ℂ) → (𝑇 + (1 − 𝑇)) = 1)
4118, 14, 40sylancl 586 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑇 + (1 − 𝑇)) = 1)
4241oveq1d 7352 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 + (1 − 𝑇)) · 𝑌) = (1 · 𝑌))
43 1re 11076 . . . . . . . 8 1 ∈ ℝ
44 resubcl 11386 . . . . . . . 8 ((1 ∈ ℝ ∧ 𝑇 ∈ ℝ) → (1 − 𝑇) ∈ ℝ)
4543, 17, 44sylancr 587 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − 𝑇) ∈ ℝ)
4645recnd 11104 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (1 − 𝑇) ∈ ℂ)
4728recnd 11104 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑌 ∈ ℂ)
4818, 46, 47adddird 11101 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 + (1 − 𝑇)) · 𝑌) = ((𝑇 · 𝑌) + ((1 − 𝑇) · 𝑌)))
4947mulid2d 11094 . . . . 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 2837 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑋 = 𝑌) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
542ad2antrr 723 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷)
55 oveq1 7344 . . . . . . . 8 (𝑥 = 𝑌 → (𝑥[,]𝑦) = (𝑌[,]𝑦))
5655sseq1d 3963 . . . . . . 7 (𝑥 = 𝑌 → ((𝑥[,]𝑦) ⊆ 𝐷 ↔ (𝑌[,]𝑦) ⊆ 𝐷))
57 oveq2 7345 . . . . . . . 8 (𝑦 = 𝑋 → (𝑌[,]𝑦) = (𝑌[,]𝑋))
5857sseq1d 3963 . . . . . . 7 (𝑦 = 𝑋 → ((𝑌[,]𝑦) ⊆ 𝐷 ↔ (𝑌[,]𝑋) ⊆ 𝐷))
5956, 58rspc2v 3579 . . . . . 6 ((𝑌𝐷𝑋𝐷) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
605, 4, 59syl2anc 584 . . . . 5 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
6160adantr 481 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (∀𝑥𝐷𝑦𝐷 (𝑥[,]𝑦) ⊆ 𝐷 → (𝑌[,]𝑋) ⊆ 𝐷))
6254, 61mpd 15 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (𝑌[,]𝑋) ⊆ 𝐷)
6326recnd 11104 . . . . . . 7 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → 𝑋 ∈ ℂ)
6418, 63mulcld 11096 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑇 · 𝑋) ∈ ℂ)
6546, 47mulcld 11096 . . . . . 6 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((1 − 𝑇) · 𝑌) ∈ ℂ)
6664, 65addcomd 11278 . . . . 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 1216 . . . . 5 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → 𝑇 ∈ (0[,]1))
72 lincmb01cmp 13328 . . . . 5 (((𝑌 ∈ ℝ ∧ 𝑋 ∈ ℝ ∧ 𝑌 < 𝑋) ∧ 𝑇 ∈ (0[,]1)) → (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)) ∈ (𝑌[,]𝑋))
7368, 69, 70, 71, 72syl31anc 1372 . . . 4 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → (((1 − 𝑇) · 𝑌) + (𝑇 · 𝑋)) ∈ (𝑌[,]𝑋))
7467, 73eqeltrd 2837 . . 3 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ (𝑌[,]𝑋))
7562, 74sseldd 3933 . 2 (((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) ∧ 𝑌 < 𝑋) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
7626, 28lttri4d 11217 . 2 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → (𝑋 < 𝑌𝑋 = 𝑌𝑌 < 𝑋))
7737, 53, 75, 76mpjao3dan 1430 1 ((𝜑 ∧ (𝑋𝐷𝑌𝐷𝑇 ∈ (0[,]1))) → ((𝑇 · 𝑋) + ((1 − 𝑇) · 𝑌)) ∈ 𝐷)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1540  wcel 2105  wral 3061  wss 3898   class class class wbr 5092  (class class class)co 7337  cc 10970  cr 10971  0cc0 10972  1c1 10973   + caddc 10975   · cmul 10977   < clt 11110  cmin 11306  [,]cicc 13183
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2707  ax-sep 5243  ax-nul 5250  ax-pow 5308  ax-pr 5372  ax-un 7650  ax-cnex 11028  ax-resscn 11029  ax-1cn 11030  ax-icn 11031  ax-addcl 11032  ax-addrcl 11033  ax-mulcl 11034  ax-mulrcl 11035  ax-mulcom 11036  ax-addass 11037  ax-mulass 11038  ax-distr 11039  ax-i2m1 11040  ax-1ne0 11041  ax-1rid 11042  ax-rnegex 11043  ax-rrecex 11044  ax-cnre 11045  ax-pre-lttri 11046  ax-pre-lttrn 11047  ax-pre-ltadd 11048  ax-pre-mulgt0 11049
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2886  df-ne 2941  df-nel 3047  df-ral 3062  df-rex 3071  df-reu 3350  df-rab 3404  df-v 3443  df-sbc 3728  df-csb 3844  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-nul 4270  df-if 4474  df-pw 4549  df-sn 4574  df-pr 4576  df-op 4580  df-uni 4853  df-br 5093  df-opab 5155  df-mpt 5176  df-id 5518  df-po 5532  df-so 5533  df-xp 5626  df-rel 5627  df-cnv 5628  df-co 5629  df-dm 5630  df-rn 5631  df-res 5632  df-ima 5633  df-iota 6431  df-fun 6481  df-fn 6482  df-f 6483  df-f1 6484  df-fo 6485  df-f1o 6486  df-fv 6487  df-riota 7293  df-ov 7340  df-oprab 7341  df-mpo 7342  df-er 8569  df-en 8805  df-dom 8806  df-sdom 8807  df-pnf 11112  df-mnf 11113  df-xr 11114  df-ltxr 11115  df-le 11116  df-sub 11308  df-neg 11309  df-rp 12832  df-icc 13187
This theorem is referenced by:  scvxcvx  26241  jensenlem2  26243  amgmlem  26245
  Copyright terms: Public domain W3C validator