You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/adam/Adam/Levels/LinearAlgebra/L07_Span.lean

49 lines
1.2 KiB
Plaintext

import Adam.Metadata
2 years ago
import Mathlib.Algebra.Module.Submodule.Lattice
import Mathlib.Data.Real.Basic -- definiert ``
import Mathlib.Data.Fin.VecNotation -- Importiert Matrix/Vektor-Notation
--import Mathlib.LinearAlgebra.FinSupp -- contains `top_le_span_range_iff_forall_exists_fun`
import Mathlib.Tactic.FinCases
import Mathlib.Algebra.BigOperators.Finsupp -- default?
import Mathlib.LinearAlgebra.Span
import Mathlib.Tactic.LibrarySearch
import Mathlib
Game "Adam"
2 years ago
World "Module"
Level 7
Title "Hülle"
Introduction
"
"
-- notation "ℝ²" => Fin 2 →
open Submodule Set Finsupp
open BigOperators -- Summen Notation
-- TODO: Why is this not in Mathlib?
lemma mem_span_of_mem {V K : Type _} [Field K] [AddCommMonoid V]
[Module K V] (M : Set V) {x : V} (h : x ∈ M) :
x ∈ span K M := by
rw [mem_span]
intro p hp
specialize hp h
assumption
Statement
"Für $x, y \\in M$, zeige dass $x + 2y$ in der $K$-linearen Hülle $\\langle M \\rangle$ liegt."
{V K : Type _} [Field K] [AddCommMonoid V] [Module K V] (M : Set V) {x y : V}
(h₁ : x ∈ M) (h₂ : y ∈ M) :
x + (2 : K) • y ∈ span K M := by
apply add_mem
apply mem_span_of_mem
assumption
apply smul_mem
apply mem_span_of_mem
assumption