Why don't you just use the Theorem environment (say), selectable from the drop box in the upper left hand corner (assuming you are using a document class that makes it available) and then use math mode (Ctrl-M)? Then you can enter the label as normal.
I'm attaching a short example file. Richard Michael Chen wrote: > hi, when I need to write theorems or definitions, I have to use \ERT > and type in all math formua in LATEX. Morever a label in \ERT is not > available in the "insert reference window". Is there an easier way to > edit and ref a theorem? Thanks. > > Michael
example.lyx
Description: application/lyx