I'm writing out proofs and I want to be able to show my work as follows
Some function F(x) = blah
1.1. Some operation on F(x) Some law or lemma
1.2. Some other operation Justification
Where my bolded text represents text that's right justified. I want to have the operation I perform in a nested list environment (Some operation on F(x) and then the reasoning behind that operation to be right-justified.
I figured I could do this with enumerate and tabular, but I'm having alignment issues. Here's my MWE...
\documentclass[a4paper]{article}
\usepackage{enumitem}
% Use numbers when in plist (proof list)
\newlist{plist}{enumerate}{10}
\setlist[plist]{label*=\arabic*.}
\begin{document}
% My main list
\begin{plist}
\item Lorem ipusm my function
\begin{tabular}{p{.5\textwidth}r}
\begin{plist}
\item My function %
\end{plist}
& \textbf{Translation}\\
\end{tabular}
\end{plist}
\end{document}
The thing is, the alignment looks really off when the document is compiled (the line that says translation should be on the 1.1 line):

So here's what I'm wondering: How can I fix the alignment issues? Also: is it possible to have the right justified text all the way on the right side of the page (possible with tabularx) but I haven't figured out how to do that for right justified text. I've seen it used for left justified text that is also on the lefthand column, but I haven't been able to use it the other way around (the X column type, that is)
Thanks in advance :)

\begin{tabularx}{\linewidth}{>{\compress}Xr@{}}...\end{tabularx}– Bernard May 20 '18 at 00:07