maybe another name could be image_extremePointsₛₗ (same goes for the rest)
#42311 chore(Analysis/Convex/Extreme): semilinearize image_extremePoints
In plain words
Generalises "a linear equivalence maps extreme points to extreme points" (image_extremePoints) from linear to semilinear equivalences, and drops the ordered-ring / additive-group assumptions it carried. To do so it adds semilinear versions of "a linear map sends segments (closed and open) onto segments", where the ring homomorphism must preserve nonnegativity (resp. positivity). The old linear statements become one-line specialisations; the affine image_segment / image_openSegment only get shorter proofs.
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
PR description
The semilinear cases need (hσ : ∀ a, 0 ≤ σ a ↔ 0 ≤ a) for the ring morphism σ, which I've added as an autoparam (by simp).
Conversation on GitHub 2
PR summary 8a00c31293
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference| |-|-|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ linear_image_openSegment
+ linear_image_segment
+ semilinear_image_extremePoints
+ semilinear_image_openSegment
+ semilinear_image_segment
<details>
<summary>You can run this locally as follows</summary>
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
8a00c31).
- +5 new declarations
- −0 removed declarations
+linear_image_openSegment
+linear_image_segment
+semilinear_image_extremePoints
+semilinear_image_openSegment
+semilinear_image_segment
No changes to strong technical debt.
No changes to weak technical debt.
Current commit 8a00c31293 Reference commit f4570dc2f3
This script lives in the undefined repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
This pull request has conflicts, please merge master and resolve them.
Mathlib/Analysis/Convex/Extreme.lean +12 −9
theorem extremePoints_pi (s : ∀ i, Set (M i)) :Mathlib/Analysis/Convex/Segment.lean +38 −7
theorem lineMap_mem_segment (a b : E) {t : 𝕜} (ht : t ∈ Icc 0 1) :