File size: 2,505 Bytes
85c68bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/-
Copyright 2025 The Formal Conjectures Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module

public import Mathlib.Algebra.Category.ModuleCat.Sheaf.Free
public import Mathlib.Algebra.Category.ModuleCat.Sheaf.PushforwardContinuous
public import Mathlib.CategoryTheory.Sites.CoversTop.Basic

@[expose] public section

universe u v

namespace SheafOfModules

open CategoryTheory Limits

variable {C : Type u} [Category.{v, u} C]
variable {J : GrothendieckTopology C}
variable {R : Sheaf J RingCat} (M : SheafOfModules R)
variable [∀ (X : C), (J.over X).HasSheafCompose (forget₂ RingCat AddCommGrpCat)]
variable [∀ (X : C), HasWeakSheafify (J.over X) AddCommGrpCat]
variable [∀ (X : C), (J.over X).WEqualsLocallyBijective AddCommGrpCat]

/-- A vector bundle is a sheaf of modules that is locally isomorphic to
a free sheaf. -/
structure VectorBundleData (M : SheafOfModules.{v} R) where
  /-- The index type for the open cover on which the vector bundle is free. -/
  OpensIndex : Type u
  /-- The indexed family of opens on which the vector bundle is free. -/
  opens : OpensIndex → C
  /-- The indexed family of opens covers the base. -/
  coversTop : J.CoversTop opens
  /-- The indexed family of types that index local bases for the vector bundle. -/
  BasisIndex : OpensIndex → Type v
  /-- The restriction of the vector bundle to one of the opens is free. -/
  locallyFree : ∀ i, (M.over <| opens i) ≅ SheafOfModules.free (BasisIndex i)

structure FiniteRankVectorBundleData (M : SheafOfModules R) extends VectorBundleData M where
  /-- The predicate that every local basis in the defining data of the vector bundle is finite. -/
  finite : ∀ i, Finite (BasisIndex i)

/-- A class for vector bundles of constant finite rank. -/
class IsVectorBundleWithRank (M : SheafOfModules R) (n : ℕ) where
  /-- The predicate that a sheaf of modules is locally free. -/
  exists_vector_bundle_data : ∃ (D : M.FiniteRankVectorBundleData),
    ∀ i, Nat.card (D.BasisIndex i) = n

end SheafOfModules