Reason: Initial publication of the proof (Gram-Schmidt recursion, triangular inversion, stability), with its theorem (batch publication approved by coauthor).
Proof
Throughout, for x,y∈Rd write ⟨x,y⟩G=x⋅(Gy), combining the dot product with the matrix-vector product; explicitly ⟨x,y⟩G=∑i,lxiGilyl, so ⟨⋅,⋅⟩G is linear in each argument, and it is symmetric because G⊤=G (Transpose of a Real Matrix). For a d×d matrix M, let μi∈Rd denote the vector of entries of the i-th row of M; expanding the matrix product gives
(MGM⊤)ij=l,m∑MilGlmMjm=⟨μi,μj⟩G.(1)
We repeatedly use the algebra of limits for real sequences (if ak→a and bk→b in the sense of Limit of a Sequence of Real Numbers, then ak+bk→a+b and akbk→ab, the latter since ∣akbk−ab∣≤∣ak∣∣bk−b∣+∣b∣∣ak−a∣ with (ak) bounded), and continuity of the nonnegative square root at positive arguments (for a≥0, b>0: ∣a−b∣=∣a−b∣/(a+b)≤∣a−b∣/b).
We verify by induction that this is well defined and that for each i: the coordinates of τi with index greater than i vanish, the i-th coordinate of τi is νi−1/2>0, and ⟨τi,τj⟩G=1 if j=i and 0 if j<i. For i=1: ν1=⟨e1,e1⟩G=G11>0 by positive definiteness applied to e1=0, and the claims are immediate. For the step: by the inductive description, each τj (j<i) has vanishing coordinates beyond index j, so wi has i-th coordinate 1 and vanishing coordinates beyond i; in particular wi=0, hence νi>0 by positive definiteness, and τi is defined with the stated coordinate properties. For j<i, bilinearity and the inductive orthonormality give
Let T be the matrix whose i-th row is τi. Then T is lower triangular with diagonal entries Tii=νi−1/2>0, and by (1), (TGT⊤)ij=⟨τi,τj⟩G=δij, i.e., TGT⊤=Id.
Step 2 (Triangular inversion, proving claim 2). We first record that (AB)⊤=B⊤A⊤ whenever the product is defined, by expanding both sides entrywise from Product of Real Matrices and Transpose of a Real Matrix. Let M be lower triangular with nonzero diagonal entries. For each j, forward substitution solves Mx=ej: the equations ∑l≤iMilxl=δij determine x1,…,xd successively, and they force xl=0 for l<j and xj=1/Mjj. Assembling these solutions as columns yields a lower triangular S with MS=Id and Sjj=1/Mjj. The matrix M⊤ is upper triangular with the same nonzero diagonal entries, and the analogous backward substitution yields a matrix S′′ with M⊤S′′=Id; transposing this identity gives S′′⊤M=Id⊤=Id, so S′=S′′⊤ is a left inverse of M. Then, by associativity and The Identity Matrix is a Two-Sided Multiplicative Identity,
S′=S′(MS)=(S′M)S=S,
so S is a two-sided inverse: M is invertible with M−1=S lower triangular, unique by Uniqueness of the Matrix Inverse, with diagonal entries 1/Mii. Applied to M=T (whose diagonal is positive), this proves claim 2.
Step 3 (Uniqueness). Let T′ be lower triangular with positive diagonal and T′GT′⊤=Id. Set R=T′T−1. A product of lower triangular matrices is lower triangular with diagonal entries the products of the diagonals: in (AB)ij=∑lAilBlj, nonzero terms need l≤i and j≤l, so the sum vanishes for j>i and equals AiiBii for j=i. Hence R is lower triangular with Rii=Tii′/Tii>0. Using RT=T′T−1T=T′ (associativity, The Identity Matrix is a Two-Sided Multiplicative Identity) and (AB)⊤=B⊤A⊤:
RR⊤=R(TGT⊤)R⊤=(RT)G(RT)⊤=T′GT′⊤=Id.
We show a lower triangular R with positive diagonal and RR⊤=Id equals Id, by induction on the row index. Row 1: 1=(RR⊤)11=∑lR1l2=R112, so R11=1 (positivity). Assume rows 1,…,i−1 of R coincide with those of Id. For j<i: 0=(RR⊤)ij=∑lRilRjl=Rij, since row j has a single nonzero entry 1 in position j. Then 1=(RR⊤)ii=∑l≤iRil2=Rii2 gives Rii=1. Hence R=Id and T′=RT=T.
Step 4 (Stability). First, eventual positive definiteness. Suppose, for contradiction, that for infinitely many k the matrix G(k) is not positive definite; since it is positive semidefinite, for each such k there is c(k)=0 with c(k)⋅(G(k)c(k))=0, and after dividing by the Euclidean norm ∣c(k)∣=c(k)⋅c(k)>0 (the quadratic form still vanishes, by bilinearity) we may assume ∣c(k)∣=1. Each coordinate sequence is bounded by 1, so d successive applications of the Bolzano-Weierstrass theorem produce a subsequence along which c(k)→c∗ coordinatewise. By the algebra of limits, c∗⋅c∗=lim∣c(k)∣2=1, so c∗=0, and
c∗⋅(Gc∗)=klimc(k)⋅(G(k)c(k))=0
(finite sums of products of convergent sequences, using Gil(k)→Gil), contradicting positive definiteness of G. Hence there is K with G(k) positive definite for all k≥K.
For k≥K, claim 1 applies to G(k); by the uniqueness just proved, T(k) is exactly the matrix produced by the recursion of Step 1 for G(k), with quantities wi(k),νi(k),τi(k). We prove by strong induction on i that τi(k)→τi coordinatewise and νi(k)→νi. If x(k)→x and y(k)→y coordinatewise, then ⟨x(k),y(k)⟩G(k)→⟨x,y⟩G, again by the algebra of limits applied to the finite sum ∑i,lxi(k)Gil(k)yl(k). For i=1: ν1(k)=G11(k)→G11=ν1>0, and by continuity of the square root at ν1>0, τ1(k)=(ν1(k))−1/2e1→τ1 (for large k, ν1(k)>0). For the step: by the inductive hypothesis and the displayed continuity, ⟨ei,τj(k)⟩G(k)→⟨ei,τj⟩G for each j<i, so wi(k)→wi coordinatewise, hence νi(k)→νi>0 and τi(k)=(νi(k))−1/2wi(k)→νi−1/2wi=τi. Since the rows of T(k) are the τi(k), this gives T(k)→T entrywise. □