The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.Algebra.Module.ZLattice.Basic

88 declarations. Mathlib docs · Source

ℤ-lattices

Let E be a finite-dimensional vector space over a NormedLinearOrderedField K with a solid norm that is also a FloorRing, e.g. ℝ. A (full) ℤ-lattice L of E is a discrete subgroup of E such that L spans E over K.

A ℤ-lattice L can be defined in two ways:

  • For b a basis of E, then L = Submodule.span ℤ (Set.range b) is a ℤ-lattice of E
  • As a ℤ-submodule of E with the additional properties:
    • DiscreteTopology L, that is L is discrete
    • Submodule.span ℝ (L : Set E) = ⊤, that is L spans E over K.

Results about the first point of view are in the ZSpan namespace and results about the second point of view are in the ZLattice namespace.

Main results and definitions

  • ZSpan.isAddFundamentalDomain: for a ℤ-lattice Submodule.span ℤ (Set.range b), proves that the set defined by ZSpan.fundamentalDomain is a fundamental domain.
  • ZLattice.module_free: a ℤ-submodule of E that is discrete and spans E over K is a free ℤ-module
  • ZLattice.rank: a ℤ-submodule of E that is discrete and spans E over K is free of ℤ-rank equal to the K-rank of E
  • ZLattice.comap: for e : F → E a linear map and L : Submodule ℤ E, L.comap e is the Submodule ℤ F that is the pullback of L by e. If IsZLattice L and e is a continuous linear equiv, then it is a IsZLattice of F, see instIsZLatticeComap.

Note

There is also Submodule.IsFullLattice which has slightly different applications. There no topology is needed and discreteness is replaced by finite generation together with a linear independence condition.

Implementation notes

A ZLattice could be defined either as a AddSubgroup E or a Submodule ℤ E. However, the module aspect appears to be the more useful one (especially in computations involving basis) and is also consistent with the ZSpan construction of ℤ-lattices.

theorem ZSpan.fract.congr_simp E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b b_1 : Module.Basis ι K E),
  b = b_1 →
    ∀ [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K] [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m m_1 : E),
      m = m_1 → ZSpan.fract b m = ZSpan.fract b_1 m_1

theorem basisOfTopLeSpanOfCardEqFinrank.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : OrzechProperty R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] {ι : Type u_3} [inst_4 : Fintype ι] (b b_1 : ι → M) (e_b : b = b_1)
  (le_span : ⊤ ≤ Submodule.span R (Set.range b)) (card_eq : Fintype.card ι = Module.finrank R M),
  basisOfTopLeSpanOfCardEqFinrank b le_span card_eq = basisOfTopLeSpanOfCardEqFinrank b_1 ⋯ card_eq

theorem ZSpan.ceil.congr_simp E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m m_1 : E), m = m_1 → ZSpan.ceil b m = ZSpan.ceil b m_1

theorem Module.Basis.ofZLatticeBasis.congr_simp E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : HasSolidNorm K] [inst_4 : FloorRing K] {E : Type u_2} [inst_5 : NormedAddCommGroup E]
  [inst_6 : NormedSpace K E] [inst_7 : FiniteDimensional K E] [inst_8 : ProperSpace E] (L : Submodule ℤ E)
  [inst_9 : DiscreteTopology ↥L] {ι : Type u_3} [hs : IsZLattice K L] (b b_1 : Module.Basis ι ℤ ↥L),
  b = b_1 → Module.Basis.ofZLatticeBasis K L b = Module.Basis.ofZLatticeBasis K L b_1

theorem ZSpan.floor.congr_simp E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m m_1 : E), m = m_1 → ZSpan.floor b m = ZSpan.floor b m_1

theorem ZSpan.span_top E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E), Submodule.span K ↑(Submodule.span ℤ (Set.range ⇑b)) = ⊤

theorem ZSpan.map E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) {F : Type u_4} [inst_3 : AddCommGroup F] [inst_4 : Module K F]
  (f : E ≃ₗ[K] F),
  Submodule.map (↑(LinearEquiv.restrictScalars ℤ f)) (Submodule.span ℤ (Set.range ⇑b)) =
    Submodule.span ℤ (Set.range ⇑(b.map f))

theorem ZSpan.smul E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) {c : K} (hc : c ≠ 0),
  c • Submodule.span ℤ (Set.range ⇑b) = Submodule.span ℤ (Set.range ⇑(b.isUnitSMul ⋯))

def ZSpan.fundamentalDomain E1 #

{E : Type u_1} →
  {ι : Type u_2} →
    {K : Type u_3} →
      [inst : NormedField K] →
        [inst_1 : NormedAddCommGroup E] → [inst_2 : NormedSpace K E] → Module.Basis ι K E → [LinearOrder K] → Set E

The fundamental domain of the ℤ-lattice spanned by b. See ZSpan.isAddFundamentalDomain for the proof that it is a fundamental domain.

theorem ZSpan.mem_fundamentalDomain E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] {m : E},
  m ∈ ZSpan.fundamentalDomain b ↔ ∀ (i : ι), (b.repr m) i ∈ Set.Ico 0 1

theorem ZSpan.map_fundamentalDomain E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] {F : Type u_4}
  [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace K F] (f : E ≃ₗ[K] F),
  ⇑f '' ZSpan.fundamentalDomain b = ZSpan.fundamentalDomain (b.map f)

theorem ZSpan.fundamentalDomain_reindex E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] {ι' : Type u_4} (e : ι ≃ ι'),
  ZSpan.fundamentalDomain (b.reindex e) = ZSpan.fundamentalDomain b

theorem ZSpan.fundamentalDomain_pi_basisFun E1 #

∀ {ι : Type u_2} [inst : Fintype ι], ZSpan.fundamentalDomain (Pi.basisFun ℝ ι) = Set.univ.pi fun x ↦ Set.Ico 0 1

def ZSpan.floor E1 #

{E : Type u_1} →
  {ι : Type u_2} →
    {K : Type u_3} →
      [inst : NormedField K] →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            (b : Module.Basis ι K E) →
              [inst_3 : LinearOrder K] →
                [IsStrictOrderedRing K] → [FloorRing K] → [Fintype ι] → E → ↥(Submodule.span ℤ (Set.range ⇑b))

The map that sends a vector of E to the element of the ℤ-lattice spanned by b obtained by rounding down its coordinates on the basis b.

def ZSpan.ceil E1 #

{E : Type u_1} →
  {ι : Type u_2} →
    {K : Type u_3} →
      [inst : NormedField K] →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            (b : Module.Basis ι K E) →
              [inst_3 : LinearOrder K] →
                [IsStrictOrderedRing K] → [FloorRing K] → [Fintype ι] → E → ↥(Submodule.span ℤ (Set.range ⇑b))

The map that sends a vector of E to the element of the ℤ-lattice spanned by b obtained by rounding up its coordinates on the basis b.

theorem ZSpan.repr_floor_apply E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E) (i : ι), (b.repr ↑(ZSpan.floor b m)) i = ↑⌊(b.repr m) i⌋

theorem ZSpan.repr_ceil_apply E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E) (i : ι), (b.repr ↑(ZSpan.ceil b m)) i = ↑⌈(b.repr m) i⌉

theorem ZSpan.floor_eq_self_of_mem E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι], ∀ m ∈ Submodule.span ℤ (Set.range ⇑b), ↑(ZSpan.floor b m) = m

theorem ZSpan.ceil_eq_self_of_mem E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι], ∀ m ∈ Submodule.span ℤ (Set.range ⇑b), ↑(ZSpan.ceil b m) = m

def ZSpan.fract E1 #

{E : Type u_1} →
  {ι : Type u_2} →
    {K : Type u_3} →
      [inst : NormedField K] →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            Module.Basis ι K E →
              [inst_3 : LinearOrder K] → [IsStrictOrderedRing K] → [FloorRing K] → [Fintype ι] → E → E

The map that sends a vector E to the fundamentalDomain of the lattice, see ZSpan.fract_mem_fundamentalDomain, and fractRestrict for the map with the codomain restricted to fundamentalDomain.

theorem ZSpan.fract_apply E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E), ZSpan.fract b m = m - ↑(ZSpan.floor b m)

theorem ZSpan.repr_fract_apply E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E) (i : ι), (b.repr (ZSpan.fract b m)) i = Int.fract ((b.repr m) i)

theorem ZSpan.fract_fract E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E), ZSpan.fract b (ZSpan.fract b m) = ZSpan.fract b m

theorem ZSpan.fract_zSpan_add E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E) {v : E},
  v ∈ Submodule.span ℤ (Set.range ⇑b) → ZSpan.fract b (v + m) = ZSpan.fract b m

theorem ZSpan.fract_add_ZSpan E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m : E) {v : E},
  v ∈ Submodule.span ℤ (Set.range ⇑b) → ZSpan.fract b (m + v) = ZSpan.fract b m

theorem ZSpan.fract_eq_self E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] {b : Module.Basis ι K E} [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] {x : E}, ZSpan.fract b x = x ↔ x ∈ ZSpan.fundamentalDomain b

theorem ZSpan.fract_mem_fundamentalDomain E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (x : E), ZSpan.fract b x ∈ ZSpan.fundamentalDomain b

def ZSpan.fractRestrict E1 #

{E : Type u_1} →
  {ι : Type u_2} →
    {K : Type u_3} →
      [inst : NormedField K] →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            (b : Module.Basis ι K E) →
              [inst_3 : LinearOrder K] →
                [IsStrictOrderedRing K] → [FloorRing K] → [Fintype ι] → E → ↑(ZSpan.fundamentalDomain b)

The map fract with codomain restricted to fundamentalDomain.

theorem ZSpan.fractRestrict_surjective E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι], Function.Surjective (ZSpan.fractRestrict b)

theorem ZSpan.fractRestrict_apply E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (x : E), ↑(ZSpan.fractRestrict b x) = ZSpan.fract b x

theorem ZSpan.fract_eq_fract E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (m n : E),
  ZSpan.fract b m = ZSpan.fract b n ↔ -m + n ∈ Submodule.span ℤ (Set.range ⇑b)

theorem ZSpan.norm_fract_le E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] [HasSolidNorm K] (m : E), ‖ZSpan.fract b m‖ ≤ ∑ i, ‖b i‖

theorem ZSpan.coe_floor_self E0 #

∀ {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : FloorRing K] [inst_4 : Fintype ι] [inst_5 : Unique ι] (k : K),
  ↑(ZSpan.floor (Module.Basis.singleton ι K) k) = ↑⌊k⌋

theorem ZSpan.coe_fract_self E0 #

∀ {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : FloorRing K] [inst_4 : Fintype ι] [inst_5 : Unique ι] (k : K),
  ZSpan.fract (Module.Basis.singleton ι K) k = Int.fract k

theorem ZSpan.fundamentalDomain_isBounded E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [IsStrictOrderedRing K] [FloorRing K]
  [Finite ι] [HasSolidNorm K], Bornology.IsBounded (ZSpan.fundamentalDomain b)

theorem ZSpan.vadd_mem_fundamentalDomain E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (y : ↥(Submodule.span ℤ (Set.range ⇑b))) (x : E),
  y +ᵥ x ∈ ZSpan.fundamentalDomain b ↔ y = -ZSpan.floor b x

theorem ZSpan.exist_unique_vadd_mem_fundamentalDomain E1 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [IsStrictOrderedRing K] [FloorRing K]
  [Finite ι] (x : E), ∃! v, v +ᵥ x ∈ ZSpan.fundamentalDomain b

def ZSpan.quotientEquiv E1 #

{E : Type u_1} →
  {ι : Type u_2} →
    {K : Type u_3} →
      [inst : NormedField K] →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            (b : Module.Basis ι K E) →
              [inst_3 : LinearOrder K] →
                [IsStrictOrderedRing K] →
                  [FloorRing K] → [Fintype ι] → E ⧸ Submodule.span ℤ (Set.range ⇑b) ≃ ↑(ZSpan.fundamentalDomain b)

The map ZSpan.fractRestrict defines an equiv map between E ⧸ span ℤ (Set.range b) and ZSpan.fundamentalDomain b.

theorem ZSpan.quotientEquiv_apply_mk E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (x : E),
  (ZSpan.quotientEquiv b) (Submodule.Quotient.mk x) = ZSpan.fractRestrict b x

theorem ZSpan.quotientEquiv.symm_apply E0 #

∀ {E : Type u_1} {ι : Type u_2} {K : Type u_3} [inst : NormedField K] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] (b : Module.Basis ι K E) [inst_3 : LinearOrder K] [inst_4 : IsStrictOrderedRing K]
  [inst_5 : FloorRing K] [inst_6 : Fintype ι] (x : ↑(ZSpan.fundamentalDomain b)),
  (ZSpan.quotientEquiv b).symm x = Submodule.Quotient.mk ↑x

theorem ZSpan.discreteTopology_pi_basisFun E1 #

∀ {ι : Type u_2} [inst : Finite ι], DiscreteTopology ↥(Submodule.span ℤ (Set.range ⇑(Pi.basisFun ℝ ι)))

theorem ZSpan.fundamentalDomain_subset_parallelepiped E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [inst_2 : Fintype ι], ZSpan.fundamentalDomain b ⊆ parallelepiped ⇑b

instance ZSpan.instDiscreteTopologySubtypeMemSubmoduleIntSpanRangeCoeBasisRealOfFinite E0 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [Finite ι], DiscreteTopology ↥(Submodule.span ℤ (Set.range ⇑b))

instance ZSpan.instDiscreteTopologySubtypeMemAddSubgroupToAddSubgroupIntSpanRangeCoeBasisRealOfFinite E0 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [Finite ι], DiscreteTopology ↥(Submodule.span ℤ (Set.range ⇑b)).toAddSubgroup

theorem ZSpan.setFinite_inter E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [ProperSpace E] [Finite ι] {s : Set E}, Bornology.IsBounded s → (s ∩ ↑(Submodule.span ℤ (Set.range ⇑b))).Finite

theorem ZSpan.fundamentalDomain_measurableSet E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [inst_2 : MeasurableSpace E] [OpensMeasurableSpace E] [Finite ι], MeasurableSet (ZSpan.fundamentalDomain b)

theorem ZSpan.isAddFundamentalDomain E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [Finite ι] [inst_3 : MeasurableSpace E] [OpensMeasurableSpace E] (μ : MeasureTheory.Measure E),
  MeasureTheory.IsAddFundamentalDomain (↥(Submodule.span ℤ (Set.range ⇑b))) (ZSpan.fundamentalDomain b) μ

For a ℤ-lattice Submodule.span ℤ (Set.range b), proves that the set defined by ZSpan.fundamentalDomain is a fundamental domain.

theorem ZSpan.isAddFundamentalDomain' E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [Finite ι] [inst_3 : MeasurableSpace E] [OpensMeasurableSpace E] (μ : MeasureTheory.Measure E),
  MeasureTheory.IsAddFundamentalDomain (↥(Submodule.span ℤ (Set.range ⇑b)).toAddSubgroup) (ZSpan.fundamentalDomain b) μ

A version of ZSpan.isAddFundamentalDomain for AddSubgroup.

theorem ZSpan.measure_fundamentalDomain_ne_zero E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [Finite ι] [inst_3 : MeasurableSpace E] [BorelSpace E] {μ : MeasureTheory.Measure E} [μ.IsAddHaarMeasure],
  μ (ZSpan.fundamentalDomain b) ≠ 0

theorem ZSpan.measure_fundamentalDomain E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [inst_2 : Fintype ι] [inst_3 : DecidableEq ι] [inst_4 : MeasurableSpace E] (μ : MeasureTheory.Measure E)
  [BorelSpace E] [μ.IsAddHaarMeasure] (b₀ : Module.Basis ι ℝ E),
  μ (ZSpan.fundamentalDomain b) = ENNReal.ofReal |b₀.det ⇑b| * μ (ZSpan.fundamentalDomain b₀)

theorem ZSpan.measureReal_fundamentalDomain E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [inst_2 : Fintype ι] [inst_3 : DecidableEq ι] [inst_4 : MeasurableSpace E] (μ : MeasureTheory.Measure E)
  [BorelSpace E] [μ.IsAddHaarMeasure] (b₀ : Module.Basis ι ℝ E),
  μ.real (ZSpan.fundamentalDomain b) = |b₀.det ⇑b| * μ.real (ZSpan.fundamentalDomain b₀)

theorem ZSpan.volume_fundamentalDomain E0 #

∀ {ι : Type u_2} [inst : Fintype ι] [inst_1 : DecidableEq ι] (b : Module.Basis ι ℝ (ι → ℝ)),
  MeasureTheory.volume (ZSpan.fundamentalDomain b) = ENNReal.ofReal |(Matrix.of ⇑b).det|

theorem ZSpan.volume_real_fundamentalDomain E0 #

∀ {ι : Type u_2} [inst : Fintype ι] [inst_1 : DecidableEq ι] (b : Module.Basis ι ℝ (ι → ℝ)),
  MeasureTheory.volume.real (ZSpan.fundamentalDomain b) = |(Matrix.of ⇑b).det|

theorem ZSpan.fundamentalDomain_ae_parallelepiped E1 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (b : Module.Basis ι ℝ E)
  [inst_2 : Fintype ι] [inst_3 : MeasurableSpace E] (μ : MeasureTheory.Measure E) [BorelSpace E] [μ.IsAddHaarMeasure],
  ZSpan.fundamentalDomain b =ᵐ[μ] parallelepiped ⇑b

class IsZLattice E1 #

(K : Type u_1) →
  [inst : NormedField K] →
    {E : Type u_2} →
      [inst_1 : NormedAddCommGroup E] → [NormedSpace K E] → (L : Submodule ℤ E) → [DiscreteTopology ↥L] → Prop

L : Submodule ℤ E where E is a vector space over a normed field K is a ℤ-lattice if it is discrete and spans E over K.

ctor IsZLattice.mk E0 #

∀ {K : Type u_1} [inst : NormedField K] {E : Type u_2} [inst_1 : NormedAddCommGroup E] [inst_2 : NormedSpace K E]
  {L : Submodule ℤ E} [inst_3 : DiscreteTopology ↥L], Submodule.span K ↑L = ⊤ → IsZLattice K L

theorem IsZLattice.span_top E1 #

∀ {K : Type u_1} {inst : NormedField K} {E : Type u_2} {inst_1 : NormedAddCommGroup E} {inst_2 : NormedSpace K E}
  {L : Submodule ℤ E} {inst_3 : DiscreteTopology ↥L} [self : IsZLattice K L], Submodule.span K ↑L = ⊤

L spans the full space E over K.

instance instIsZLatticeRealSpan E0 #

∀ {E : Type u_1} {ι : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [inst_2 : Finite ι]
  (b : Module.Basis ι ℝ E), IsZLattice ℝ (Submodule.span ℤ (Set.range ⇑b))

theorem ZLattice.FG E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [HasSolidNorm K] [FloorRing K]
  {E : Type u_2} [inst_5 : NormedAddCommGroup E] [inst_6 : NormedSpace K E] [FiniteDimensional K E] [ProperSpace E]
  (L : Submodule ℤ E) [inst_9 : DiscreteTopology ↥L] [hs : IsZLattice K L], L.FG

theorem ZLattice.module_finite E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [HasSolidNorm K] [FloorRing K]
  {E : Type u_2} [inst_5 : NormedAddCommGroup E] [inst_6 : NormedSpace K E] [FiniteDimensional K E] [ProperSpace E]
  (L : Submodule ℤ E) [inst_9 : DiscreteTopology ↥L] [IsZLattice K L], Module.Finite ℤ ↥L

instance instModuleFinite_of_discrete_submodule E0 #

∀ {E : Type u_3} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E)
  [DiscreteTopology ↥L], Module.Finite ℤ ↥L

theorem ZLattice.module_free E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [HasSolidNorm K] [FloorRing K]
  {E : Type u_2} [inst_5 : NormedAddCommGroup E] [inst_6 : NormedSpace K E] [FiniteDimensional K E] [ProperSpace E]
  (L : Submodule ℤ E) [inst_9 : DiscreteTopology ↥L] [IsZLattice K L], Module.Free ℤ ↥L

instance instModuleFree_of_discrete_submodule E0 #

∀ {E : Type u_3} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E)
  [DiscreteTopology ↥L], Module.Free ℤ ↥L

theorem ZLattice.rank E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [HasSolidNorm K] [FloorRing K]
  {E : Type u_2} [inst_5 : NormedAddCommGroup E] [inst_6 : NormedSpace K E] [FiniteDimensional K E] [ProperSpace E]
  (L : Submodule ℤ E) [inst_9 : DiscreteTopology ↥L] [hs : IsZLattice K L], Module.finrank ℤ ↥L = Module.finrank K E

def Module.Basis.ofZLatticeBasis E1 #

(K : Type u_1) →
  [inst : NormedField K] →
    [inst_1 : LinearOrder K] →
      [IsStrictOrderedRing K] →
        [HasSolidNorm K] →
          [FloorRing K] →
            {E : Type u_2} →
              [inst_5 : NormedAddCommGroup E] →
                [inst_6 : NormedSpace K E] →
                  [FiniteDimensional K E] →
                    [ProperSpace E] →
                      (L : Submodule ℤ E) →
                        [inst_9 : DiscreteTopology ↥L] →
                          {ι : Type u_3} → [hs : IsZLattice K L] → Module.Basis ι ℤ ↥L → Module.Basis ι K E

Any ℤ-basis of L is also a K-basis of E.

theorem Module.Basis.ofZLatticeBasis_apply E0 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : HasSolidNorm K] [inst_4 : FloorRing K] {E : Type u_2} [inst_5 : NormedAddCommGroup E]
  [inst_6 : NormedSpace K E] [inst_7 : FiniteDimensional K E] [inst_8 : ProperSpace E] (L : Submodule ℤ E)
  [inst_9 : DiscreteTopology ↥L] {ι : Type u_3} [hs : IsZLattice K L] (b : Module.Basis ι ℤ ↥L) (i : ι),
  (Module.Basis.ofZLatticeBasis K L b) i = ↑(b i)

theorem Module.Basis.ofZLatticeBasis_repr_apply E0 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : HasSolidNorm K] [inst_4 : FloorRing K] {E : Type u_2} [inst_5 : NormedAddCommGroup E]
  [inst_6 : NormedSpace K E] [inst_7 : FiniteDimensional K E] [inst_8 : ProperSpace E] (L : Submodule ℤ E)
  [inst_9 : DiscreteTopology ↥L] {ι : Type u_3} [hs : IsZLattice K L] (b : Module.Basis ι ℤ ↥L) (x : ↥L) (i : ι),
  ((Module.Basis.ofZLatticeBasis K L b).repr ↑x) i = ↑((b.repr x) i)

theorem Module.Basis.ofZLatticeBasis_span E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : HasSolidNorm K] [inst_4 : FloorRing K] {E : Type u_2} [inst_5 : NormedAddCommGroup E]
  [inst_6 : NormedSpace K E] [inst_7 : FiniteDimensional K E] [inst_8 : ProperSpace E] (L : Submodule ℤ E)
  [inst_9 : DiscreteTopology ↥L] {ι : Type u_3} [hs : IsZLattice K L] (b : Module.Basis ι ℤ ↥L),
  Submodule.span ℤ (Set.range ⇑(Module.Basis.ofZLatticeBasis K L b)) = L

theorem ZLattice.isAddFundamentalDomain E1 #

∀ {ι : Type u_3} {E : Type u_4} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E]
  [inst_2 : FiniteDimensional ℝ E] {L : Submodule ℤ E} [inst_3 : DiscreteTopology ↥L] [inst_4 : IsZLattice ℝ L]
  [Finite ι] (b : Module.Basis ι ℤ ↥L) [inst_6 : MeasurableSpace E] [OpensMeasurableSpace E]
  (μ : MeasureTheory.Measure E),
  MeasureTheory.IsAddFundamentalDomain (↥L) (ZSpan.fundamentalDomain (Module.Basis.ofZLatticeBasis ℝ L b)) μ

instance instCountable_of_discrete_submodule E0 #

∀ {E : Type u_4} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E)
  [inst_3 : DiscreteTopology ↥L] [IsZLattice ℝ L], Countable ↥L

theorem Real.finrank_eq_int_finrank_of_discrete E1 #

∀ {E : Type u_4} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [FiniteDimensional ℝ E] {s : Set E},
  DiscreteTopology ↥(Submodule.span ℤ s) → Set.finrank ℝ s = Set.finrank ℤ s

Assume that the set s spans over ℤ a discrete set. Then its ℝ-rank is equal to its ℤ-rank.

def IsZLattice.basis E1 #

{ι : Type u_1} →
  [inst : Fintype ι] →
    (L : Submodule ℤ (ι → ℝ)) → [inst_1 : DiscreteTopology ↥L] → [IsZLattice ℝ L] → Module.Basis ι ℤ ↥L

Return an arbitrary ℤ-basis of a lattice L of ι → ℝ indexed by ι.

def ZLattice.comap E1 #

(K : Type u_1) →
  [inst : NormedField K] →
    {E : Type u_2} →
      {F : Type u_3} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            [inst_3 : NormedAddCommGroup F] → [inst_4 : NormedSpace K F] → Submodule ℤ E → (F →ₗ[K] E) → Submodule ℤ F

For e : F → E a linear map and L : Submodule ℤ E, L.comap e is the Submodule ℤ F that is the pullback of L by e. If IsZLattice L and e is a continuous linear equiv, then it is a IsZLattice of F, see instIsZLatticeComap.

theorem ZLattice.coe_comap E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  (e : F →ₗ[K] E), ↑(ZLattice.comap K L e) = ⇑e ⁻¹' ↑L

theorem ZLattice.comap_refl E1 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} [inst_1 : NormedAddCommGroup E] [inst_2 : NormedSpace K E]
  (L : Submodule ℤ E), ZLattice.comap K L 1 = L

theorem ZLattice.comap_discreteTopology E1 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  [hL : DiscreteTopology ↥L] {e : F →ₗ[K] E},
  Continuous ⇑e → Function.Injective ⇑e → DiscreteTopology ↥(ZLattice.comap K L e)

instance instDiscreteTopologySubtypeMemSubmoduleIntComap E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  [DiscreteTopology ↥L] (e : F ≃L[K] E), DiscreteTopology ↥(ZLattice.comap K L ↑↑e)

theorem ZLattice.comap_span_top E1 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E),
  Submodule.span K ↑L = ⊤ → ∀ {e : F →ₗ[K] E}, ↑L ⊆ ↑e.range → Submodule.span K ↑(ZLattice.comap K L e) = ⊤

instance instIsZLatticeComap E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  [inst_5 : DiscreteTopology ↥L] [IsZLattice K L] (e : F ≃L[K] E), IsZLattice K (ZLattice.comap K L ↑↑e)

theorem ZLattice.comap_toAddSubgroup E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  (e : F →ₗ[K] E), (ZLattice.comap K L e).toAddSubgroup = AddSubgroup.comap e.toAddMonoidHom L.toAddSubgroup

theorem ZLattice.comap_comp E1 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  {G : Type u_4} [inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace K G] (e : F →ₗ[K] E) (e' : G →ₗ[K] F),
  ZLattice.comap K (ZLattice.comap K L e) e' = ZLattice.comap K L (e ∘ₗ e')

def ZLattice.comap_equiv E1 #

(K : Type u_1) →
  [inst : NormedField K] →
    {E : Type u_2} →
      {F : Type u_3} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            [inst_3 : NormedAddCommGroup F] →
              [inst_4 : NormedSpace K F] → (L : Submodule ℤ E) → (e : F ≃ₗ[K] E) → ↥L ≃ₗ[ℤ] ↥(ZLattice.comap K L ↑e)

If e is a linear equivalence, it induces a ℤ-linear equivalence between L and ZLattice.comap K L e.

theorem ZLattice.comap_equiv_apply E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  (e : F ≃ₗ[K] E) (x : ↥L), ↑((ZLattice.comap_equiv K L e) x) = e.symm ↑x

def Module.Basis.ofZLatticeComap E1 #

(K : Type u_1) →
  [inst : NormedField K] →
    {E : Type u_2} →
      {F : Type u_3} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : NormedSpace K E] →
            [inst_3 : NormedAddCommGroup F] →
              [inst_4 : NormedSpace K F] →
                (L : Submodule ℤ E) →
                  (e : F ≃ₗ[K] E) → {ι : Type u_4} → Module.Basis ι ℤ ↥L → Module.Basis ι ℤ ↥(ZLattice.comap K L ↑e)

The basis of ZLattice.comap K L e given by the image of a basis b of L by e.symm.

theorem Module.Basis.ofZLatticeComap_apply E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  (e : F ≃ₗ[K] E) {ι : Type u_4} (b : Module.Basis ι ℤ ↥L) (i : ι),
  ↑((Module.Basis.ofZLatticeComap K L e b) i) = e.symm ↑(b i)

theorem Module.Basis.ofZLatticeComap_repr_apply E0 #

∀ (K : Type u_1) [inst : NormedField K] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace K E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace K F] (L : Submodule ℤ E)
  (e : F ≃ₗ[K] E) {ι : Type u_4} (b : Module.Basis ι ℤ ↥L) (x : ↥L) (i : ι),
  ((Module.Basis.ofZLatticeComap K L e b).repr ((ZLattice.comap_equiv K L e) x)) i = (b.repr x) i

theorem Module.Basis.ofZLatticeBasis_comap E1 #

∀ (K : Type u_1) [inst : NormedField K] [inst_1 : LinearOrder K] [inst_2 : IsStrictOrderedRing K]
  [inst_3 : HasSolidNorm K] [inst_4 : FloorRing K] {E : Type u_2} [inst_5 : NormedAddCommGroup E]
  [inst_6 : NormedSpace K E] [inst_7 : FiniteDimensional K E] [inst_8 : ProperSpace E] {F : Type u_3}
  [inst_9 : NormedAddCommGroup F] [inst_10 : NormedSpace K F] [inst_11 : FiniteDimensional K F]
  [inst_12 : ProperSpace F] (L : Submodule ℤ E) [inst_13 : DiscreteTopology ↥L] [inst_14 : IsZLattice K L]
  (e : F ≃L[K] E) {ι : Type u_4} (b : Module.Basis ι ℤ ↥L),
  Module.Basis.ofZLatticeBasis K (ZLattice.comap K L ↑↑e) (Module.Basis.ofZLatticeComap K L (↑e) b) =
    (Module.Basis.ofZLatticeBasis K L b).map ↑e.symm

theorem IsZLattice.isCompact_range_of_periodic E1 #

∀ {E : Type u_1} {F : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] [FiniteDimensional ℝ E]
  [inst_3 : TopologicalSpace F] (L : Submodule ℤ E) [inst_4 : DiscreteTopology ↥L] [IsZLattice ℝ L] (f : E → F),
  Continuous f → (∀ (z w : E), w ∈ L → f (z + w) = f z) → IsCompact (Set.range f)

If f is periodic wrt a ℤ-lattice, then the range of f is compact.