
The Mathematical Compile Trace Audit
Perform an exhaustive compile trace verifying that every forward tensor and backward gradient calculation relies strictly on course prerequisites.
In software engineering, a compiler verifies that every variable, type signature, and function call resolves to an explicit, valid definition.
In the Eriva Pedagogical Protocol, every topic is subjected to the same standard: The Mathematical Compile Test.
We verify that every single number, tensor transformation, and gradient equation in the complete neural data flow graph relies strictly on mathematical primitives explicitly constructed in Course 1, with zero unexplained steps or heuristic shortcuts.
The End-to-End Coordinate Lifecycle Trace
To verify that the curriculum compiles without gaps, trace the complete lifecycle of a single numerical scalar coordinate—the Action feature measurement ()—as it flows forward through the network and returns backward as a parameter update:
| Stage | Mathematical Operator | Input Value | Applied Formula | Resulting Output | Prerequisite Lesson |
|---|---|---|---|---|---|
| 1 | Vector Indexing | Script Reality | (Locked Action Index) | M1.T1.L1 (The Feature Vector) | |
| 2 | Dot Product Term | M1.T1.L3 (The Dot Product and Weights) | |||
| 3 | Affine Pre-activation | Pairwise Products | M1.T2.L1 (The Linear Sum and Baseline Bias) | ||
| 4 | Non-Linear Activation | M1.T2.L3 (The Rectified Linear Unit Activation) | |||
| 5 | Output Affine Sum | M1.T3.L4 (The Affine Layer Transformation Math) | |||
| 6 | Output Squashing | M1.T2.L2 (The Sigmoid Probability Activation) | |||
| 7 | Prediction Error | M2.T1.L1 (Grounding Prediction Error in Reality) | |||
| 8 | Loss Penalty | M2.T1.L2 (The Mean Squared Error Loss Function) | |||
| 9 | Loss Sensitivity | M2.T1.L4 (Output Loss Derivatives and Gradients) | |||
| 10 | Activation Slope | M2.T4.L2 (Output Layer Error Attribution Math) | |||
| 11 | Output Delta | Sensitivity Slope | M2.T4.L2 (Output Layer Error Attribution Math) | ||
| 12 | Transposed Projection | M2.T4.L3 (Hidden Layer Error Backpropagation) | |||
| 13 | Hidden Delta | Projection | M2.T4.L3 (Hidden Layer Error Backpropagation) | ||
| 14 | Weight Gradient | M2.T4.L3 (Hidden Layer Error Backpropagation) | |||
| 15 | Parameter Update | M2.T4.L4 (Toy Parameter Update Step on Paper) |
Unbroken Prerequisite Compile Trace Table
Every mathematical symbol and operation in the unified Directed Acyclic Graph traces directly to its formal introduction in earlier lessons:
| Symbol / Operator | Formal Mathematical Definition | Introductory Prerequisite Lesson |
|---|---|---|
| 1D Feature Vector (Input Coordinates) | Module 1, Topic 1, Lesson 1 (The Feature Vector) | |
| Vector Addition and Scalar Scaling | Module 1, Topic 1, Lesson 2 (Vector Addition and Scaling) | |
| Vector Dot Product and Parameter Weights | Module 1, Topic 1, Lesson 3 (The Dot Product and Weights) | |
| Baseline Bias Parameter (Threshold Shift) | Module 1, Topic 2, Lesson 1 (The Linear Sum and Baseline Bias) | |
| Affine Linear Sum | Module 1, Topic 2, Lesson 1 (The Linear Sum and Baseline Bias) | |
| Sigmoid Logistic Activation Function | Module 1, Topic 2, Lesson 2 (The Sigmoid Probability Activation) | |
| Rectified Linear Unit Activation | Module 1, Topic 2, Lesson 3 (The Rectified Linear Unit Activation) | |
| 2D Weight Matrix (Layer Width) | Module 1, Topic 3, Lesson 1 (Matrix Dimensions and Parallel Vectors) | |
| Matrix-Vector Product | Module 1, Topic 3, Lesson 2 (Matrix-Vector Multiplication Math) | |
| Dense Layer Affine Forward Pass | Module 1, Topic 3, Lesson 4 (The Affine Layer Transformation Math) | |
| Multi-Layer Perceptron Notation (Network Depth) | Module 1, Topic 4, Lesson 2 (Hidden Layers and Network Geometry) | |
| Raw Prediction Error (Signed Difference) | Module 2, Topic 1, Lesson 1 (Grounding Prediction Error in Reality) | |
| Mean Squared Error Loss Function | Module 2, Topic 1, Lesson 2 (The Mean Squared Error Loss Function) | |
| Output Loss Derivative (Error Sensitivity) | Module 2, Topic 1, Lesson 4 (Output Loss Derivatives and Gradients) | |
| Derivative as Instantaneous Rate of Change | Module 2, Topic 2, Lesson 2 (Limits and the Formal Derivative Definition) | |
| Power Rule for Algebraic Derivatives | Module 2, Topic 2, Lesson 4 (Elementary Power and Sum Derivative Rules) | |
| Partial Derivative (Isolated Parameter Sensitivity) | Module 2, Topic 3, Lesson 2 (Calculating Partial Derivatives of Weights) | |
| Gradient Vector (Direction of Steepest Ascent) | Module 2, Topic 3, Lesson 3 (Assembling the Multivariable Gradient Vector) | |
| The Composite Chain Rule | Module 2, Topic 4, Lesson 1 (The Composite Function Chain Rule) | |
| Output Layer Error Attribution (Weights and Biases) | Module 2, Topic 4, Lesson 2 (Output Layer Error Attribution Math) | |
| Hidden Layer Backpropagation (Deltas and Parameters) | Module 2, Topic 4, Lesson 3 (Hidden Layer Error Backpropagation) | |
| Single Parameter Update Step (Weights and Biases) | Module 2, Topic 4, Lesson 4 (Toy Parameter Update Step on Paper) | |
| Complete Forward-Backward Data Flow Graph | Module 3, Topic 1, Lesson 1 (The Forward-Backward Graph (DAG)) |
There are no unexplained leaps in the computational graph. Deep learning is an interconnected network of arithmetic operations, univariate activations, and chain-rule calculus.