Functional AnalysisMath for LLMs

Functional Analysis

Private notes
0/8000

Notes stay private to your browser until account sync is configured.

Functional Analysis
2 min read18 headings

Practice Lab

Runnable lab version for web reading.

Normed Spaces - Exercises

8 exercises covering norm axioms, non-norm counterexamples, unit balls, norm equivalence, completeness, operator norms, dual norms, and contraction mappings.

FormatDescription
ProblemMarkdown cell with task description
Your SolutionRunnable scaffold with placeholders
SolutionReference implementation with checks

Difficulty Levels

LevelExercisesFocus
Easy1-3Core definitions and geometry
Medium4-6Convergence and operators
Hard7-8Duality and fixed points

Code cell 2

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 3

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 1 (Easy) - Verify Norm Axioms

Check positivity, homogeneity, and triangle inequality for common norms.

Code cell 5

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 6

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 2 (Easy) - Find Non-Norm Counterexamples

Show why 0\ell^0 and p<1p<1 quasi-norms fail.

Code cell 8

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 9

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 3 (Easy) - Unit Ball Geometry

Interpret 1\ell^1, 2\ell^2, and \ell^\infty unit balls.

Code cell 11

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 12

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 4 (Medium) - Norm Equivalence Constants

Verify finite-dimensional norm inequalities.

Code cell 14

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 15

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 5 (Medium) - Cauchy and Completeness

Study rational approximations to an irrational limit.

Code cell 17

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 18

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 6 (Medium) - Operator Norm

Compute and sample-check a matrix spectral norm.

Code cell 20

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 21

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 7 (Hard) - Dual Norms and Holder

Verify dual norm inequalities numerically.

Code cell 23

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 24

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 8 (Hard) - Contraction Mapping

Implement a contraction and find its fixed point.

Code cell 26

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 27

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 9: Lipschitz Constants Across Norms

Estimate the operator size of a matrix under several vector norms, then explain why the chosen norm changes the certified Lipschitz constant.

Code cell 29

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 30

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Exercise 10: Contraction Rate in a Complete Normed Space

Iterate an affine contraction and estimate the observed error ratio. Connect the numerical behavior to the Banach fixed-point theorem.

Code cell 32

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

Code cell 33

Try itPython / Pyodide

Python snippet

Output
Run the code to see stdout, return values, and errors here.

Runs in your browser sandbox. DeepML does not send this code to the server.

PreviousNext