Unit 1 of 8 · about 6 hours · explain, derive

Proof habits and shape notation

A correct calculation can still answer the wrong quantified question. Proof habits make the assumptions behind every later decomposition and solver visible.

You'll be able to

  • Translate a linear-algebra claim between prose, quantifiers, indexed sums and explicit shapes.
  • Prove an implication in both directions when needed, and identify where its assumptions enter.
  • Use contradiction, induction or a small counterexample rather than treating numerical tests as proofs.

Covers

Definitions, quantifiers, implications and counterexamplesScalars, vectors, matrices and tensor shape notation
1

Read

In this order, only the parts listed

0 of 3 done

  1. Mathematics for Computer Science: proof templates and notationMIT 6.042J - Proof strand

    Lehman, Leighton and Meyer, Chapter 1, sections 1.1 to 1.9 (pp. 5 to 19); Chapter 3, sections 3.1 (pp. 42 to 45) and 3.6 (pp. 56 to 61); sections 4.1 to 4.4 (pp. 81 to 93)

    In Chapter 4, read the definitions of sets, sequences, functions and relations. Leave cardinality and the remaining logical-circuit material.

  2. Induction and invariantsMIT 6.042J - Proof strand

    Chapter 5, sections 5.1 to 5.3 (pp. 115 to 130), then 5.4.1 to 5.4.3 (pp. 130 to 136)

    Read the ordinary and strong induction templates and the robot invariant. Stop before the later state-machine applications.

  3. Vectors, matrices and indexed productsMathematics for Machine Learning

    Chapter 2, section 2.2 (pp. 22 to 27), especially the indexed matrix-product definition on p. 22

    Use this as notation repair, not a second first pass. Treat a tensor here as an array with an ordered list of axis sizes; multilinear tensor theory is outside this unit.

2

Focus on

  • Declare domains before quantifiers. Negating 'for every , ' gives 'there exists with not ', not 'every fails'.
  • Separate an implication, its converse and its contrapositive. An iff requires both directions.
  • For of shape , write with in . Distinguish a scalar, a vector, a column matrix and an array with extra axes.
  • An induction proof needs a starting case and a step for every permitted index. An invariant needs initialization and preservation.
Common mistakes · 3
  • Checking several vectors cannot establish a claim about all real vectors. One exact counterexample can refute it.
  • Swapping 'for every there exists ' with 'there exists for every ' changes solvability into a much stronger claim.
  • A vector of mathematical shape is not automatically a NumPy (n,1) column. Write the storage shape separately.
3

Try it yourself

Closed-book, before checking anything

Closed-book, prove that the columns of a real by matrix are independent iff has only , using in both directions. Then prove for square and all integers , starting with and using the transpose-of-product rule in the step. As one NumPy check, create A=np.array([[1,2],[2,4]],dtype=np.float64) and z=np.array([-2,1],dtype=np.float64), with no random draws. Compute np.linalg.norm(A@z,2): the reference run gives 0.0, below 1e-12. The nonzero witness refutes independence for this ; the numerical check does not prove the general iff.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Where do the assumptions enter the independence iff proof?Answer

    has columns in , so is the same linear combination used in the definition. Independence forces all coefficients to vanish in the forward direction. In the reverse direction, the assumed trivial kernel forces the coefficients of any zero combination to vanish. Neither direction requires to be square.

  2. 2.Negate: for every in there exists in with .Answer

    There exists in such that for every in , is not . This is one unattainable right-hand side, not a statement that every is unattainable.

  3. 3.Why does the transpose-power induction start at zero, and what does its step use?Answer

    For square , and establish . If the claim holds at , then . Squareness makes the powers defined; the induction hypothesis is used at the third equality.

  4. 4.Is linear for a fixed nonzero vector ?Answer

    No. Every linear map sends zero to zero, but . Nonzero is the assumption used to obtain the contradiction.

5

Practice

You're done when

You can write the iff and transpose-power proofs without notes, negate the solvability claim with the domains intact, and explain why the NumPy witness is a refutation rather than a universal proof.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 6 more in the section
  • MIT 6.042J - Proof strandMIT OpenCourseWare · required

    Study textbook Chapters 1 and 3, §§4.1-4.4 and §§5.1-5.4 with matching Unit 1 problems. Leave the rest of the course.

  • Mathematics for Machine LearningDeisenroth, Faisal & Ong · reference

    Use Chapters 2-4 and §10.2 to check notation or re-derive a result. Do not treat it as a second course.

Also in this section

  • MIT 18.06 - Linear AlgebraMIT OpenCourseWare · primary

    Follow lectures 1-10, 14-17, 21-22, 25, 27, 29-31 and 33 with matching problems. This is the ordered first pass.

  • MIT 18.065 - Applied matrix bridgeMIT OpenCourseWare · required

    Use lectures 3-10 after 18.06 for SVD, PCA, low-rank approximation, matrix norms and solver difficulty.

  • Introduction to Applied Linear AlgebraBoyd & Vandenberghe · support

    Sample Chapters 1-13 and the extra exercises for computational practice in fitting, least squares and pseudoinverses.

  • Essence of Linear Algebra3Blue1Brown · optional

    Open only when a geometric picture is missing; it does not replace derivation or problem solving.

  • NumPy broadcasting and matmul shape rulesNumPy Developers · reference

    Read General broadcasting rules and Broadcastable arrays, then matmul Notes for stacked matrices and one-dimensional promotion. These close the pool's array-semantics gap.

  • Fundamentals of Numerical Computation: conditioning and operation countsDriscoll & Braun · reference

    Python edition, section 2.8 through Residual and backward error for the fixed-matrix perturbation bound; section 2.5.3 for triangular-solve and LU flop counts. Use Exercise 2.8.7 for a condition-number proof, not the unseeded Hilbert experiment.