Rational and irrational linear and affine subspaces of
DefinitionMaxLatticeFree_Geometry_Supplement_RationalA linear subspace is rational if it is generated by the integral points it contains:
where is the real linear span. An affine subspace is rational if it is the affine hull of its integral points, . A subspace that is not rational is called irrational. For instance the line in contains only the integral point and is irrational, while is rational; the plane in is irrational, its integral points spanning only the line .
Rationality separates the two kinds of maximal lattice-free sets in Theorems 1, 2 and 5: cylinders over polytopes whose lineality space is rational, and hyperplanes whose direction is irrational.
Formalization Note The zero subspace is rational (the span of ). A nonempty rational affine subspace necessarily contains an integral point; the empty set is rational in the affine sense.
import Mathlib
import Definitions.Def_MaxLatticeFree_Inequalities_RelaxationModel
namespace MaxLatticeFree.Geometry.Supplement
open MaxLatticeFree.Inequalities
/-- A linear subspace `L ⊆ ℝⁿ` is *rational* if it is generated by the integral points it contains
(arXiv:1701.06543v1, p. 2): `L` is the real linear span of `L ∩ ℤⁿ`. `{0}` is rational. -/
def IsRationalSubspace {n : ℕ} (L : Submodule ℝ (EuclideanSpace ℝ (Fin n))) : Prop :=
Submodule.span ℝ ((L : Set (EuclideanSpace ℝ (Fin n))) ∩ integralPoints n) = L
/-- An affine subspace `A ⊆ ℝⁿ` (given as a set) is *rational* if it is generated by the integral
points it contains (arXiv:1701.06543v1, p. 2): `A` equals the affine hull of `A ∩ ℤⁿ`. A
nonempty rational affine subspace contains an integral point. -/
def IsRationalAffine {n : ℕ} (A : Set (EuclideanSpace ℝ (Fin n))) : Prop :=
((affineSpan ℝ (A ∩ integralPoints n) : AffineSubspace ℝ (EuclideanSpace ℝ (Fin n))) :
Set (EuclideanSpace ℝ (Fin n))) = A
end MaxLatticeFree.Geometry.Supplement