Skip to content

Commit

Permalink
better docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Jul 17, 2023
1 parent 44d060f commit 7e94d7c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/geometric_algebra/from_mathlib/category_theory.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ import geometric_algebra.from_mathlib.basic
import for_mathlib.linear_algebra.quadratic_form.isometric_map

open category_theory
open quadratic_form

/-! # Category-theoretic interpretations of `clifford_algebra`
## Main definitions
/-! # Category-theoretic interpretations of `clifford_algebra` -/
* `QuadraticModule R`: the category of quadratic modules
* `CliffordAlgebra`: the functor from quadratic modules to algebras
-/

universes v u

Expand All @@ -20,7 +28,6 @@ structure QuadraticModule extends Module.{v} R :=
variables {R}

namespace QuadraticModule
open quadratic_form

instance : has_coe_to_sort (QuadraticModule.{v} R) (Type v) := ⟨QuadraticModule.carrier⟩

Expand Down Expand Up @@ -51,6 +58,8 @@ instance (M N : QuadraticModule R) : linear_map_class (M ⟶ N) R M N :=
{ coe := λ f, f,
.. isometric_map.semilinear_map_class }

end QuadraticModule

/-- The "clifford algebra" functor, sending a quadratic R-module V to the clifford algebra on `V`. -/
@[simps]
def CliffordAlgebra : QuadraticModule.{u} R ⥤ Algebra.{u} R :=
Expand All @@ -67,5 +76,3 @@ def CliffordAlgebra : QuadraticModule.{u} R ⥤ Algebra.{u} R :=
simp only [free_algebra.lift_ι_apply, category_theory.coe_comp, function.comp_app,
types_comp_apply]
end }

end QuadraticModule

0 comments on commit 7e94d7c

Please sign in to comment.