Skip to content

Commit 25c8ca5

Browse files
Level 1 documentation
1 parent 0d97f86 commit 25c8ca5

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

Game/Levels/LinearIndependenceSpanWorld 2.lean

Lines changed: 0 additions & 17 deletions
This file was deleted.

Game/Levels/LinearMapsWorld/Level01.lean

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,37 @@ def isBasis (B : Set V) : Prop :=
2424
Prove that the definition above is equivalent to saying $B$ is linearly independent and spans $V$.
2525
"
2626

27+
open VectorSpace Finset
28+
variable (K V : Type) [Field K] [AddCommGroup V] [DecidableEq V] [VectorSpace K V]
2729

2830
/--
2931
`isBasis K V B` means $B$ is a basis: linearly independent and spans $V$.
3032
-/
3133
def isBasis (B : Set V) : Prop :=
32-
linear_independent K V B ∧ span K V B = ⊤
34+
linear_independent_v K V B ∧ span K V B = ⊤
35+
36+
/--
37+
`isBasis K V B` means $B$ is a basis: linearly independent and spans $V$.
38+
-/
39+
DefinitionDoc isBasis as "isBasis"
40+
41+
NewDefinition isBasis
42+
43+
/--
44+
The definition of a basis is just linear independence and spanning.
45+
-/
46+
TheoremDoc basis_iff_independent_and_spanning as "basis_iff_independent_and_spanning" in "Bases"
47+
48+
TheoremTab "Bases"
3349

3450
/--
3551
The definition of a basis is just linear independence and spanning.
3652
-/
3753
Statement basis_iff_independent_and_spanning (B : Set V) :
38-
isBasis K V B ↔ (linear_independent K V B ∧ span K V B = ⊤) := by
54+
isBasis K V B ↔ (linear_independent_v K V B ∧ span K V B = ⊤) := by
3955
Hint "Try `unfold isBasis` to see the definition directly."
4056
unfold isBasis
41-
exact Iff.rfl
57+
rfl
4258

4359
Conclusion "
4460
You have formalized the mathematical definition of a basis for a vector space.

0 commit comments

Comments
 (0)