I am looking to number my corollaries similarly to how Serre does it. His corollary numbers mirror the Lemma or Proposition which they follow. For example:
Section 1
Proposition 1
Corollary 1
Lemma 1.1
Corollary 1.1
Section 2
Lemma 2.1
Proposition 2
Lemma 2.2
Corollary 2.2A
Corollary 2.2B
How to do something similar in LaTeX? I am thinking something along the lines of:
\begin{lem}\label{l1}
...
\end{lem}
\begin{cor}\label{c1}\tag{\ref{l1}}
...
\end{cor}
However, this gives me a syntax error. [see full code below]
I also tried using reptheorem for this; however, it does not seem to be quite suited to this task; and I am not good enough at LaTeX coding to modify it to make it work here.
\documentclass[11pt]{amsart}
\usepackage{amsmath}
\newtheorem{lem}{Lemma}
\newtheorem{Lem}[lem]{Lemma}%*
\numberwithin{lem}{section}
\newtheorem{prop}{Proposition}
\newtheorem{Prop}[prop]{Proposition}
\newtheorem{Cor}{Corollary}%}[lem]{
\newtheorem{cor}[Cor]{Corollary}%*
\begin{document}
\section{asdf}
\begin{lem}\label{l1}
\end{lem}
\begin{prop}\label{p1}
\end{prop}
\begin{cor}\label{c1}\tag{\ref{l1}}
\end{cor}
\section{fdsa}
\begin{lem}\label{l2}
\end{lem}
\begin{prop}\label{p2}
\end{prop}
\begin{lem}\label{l2}
\end{lem}
\begin{cor}\label{c2}\tag{\ref{l2}A}
%\tag{asdf}
\end{cor}
\begin{cor}\label{c3}\tag{\ref{l2}B}
%\tag{asdf}
\end{cor}
\end{document}
