How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
CART trees and pruning — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- CART trees and pruning
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Simple Field Extensions and the Construction of the Complex Numbers
- Suprema and Infima
- The ZFC Axioms and the Basic Set Constructions
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
None yet.
4 · Examples, counterexamples and false statements
Two fitted subtrees with different leaf penalties
Example
Take one predictor and the sample in regression. Let split at , and let add a split at inside 's left branch. Thus has leaves with feature values and , with predictions and ; has leaves , , and , with predictions , , and . Both trees have training residual sum of squares , but they have and leaves respectively. With penalty per leaf, their costs (training residual sum of squares plus times the number of leaves) are and . For a nonterminal node , define as its loss after collapse minus its current descendant-leaf loss, divided by the number of descendant leaves removed. In , the left branch has , while the root has , so the first weakest-link collapse is the left branch.
Each internal label in the diagrams is its split predicate. The left edge means the predicate holds and the right edge means it fails. Each leaf gives the feature values reaching it and its constant prediction.
diagram failed to render:
\begin{tikzpicture}[
box/.style={draw,rounded corners,align=center,font=\scriptsize,inner sep=3pt}
]
\node[box] (t1r) at (-4,0) {T1 root: x1 <= 1.5};
\node[box] (t1l) at (-5.2,-1.5) {x values: 0,1\\prediction: 0};
\node[box] (t1rr) at (-2.8,-1.5) {x value: 2\\prediction: 1};
\draw (t1r.south) -- (t1l.north);
\draw (t1r.south) -- (t1rr.north);
\node[box] (t2r) at (2,0) {T2 root: x1 <= 1.5};
\node[box] (t2l) at (0.7,-1.35) {left node: x1 <= 0.5};
\node[box] (t2rr) at (3.5,-1.35) {x value: 2\\prediction: 1};
\node[box] (t2ll) at (-0.3,-2.7) {x value: 0\\prediction: 0};
\node[box] (t2lr) at (1.7,-2.7) {x value: 1\\prediction: 0};
\draw (t2r.south) -- (t2l.north);
\draw (t2r.south) -- (t2rr.north);
\draw (t2l.south) -- (t2ll.north);
\draw (t2l.south) -- (t2lr.north);
\end{tikzpicture}Facts & Assumptions
Given: The three regression observations and the two subtrees described in the example.
Empirical axis-aligned binary decision trees: A nonempty regression leaf predicts its sample mean, and its residual sum of squares is .
Cost-complexity criteria for subtrees: The cost-complexity criterion is .
Cost-complexity criteria for subtrees: For a current nonterminal node, .
Weakest-link pruning of a finite tree: The current nonterminal node with least is collapsed, with the stated fixed tie rule.
Verification
In , the leaf on has mean and the leaf on has mean , so both residual sums are . Splitting the first leaf in gives singleton leaves with responses and , so also has residual sum and has one additional leaf.
By [F2], and . Thus the subtrees have equal fit and different leaf penalties.
Collapsing the left branch of has loss , equal to its descendant-leaf loss, and removes one leaf, so . Collapsing the root predicts the full-sample mean and has loss ; the current three leaves have loss , so . By [F4], the first collapse is therefore the left branch.
A one-dimensional regression threshold tree
Example
Take a single predictor and the regression sample , with maximum depth . Its candidate thresholds are the midpoints , , and . The child-weighted squared-error score is at , at , and at . Thus greedy growth chooses the unique split , producing leaves on feature values and with predictions and .
The internal label in the diagram is the split predicate. The left edge means the predicate holds and the right edge means it fails. Each leaf gives the feature values reaching it and its constant prediction.
diagram failed to render:
\begin{tikzpicture}[
box/.style={draw,rounded corners,align=center,font=\small,inner sep=3pt}
]
\node[box] (root) at (0,0) {split: x1 <= 1.5};
\node[box] (left) at (-2,-1.5) {x values: 0,1\\prediction: 0};
\node[box] (right) at (2,-1.5) {x values: 2,3\\prediction: 1};
\draw (root.south) -- (left.north);
\draw (root.south) -- (right.north);
\end{tikzpicture}Facts & Assumptions
Given: The four regression observations and the greedy growth procedure with maximum depth .
Empirical axis-aligned binary decision trees: A nonempty regression leaf predicts its sample mean and has residual sum of squares .
Greedy axis-aligned CART growth on a finite sample: Candidate thresholds lie between adjacent distinct coordinate values, and the procedure chooses the candidate minimizing the child score.
Greedy CART minimizes the listed split loss and terminates: Every nonempty coordinate-threshold partition occurs among the midpoint candidates, and the chosen split minimizes the child loss on that finite list.
Verification
The four distinct coordinate values are , so the midpoint candidates are exactly , , and . At , the right child has responses , mean , and residual sum . At , both children have constant responses, so the score is . At , the left child has responses , mean , and residual sum .
The middle threshold is therefore the unique minimum-scoring candidate. By [F3], it is the best listed split and the procedure chooses it. Its two leaves have means and , as displayed.
The root split has depth , so the procedure stops there and returns the stated two-leaf tree. The diagram merely records the split and leaf predictions; the previously computed scores and the depth cap establish the output independently of the diagram.