Proof. The two cases cover every matrix. If \(\mathbf{A} \ne \mathbf{0}_{m \times n}\), it has a nonzero column, which is linearly independent on its own (\(c\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) forces \(c = 0\)), so \(\operatorname{rank}(\mathbf{A}) \ge 1\) (Definition 2 in Subspaces and Rank).
The zero matrix. With \(\mathbf{A} = \mathbf{0}_{m \times n}\) and \(\mathbf{G} = \mathbf{0}_{n \times m}\), every product in conditions 1 to 4 is a zero matrix, and a zero matrix equals its own transpose, so all four conditions hold.
The two inverses exist. Now suppose \(\operatorname{rank}(\mathbf{A}) = r \ge 1\). A rank factorization exists (Theorem 15 in Column Space, Null Space and Rank-Nullity). \(\mathbf{C}\) is \(m \times r\) and \(\mathbf{R}\) is \(r \times n\). Both have rank \(r\):
\[
\begin{aligned}
r
&= \operatorname{rank}(\mathbf{C} \mathbf{R})
&& \text{(} \mathbf{A} = \mathbf{C} \mathbf{R} \text{)}
\\
&\le \operatorname{rank}(\mathbf{C})
&& \text{(}\href{linear-algebra-rank-nullity.qmd#thm-rank-product}{\text{Theorem~8 in Column Space, Null Space and Rank-Nullity}}\text{)}
\\
&\le r,
&& \text{(}\href{linear-algebra-rank-nullity.qmd#cor-rank-bound}{\text{Corollary~1 in Column Space, Null Space and Rank-Nullity}}\text{, } \mathbf{C} \text{ has } r \text{ columns)}
\end{aligned}
\]
and, using \({(\mathbf{C} \mathbf{R})}^{\top} = {\mathbf{R}}^{\top} {\mathbf{C}}^{\top}\) (Theorem 17 in Matrices),
\[
\begin{aligned}
r
&= \operatorname{rank}\mathopen{}\left({\mathbf{R}}^{\top} {\mathbf{C}}^{\top}\right)\mathclose{}
&& \text{(}\href{linear-algebra-rank-nullity.qmd#thm-rank-transpose}{\text{Theorem~9 in Column Space, Null Space and Rank-Nullity}}\text{)}
\\
&\le \operatorname{rank}({\mathbf{R}}^{\top})
&& \text{(}\href{linear-algebra-rank-nullity.qmd#thm-rank-product}{\text{Theorem~8 in Column Space, Null Space and Rank-Nullity}}\text{)}
\\
&\le r.
&& \text{(}\href{linear-algebra-rank-nullity.qmd#cor-rank-bound}{\text{Corollary~1 in Column Space, Null Space and Rank-Nullity}}\text{, } {\mathbf{R}}^{\top} \text{ has } r \text{ columns)}
\end{aligned}
\]
So \(\mathbf{C}\) and \({\mathbf{R}}^{\top}\) have full column rank \(r\), and \({\mathbf{C}}^{\top} \mathbf{C}\) and \(\mathbf{R} {\mathbf{R}}^{\top} = {({\mathbf{R}}^{\top})}^{\top}\,{\mathbf{R}}^{\top}\) are invertible (Theorem 1). They are symmetric:
\[
\begin{aligned}
{({\mathbf{C}}^{\top} \mathbf{C})}^{\top} &= {\mathbf{C}}^{\top}\,{({\mathbf{C}}^{\top})}^{\top} \\
&= {\mathbf{C}}^{\top} \mathbf{C}
\end{aligned}
\]
(Theorem 17 in Matrices, Definition 3 in Matrices), and likewise for \(\mathbf{R} {\mathbf{R}}^{\top}\). Write \(\mathbf{S} \stackrel{\text{def}}{=}(\mathbf{R} {\mathbf{R}}^{\top})^{-1}\) and \(\mathbf{T} \stackrel{\text{def}}{=}({\mathbf{C}}^{\top} \mathbf{C})^{-1}\), both symmetric (Corollary 1 in Special Matrices and Decompositions), and \(\mathbf{G} \stackrel{\text{def}}{=}{\mathbf{R}}^{\top} \mathbf{S} \mathbf{T} {\mathbf{C}}^{\top}\).
Two products.
\[
\begin{aligned}
\mathbf{A} \mathbf{G}
&= \mathbf{C} \mathbf{R}\,{\mathbf{R}}^{\top} \mathbf{S} \mathbf{T} {\mathbf{C}}^{\top}
&& \text{(substitute } \mathbf{A} \text{ and } \mathbf{G} \text{)}
\\
&= \mathbf{C}\,(\mathbf{R} {\mathbf{R}}^{\top})\,\mathbf{S}\,\mathbf{T} {\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)}
\\
&= \mathbf{C}\,\mathbf{I}_r\,\mathbf{T} {\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)}
\\
&= \mathbf{C} \mathbf{T} {\mathbf{C}}^{\top},
&& \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)}
\end{aligned}
\]
\[
\begin{aligned}
\mathbf{G} \mathbf{A}
&= {\mathbf{R}}^{\top} \mathbf{S} \mathbf{T} {\mathbf{C}}^{\top}\,\mathbf{C} \mathbf{R}
&& \text{(substitute } \mathbf{G} \text{ and } \mathbf{A} \text{)}
\\
&= {\mathbf{R}}^{\top} \mathbf{S}\,\mathbf{T}\,({\mathbf{C}}^{\top} \mathbf{C})\,\mathbf{R}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)}
\\
&= {\mathbf{R}}^{\top} \mathbf{S}\,\mathbf{I}_r\,\mathbf{R}
&& \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)}
\\
&= {\mathbf{R}}^{\top} \mathbf{S} \mathbf{R}.
&& \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)}
\end{aligned}
\]
Conditions 3 and 4.
\[
\begin{aligned}
{(\mathbf{A} \mathbf{G})}^{\top}
&= {(\mathbf{C} \mathbf{T} {\mathbf{C}}^{\top})}^{\top}
&& \text{(first product)}
\\
&= {\mathopen{}\left(\mathbf{C}\,(\mathbf{T} {\mathbf{C}}^{\top})\right)\mathclose{}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)}
\\
&= {(\mathbf{T} {\mathbf{C}}^{\top})}^{\top}\,{\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{)}
\\
&= {({\mathbf{C}}^{\top})}^{\top}\,{\mathbf{T}}^{\top}\,{\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{)}
\\
&= \mathbf{C}\,{\mathbf{T}}^{\top}\,{\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#def-matrix-transpose}{\text{Definition~3 in Matrices}}\text{)}
\\
&= \mathbf{C} \mathbf{T} {\mathbf{C}}^{\top},
&& \text{(} \mathbf{T} \text{ is symmetric)}
\end{aligned}
\]
\[
\begin{aligned}
{(\mathbf{G} \mathbf{A})}^{\top}
&= {({\mathbf{R}}^{\top} \mathbf{S} \mathbf{R})}^{\top}
&& \text{(second product)}
\\
&= {\mathopen{}\left({\mathbf{R}}^{\top}\,(\mathbf{S} \mathbf{R})\right)\mathclose{}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)}
\\
&= {(\mathbf{S} \mathbf{R})}^{\top}\,{({\mathbf{R}}^{\top})}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{)}
\\
&= {\mathbf{R}}^{\top}\,{\mathbf{S}}^{\top}\,{({\mathbf{R}}^{\top})}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{)}
\\
&= {\mathbf{R}}^{\top}\,{\mathbf{S}}^{\top}\,\mathbf{R}
&& \text{(}\href{linear-algebra-matrices.qmd#def-matrix-transpose}{\text{Definition~3 in Matrices}}\text{)}
\\
&= {\mathbf{R}}^{\top} \mathbf{S} \mathbf{R}.
&& \text{(} \mathbf{S} \text{ is symmetric)}
\end{aligned}
\]
Condition 1.
\[
\begin{aligned}
\mathbf{A} \mathbf{G} \mathbf{A}
&= \mathbf{C} \mathbf{T} {\mathbf{C}}^{\top}\,\mathbf{C} \mathbf{R}
&& \text{(first product)}
\\
&= \mathbf{C}\,\mathbf{T}\,({\mathbf{C}}^{\top} \mathbf{C})\,\mathbf{R}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)}
\\
&= \mathbf{C}\,\mathbf{I}_r\,\mathbf{R}
&& \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)}
\\
&= \mathbf{A}.
&& \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)}
\end{aligned}
\]
Condition 2.
\[
\begin{aligned}
\mathbf{G} \mathbf{A} \mathbf{G}
&= {\mathbf{R}}^{\top} \mathbf{S} \mathbf{R}\,{\mathbf{R}}^{\top} \mathbf{S} \mathbf{T} {\mathbf{C}}^{\top}
&& \text{(second product)}
\\
&= {\mathbf{R}}^{\top}\,\mathbf{S}\,(\mathbf{R} {\mathbf{R}}^{\top})\,\mathbf{S}\,\mathbf{T} {\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)}
\\
&= {\mathbf{R}}^{\top}\,\mathbf{I}_r\,\mathbf{S}\,\mathbf{T} {\mathbf{C}}^{\top}
&& \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)}
\\
&= \mathbf{G}.
&& \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)}
\end{aligned}
\]