I have the following in my preamble:
\usepackage[overload, ntheorem]{empheq}
\usepackage[amsmath, thmmarks]{ntheorem}
\usepackage{mathtools}
\mathtoolsset{showonlyrefs,showmanualtags}
\newtagform{brackets}{[}{]}
\usetagform{brackets}
Further, I also have
\theoremheaderfont{\upshape}\theorembodyfont{\upshape}
\theoremstyle{nonumberplain}
\theoremseparator{}
\theoremsymbol{}
\newtheorem{optional}{}
So now I can make an empty environment which takes an optional argument like \begin{optional}[$H_2$]. This works but I get to see (H_2) while I would like to see [H_2]. How do I change this? It would be perfect if I could access the mathtools command that gives me the left bracket and the right bracket so I don't have to change it in multiple places if I would want to change it (I could of course define a new command for the left and right bracket but that feels like an ugly hack!).
I forgot to mention that if I give it a label, then refering to it should give the optional argument. Maybe there is a better solution to this problem. I have also tried an equation with \tag but \text doesn't do automatic line breaks.
Thanks for the suggestion. I fixed it like this, but I don't know if it is a good way:
\makeatletter
\newenvironment{optional}[1][Hypothesis]{
\par\noindent \text{[#1]}
\def\@currentlabel{[#1]}
}{\\}