Download lean/OAI/Algebra/AuslanderReiten/Modules/CoinducedEmbedding.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.27 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Modules/CoinducedEmbedding.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Modules/CoinducedEmbedding.lean
-
curl -L -o CoinducedEmbedding.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Modules/CoinducedEmbedding.lean
2.27 kB
Lean 4 · 7
declarations statementsfull
def adjoint (φ : Module.Dual k M) : M →ₗ[R] Coinduced k R where body · 9 lines
toFun m := ⟨{
toFun := fun r => φ (r • m)
map_add' := fun r s => by simp [add_smul]
map_smul' := fun c r => by simp [smul_assoc] }⟩
map_add' m n := by ext r; simp [smul_add]
map_smul' r m := by
ext s
change φ (s • r • m) = φ ((s * r) • m)
rw [mul_smul]@[simp] theorem adjoint_eval_one (φ : Module.Dual k M) (m : M) :
(adjoint (R := R) φ m).functional (1 : R) = φ m := by simp [adjoint] noncomputable def finiteEmbedding : M →ₗ[R] (Fin (Module.finrank k M) → Coinduced k R) := body · 1 line
LinearMap.pi fun i => adjoint ((Module.finBasis k M).coord i)theorem finiteEmbedding_injective :
Function.Injective (finiteEmbedding (k := k) (R := R) (M := M)) := by proof · 6 lines
intro x y h
apply (Module.finBasis k M).ext_elem
intro i
have hi := congrArg (fun f : Fin (Module.finrank k M) → Coinduced k R =>
(f i).functional 1) h
simpa [finiteEmbedding, Module.Basis.coord_apply] using hinoncomputable def finiteFreeEmbedding : M →ₗ[R] (Fin (Module.finrank k M) → R) := body · 2 lines
LinearMap.pi fun i => τ.leftEquiv.symm.toLinearMap.comp
(Coinduced.adjoint ((Module.finBasis k M).coord i))theorem finiteFreeEmbedding_injective :
Function.Injective (τ.finiteFreeEmbedding (M := M)) := by proof · 5 lines
intro x y h
apply Coinduced.finiteEmbedding_injective (k := k) (R := R)
funext i
have hi := congrFun h i
exact τ.leftEquiv.symm.injective hitheorem exists_finiteFree_embedding :
∃ n : ℕ, ∃ i : M →ₗ[R] (Fin n → R), Function.Injective i := proof · 1 line
⟨Module.finrank k M, τ.finiteFreeEmbedding, τ.finiteFreeEmbedding_injective⟩Outline