Skip to content

Bump mathlib - #113

Merged
ooovi merged 4 commits into
ooovi:mainfrom
Workshop-Polyhedra-In-Lean:mathlib-bump4
Oct 21, 2026
Merged

ooovi merged 4 commits into
ooovi:mainfrom
Workshop-Polyhedra-In-Lean:mathlib-bump4

Conversation

@vlad902

@vlad902 vlad902 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
  • Delete map_sConvexComb/isConvexSet_image/isConvexSet_range copies. map_sConvexComb/isConvexSet_image are now upstream, keep a single isConvexSet_range.
  • Delete 2 files (both landed upstream in mathlib).
  • Add some noncomputable sections that are now required, this appears to be because ofPoint is noncomputable and Set is now a 1-field structure so more defs cause there to be computable data
  • @[to_dual] changed, requiring adding some more (dont_translate := R)

Comment thread Polyhedral/Mathlib/Geometry/Convex/Fun/Defs.lean
Comment thread Polyhedral/Mathlib/Geometry/Convex/Cone/Pointed/Rank.lean Outdated
Comment on lines 38 to 39
@[simp] lemma map_sConvexComb (w : StdSimplex R P₁) :
f (sConvexComb w) = sConvexComb (w.map f) := f.isAffineMap.map_sConvexComb w

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we shouldn't remove these ones now that we have the IsAffineMap lemma

@vlad902 vlad902 Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the simp lemma is not in simpNF, _image is already upstream by a different name, and a couple of these are copied for LinearMap/AffineMap. I have cleaned this up.

/-! This files proves results about faces of convex sets / cones and homogenization. -/

@[expose] public section
@[expose] public noncomputable section

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know what triggered this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is due to mathlib refactoring Set to be a one-field structure so that now building a Set in an expression is more likely to lead to a def referencing a set to have runtime content and require being marked noncomputable. (Also because ofPoint is now noncomputable as of #102).

@martinwintermath

martinwintermath commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

I would appreciate a PR summary, also on bumps. Otherwise it is hard to judge what changes are correct/intentional. For example, where does noncomputable come from? Why the deletions in ConvexSpace/AffineSpace.lean (where is this stuff now)? etc

@vlad902

vlad902 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

I would appreciate a PR summary, also on bumps.

Will do, there's one now.

@martinwintermath

Copy link
Copy Markdown
Collaborator

LGTM @ooovi

Comment thread Polyhedral/Mathlib/Geometry/Convex/AffineMap/Module.lean Outdated
@ooovi

ooovi commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Thanks! :)

@ooovi
ooovi merged commit 0e36a22 into ooovi:main Oct 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants