math / data /lean /OAI /Algebra /Finitistic /Localization /EvaluationFromAlgebra.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.5 kB
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