File size: 1,498 Bytes
4a56cd6 | 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 | import OAI.Algebra.Finitistic.Localization.EvaluationModule
import Mathlib.Algebra.Algebra.Tower
namespace OAI
noncomputable section
namespace LittleFinitistic.QuadraticEncoding
universe u v w
variable {k : Type u} [Field k] {d t : β} (P : Relations k d t)
variable {R : Type v} [Ring R] [Algebra k R]
/-- The displayed finite list of quadratic equations, in an arbitrary k-algebra. -/
def Relations.Satisfies (x : Fin d β R) : Prop := β j,
(β h, β l, P.quadratic j h l β’ (x h * x l)) +
(β h, P.linear j h β’ x h) + P.constant j β’ (1 : R) = 0
namespace Representation
variable {P} {Y : Type w} [AddCommGroup Y] [Module k Y]
/-- Evaluate the quadratic presentation in any actual algebra action. -/
def ofAction (x : Fin d β R) (hx : P.Satisfies x) (Ο : R ββ[k] Module.End k Y) :
Representation P Y where
generator h := Ο (x h)
relation j := by
have h := congrArg Ο (hx j)
simpa only [map_add, map_sum, map_smul, map_mul, map_one, map_zero] using h
/-- In particular, every R-module supplies the required representation. -/
def ofModule (x : Fin d β R) (hx : P.Satisfies x)
[Module R Y] [IsScalarTower k R Y] : Representation P Y :=
ofAction x hx (Algebra.lsmul k k Y)
@[simp] theorem ofModule_generator (x : Fin d β R) (hx : P.Satisfies x)
[Module R Y] [IsScalarTower k R Y] (h : Fin d) (y : Y) :
(ofModule (Y := Y) x hx).generator h y = x h β’ y := rfl
end Representation
end LittleFinitistic.QuadraticEncoding
end
end OAI
|