# Theorem numbering style: How to make number appear before name?

I am currently writing an essay for a class in Functional analysis I'm taking. Now in one of the theorems I have it appears as :

How can I make it so that the number one comes before (Peter-Weyl)? Ideally, I would like the thing to appear as:

Theorem 1 (Peter-Weyl).

How can I do this? In my preamble at the moment I have:

\newtheorem{thm}{Proposition}[section]
\newtheorem{peterweyl}{Theorem (Peter-Weyl) }

• Please indicate whether you load the amsthm or the ntheorem package (or if you do neither). – Mico Oct 14 '13 at 14:24
• I have amsthm. – Ben Lim Oct 14 '13 at 14:25
• One usually does not do it that way but rather has a thm env that points to wards a Theorem header and then one writes \begin{thm}[Peter-Weyl], then one can have both named and unnamed theorems and the number is adter the heading. – daleif Oct 14 '13 at 14:27
• @daleif Code to do this? – Ben Lim Oct 14 '13 at 14:28

\newtheorem{thm}{Theorem}[section]

\begin{thm}[Peter-Weyl] Blah blah

The [thm] on the proposition is to make them share the number.