Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port Analysis.Convex.Complex (#3763)
- Loading branch information
1 parent
0a184b9
commit 650121b
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/- | ||
Copyright (c) 2019 Yury Kudriashov. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Yury Kudriashov, Yaël Dillies | ||
! This file was ported from Lean 3 source module analysis.convex.complex | ||
! leanprover-community/mathlib commit 15730e8d0af237a2ebafeb8cfbbcf71f6160c2e9 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.Analysis.Convex.Basic | ||
import Mathlib.Data.Complex.Module | ||
|
||
/-! | ||
# Convexity of half spaces in ℂ | ||
The open and closed half-spaces in ℂ given by an inequality on either the real or imaginary part | ||
are all convex over ℝ. | ||
-/ | ||
|
||
|
||
theorem convex_halfspace_re_lt (r : ℝ) : Convex ℝ { c : ℂ | c.re < r } := | ||
convex_halfspace_lt (IsLinearMap.mk Complex.add_re Complex.smul_re) _ | ||
#align convex_halfspace_re_lt convex_halfspace_re_lt | ||
|
||
theorem convex_halfspace_re_le (r : ℝ) : Convex ℝ { c : ℂ | c.re ≤ r } := | ||
convex_halfspace_le (IsLinearMap.mk Complex.add_re Complex.smul_re) _ | ||
#align convex_halfspace_re_le convex_halfspace_re_le | ||
|
||
theorem convex_halfspace_re_gt (r : ℝ) : Convex ℝ { c : ℂ | r < c.re } := | ||
convex_halfspace_gt (IsLinearMap.mk Complex.add_re Complex.smul_re) _ | ||
#align convex_halfspace_re_gt convex_halfspace_re_gt | ||
|
||
theorem convex_halfspace_re_ge (r : ℝ) : Convex ℝ { c : ℂ | r ≤ c.re } := | ||
convex_halfspace_ge (IsLinearMap.mk Complex.add_re Complex.smul_re) _ | ||
#align convex_halfspace_re_ge convex_halfspace_re_ge | ||
|
||
theorem convex_halfspace_im_lt (r : ℝ) : Convex ℝ { c : ℂ | c.im < r } := | ||
convex_halfspace_lt (IsLinearMap.mk Complex.add_im Complex.smul_im) _ | ||
#align convex_halfspace_im_lt convex_halfspace_im_lt | ||
|
||
theorem convex_halfspace_im_le (r : ℝ) : Convex ℝ { c : ℂ | c.im ≤ r } := | ||
convex_halfspace_le (IsLinearMap.mk Complex.add_im Complex.smul_im) _ | ||
#align convex_halfspace_im_le convex_halfspace_im_le | ||
|
||
theorem convex_halfspace_im_gt (r : ℝ) : Convex ℝ { c : ℂ | r < c.im } := | ||
convex_halfspace_gt (IsLinearMap.mk Complex.add_im Complex.smul_im) _ | ||
#align convex_halfspace_im_gt convex_halfspace_im_gt | ||
|
||
theorem convex_halfspace_im_ge (r : ℝ) : Convex ℝ { c : ℂ | r ≤ c.im } := | ||
convex_halfspace_ge (IsLinearMap.mk Complex.add_im Complex.smul_im) _ | ||
#align convex_halfspace_im_ge convex_halfspace_im_ge | ||
|