Notes on "Linear Algebra Done Right"
So far my linear algebra knowledge was based on basic school-level linear algebra, 3Blue1Brown's "Essence of Linear Algebra" (it's brilliant!), and some intuitive understanding I gained while playing around with models' internals.
Linear algebra is essential in AI and it is especially important in mechanistic interpretability. So I decided to build a robust foundation. I settled on Sheldon Axler's Linear Algebra Done Right
(4th ed.). I also considered Gilbert Strang's Introduction to Linear Algebra; however I thought that proof-based approach would be more fun,1 It is fun indeed! But I often felt so stupid (and still do occasionally), because I just couldn't properly read what exactly is being asked to prove, or write a proof without having some circular reasoning. since I never had an experience with writing proofs.
You can find my notebook with some of the proofs here.
Vector Spaces
I spend a lot of time on this chapter.
It's not that the material itself was hard. The concepts are explained in a clear and accessible way. However the lack of experience with proof-writing slowed me down considerably. At this stage, I was essentially learning to prove rather than learning linear algebra itself.
To make it clear how bad I was in proving mathematical statements before starting the textbook: I didn't even know what's associativity and commutativity! So imagine me reading this problem:
Show that for all .
I was like, "well, isn't this clear that ? What am I supposed to prove here…?".
So Claude recommended me I learn some basics2 I also skimmed Paul R. Halmos's Naive Set Theory. It sped up the process. using Richard Hammack's Book of Proof (3rd ed.). Well—it helped me significantly! I've gradually learned to parse problems; use only previously declared definitions, axioms, and statements; and prove "for all" kind of problems using arbitrary elements.
Subspaces
I found it a bit challenging at the beginning to understand (if and only if) statements and why I need to cover both directions. For instance,
Suppose . Show that the set of continuous real-valued functions on the interval such that is a subspace of if and only if .
First, I thought, "what's the specific reason to say 'if and only if' rather than just saying 'if'". Then I referenced the Book of Proof and decomposed3 In general, I find it really helpful to explicitly translate English text using a mathematical notation and decompose it into separate pieces. that into the separate statements and , where is "the set of continuous real-valued functions on the interval such that is a subspace of " and is "". So the matter was to prove the following conditions:
- If , then .
- If , then .
Then I thought, "well… why showing that the conditions of a subspace force isn't enough for a complete proof?" But looking at the decomposed form made it crystal clear! The first direction supposes that is true and that it yields , but it is a mere assumption, not something that is definitely true; so we need to check if it's indeed a factual thing by plugging back ( condition).
It was definitely fun to learn a whole new language of proving stuff!
Finite-Dimensional Vector Spaces
Writing…
Linear Maps
Writing…