Zulip Chat Archive
Stream: mathlib4
Topic: Dual cones without the inner product space assumption
Mitchell Lee (Dec 05 2024 at 06:54):
The "inner dual cone" and "dual cone" constructions in mathlib (Set.innerDualCone and PointedCone.dual) require the cone to be a subset of an inner product space over . However, the construction can be done in much more generality, as follows.
Let be a module over an arbitrary ordered semiring , and let be a pointed cone (i.e. an -submodule of , where is the subsemiring of consisting of the nonnegative elements). Then we may define the dual of to be the set
where is the dual module. It is not hard to see that is also a pointed cone.
If and is an inner product space, then there is a canonical isomorphism between and , and thus the dual cone of can be thought of as a subset of rather than as a subset of . This recovers the constructions that are currently in mathlib.
Many important theorems about cones can be stated in this generality. For example, one formulation of the Minkowski–Weyl theorem is that if is a finite-dimensional vector space over an ordered field and is a pointed cone which is finitely generated as an -module, then so is . I know @Yaël Dillies is working on this (#Is there code for X? > Main Theorem of Polytope Theory ).
Unfortunately, the supporting hyperplane theorem (which, in this formulation, can be stated simply as ) seems to require to be a finite-dimensional vector space over . But this assumption can be relaxed to being any ordered field if is finitely generated as an -module (this is Farkas' lemma).
I think that this generality is quite important, because it is common to work with polytopes and cones over and . (For one thing, this makes them computable.) I have created a github issue: #19738. However, I am not sure how to proceed with actually refactoring the existing library to work in this generality, or whether this is even a good idea. Does anyone have any thoughts?
Johan Commelin (Dec 05 2024 at 07:24):
Would it make sense to abstract away from to a pair of modules with a perfect pairing?
Johan Commelin (Dec 05 2024 at 07:24):
Of course this excludes of infinite rank. But at the same time it brings back a symmetry, so that will typecheck again.
Johan Commelin (Dec 05 2024 at 07:25):
The perfect pairing approach is also the one used in docs#RootPairing
Mitchell Lee (Dec 05 2024 at 07:27):
Yeah, that would probably be a good idea.
Mitchell Lee (Dec 05 2024 at 10:50):
The dual can be defined with respect to any pairing (yielding an antitone Galois connection between the pointed cones in and the pointed cones in ), though many of the theorems will only hold for perfect pairings.
Mitchell Lee (Dec 05 2024 at 11:00):
Also, the concept of dual can be made even more general by replacing the subsemiring with an arbitrary subsemiring, though I am not sure if this has any use.
Mitchell Lee (Dec 05 2024 at 11:08):
For example, let be a field extension and let be a vector space over . Then for any subspace over , one may form the space
where . Is this concept useful?
Johan Commelin (Dec 05 2024 at 16:25):
I don't see an immediate use for it. So I would stick to for now.
Mitchell Lee (Dec 06 2024 at 06:02):
By the way, here's a coordinate-free and topology-free proof of (one direction of) Minkowski–Weyl for cones by a "deletion-contraction" argument. I can't find this in the literature, but I'm sure I'm not the first person to write this down. It is the result of simply taking the existing proofs using Fourier–Motzkin elimination and removing the coordinates from them. This is similar to how the exchange property in linear algebra can be thought of as removing the coordinates from Gaussian elimination.
Lemma
Let be a vector space over an ordered field , let , and let be a finite set. Let be the half space corresponding to , let be the hyperplane corresponding to , and let be the pointed cone spanned by . Then is spanned over by the set .
Proof
We use induction on the size of the set . In the base case, we have ; this implies and the lemma follows.
For the inductive step, suppose that the lemma holds for a set . That is, if we define , then is spanned over by the set . Choose any (so ); we will show that the lemma holds for as well.
Let ; we will show that is in the -span of . If , this is obvious, so assume that ; that is, . Since is spanned by , we may write for some and . We have . Since and , we conclude that . Then
Consider the vectors and appearing in this nonnegative linear combination. The first vector is in the -span of by the inductive hypothesis. The second vector is an element of : it is in because it is a nonnegative linear combination of and , and it is in by a simple computation. Hence, is in the -span of , as desired.
Lemma.
Let be a finite dimensional vector space over an ordered field . Let and let be the corresponding half spaces (i.e. .) Then is a finitely generated pointed cone.
Proof
We use induction on . If , then . Since is finitely generated over and is finitely generated over (by and ), we conclude that is also finitely generated over , as desired.
Suppose . Let . By the inductive hypothesis, is a finitely generated pointed cone; let be a finite generating set of .
Also, define the hyperplane . Then is itself a finite dimensional vector space over . By the inductive hypothesis, the set is an intersection of half spaces in , so it is a finitely generated pointed cone; let be a finite generating set of .
We claim that the finite set generates the cone . Since generates , it suffices to prove that generates , which is guaranteed by the previous lemma.
Theorem (Minkowski–Weyl).
Let be finite-dimensional vector spaces over an ordered field and let be a perfect pairing. Let be a finitely generated pointed cone. Then
is also a finitely generated pointed cone.
Proof.
Since is finitely generated, there exist such that . Then is the intersection of the half spaces , so it is a finitely generated pointed cone by the previous lemma.
Mitchell Lee (Dec 06 2024 at 20:18):
By the way, Wikipedia refers to the construction in mathlib as the "internal dual cone": https://en.m.wikipedia.org/wiki/Dual_cone_and_polar_cone
Mitchell Lee (Dec 06 2024 at 22:45):
@Yaël Dillies Do you have thoughts on this?
Last updated: May 02 2025 at 03:31 UTC