Proofs: Macaulay matrix
These are the human proofs of Macaulay matrix, at full length.
The pivots of the Macaulay matrix are the leading monomials of its row space full
This proof shows: correctness, termination.
Let be a field, , a monomial order, and . Let be the column monomials. Identify a polynomial with all monomials among the with its coefficient vector, and write for the least index with . Because the columns are decreasing, is the column of for .
Claim 1 (row space). The row space of is .
Proof. Each row is in , and is a -vector space, so the row space is contained in . Conversely, if then each term of has , so is a combination of rows.
Claim 2 (elimination). Line L6 terminates, keeps the row space, and produces rows with pivot columns such that has entry in column , entry in every other pivot column, and entry in every column left of .
Proof. The loop runs over the columns once, with finitely many row operations each, so it stops. Swapping, scaling a row by a nonzero scalar, and adding a multiple of one row to another are invertible, so the row space does not change. When column is processed and a pivot row is chosen, that row is scaled to have entry in column , and column is cleared in all other rows, so it stays in its row and elsewhere; later steps only add multiples of later pivot rows, which have in column . When column is processed, the unused rows are all zero in columns : each earlier column was either cleared by its pivot, or had no nonzero entry in any unused row. So a pivot row chosen at column is zero left of , and later steps add multiples of rows that are zero left of their own pivot, which is to the right of . At the end every unused row is zero, because each of its entries was zero when its column was processed and stayed zero.
Claim 3 (pivots are leading monomials). , and is a basis of .
Proof. By Claims 1 and 2, the span . They are independent, because is the only one with a nonzero entry in column . Each is in with , so . Conversely let , and let be the least with . Column of equals , because the other vanish there. Every column of is : each with is zero left of . So .
Claim 4 (membership). MEMBER returns true if and only if .
Proof. Line L8 replaces by for some scalars, and after the step for the entry in column is , and later steps do not change it, since the later rows vanish there. So the final satisfies for all , and modulo . If then , and a nonzero element of has its leading column at some by Claim 3, where is . So . If then since .
Claim 5 (homogeneous case). If every is homogeneous and the rows are the with , the row space is for . So the number of columns minus the rank is , and the pivots are the monomials of degree in for a graded order.
Proof. The rows lie in . Let , so for some . Taking the homogeneous component of degree on both sides, and writing for the component of degree , gives , where and the term is absent if . Each summand is a combination of rows with . So the row space is , and is the number of columns minus the rank. By Claim 3 the pivots are . For a graded order and homogeneous , a monomial of degree lies in exactly when for some , and then also for the homogeneous component of of degree , which is in because is homogeneous.