cfahlgren1/math / lean /OAI /Algebra /AffineCancellation /FactorDerivation.lean
cfahlgren1's picture
download
raw
1.9 kB
import OAI.Algebra.AffineCancellation.Model
namespace OAI
noncomputable section
namespace ComplexCancellation.FactorDerivation
variable {k S R : Type*} [CommRing k] [CommRing S] [CommRing R] [IsDomain R]
[Algebra k S] [Algebra k R]
variable (f : S →ₐ[k] R) (hf : Function.Injective f)
(D : Derivation k R R) (c : R) (hc : c ≠ 0)
(h : ∀ s : S, ∃ t : S, D (f s)=c*f t)
def value (s : S) : S := Classical.choose (h s)
omit [IsDomain R] in
lemma specification (s : S) : D (f s)=c*f (value f D c h s) := Classical.choose_spec (h s)
include hf hc in
lemma value_add (s t : S) : value f D c h (s+t)=value f D c h s+value f D c h t := by
apply hf
apply mul_left_cancel₀ hc
rw [← specification,map_add,map_add,map_add,mul_add,← specification,← specification]
include hf hc in
lemma value_smul (a : k) (s : S) : value f D c h (a • s)=a • value f D c h s := by
apply hf
apply mul_left_cancel₀ hc
rw [← specification,map_smul,Derivation.map_smul,map_smul,mul_smul_comm,← specification]
include hf hc in
lemma value_mul (s t : S) :
value f D c h (s*t)=s*value f D c h t+t*value f D c h s := by
apply hf
apply mul_left_cancel₀ hc
rw [← specification,map_mul,Derivation.leibniz,smul_eq_mul,smul_eq_mul,
specification f D c h s,specification f D c h t,map_add,map_mul,map_mul]
ring
def derivation : Derivation k S S where
toLinearMap := {
toFun := value f D c h
map_add' := value_add f hf D c hc h
map_smul' := value_smul f hf D c hc h }
map_one_eq_zero' := by
apply hf
apply mul_left_cancel₀ hc
change c*f (value f D c h 1)=c*f 0
rw [← specification,map_one,Derivation.map_one_eq_zero,map_zero,mul_zero]
leibniz' s t := by
exact value_mul f hf D c hc h s t
lemma apply_spec (s : S) : D (f s)=c*f (derivation f hf D c hc h s) := specification f D c h s
end ComplexCancellation.FactorDerivation
end
end OAI

Xet Storage Details

Size:
1.9 kB
·
Xet hash:
196b208b036c4e31520b10cd469eaf89f82a9e06b898b1b5b91f634fe6955b42

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.