In this Question I want to give a derivation of Hamiltons Principle of Stationary action, and my question to the community would be, whether my argument is flawed. The System I want to look at is (for simplicity) a particle moving in 1 dimension, so what I can observe about this particle is its position, x. For a Quantum Mechanical Treatment, I assume that the System will be in superposition of many states, and therefore the way to go is:
Assumption: The observable $X$ is represented by an operator $\hat{X}$ acting on a suitable hilbert space over the complex numbers. A state of the system is a vector (whiches norm is $1$) in this hilbert space, and it's decomposition into eigenstates of the operator $\hat{X}$ will give the probabilities of measuring the eigenvalues of the operator.
Also an Assumption? I'm not sure about that: Since we want to propability to be conserved, we require time evolution of the Operator $\hat{X}$ to be unitary: $\dot{\hat{X}}=\frac{i}{\hbar}[\hat{H}(t), \hat{X}]$, with a yet to determine operator $\hat{H}$. I'm not sure about wether this is an assumption or not, because the overall probability has to be conserved. Since I hereby state that states are stationary in time, while operators experience time evolution, I am in the Heisenberg picture, operators move in time, states do not.
Definition of another observable (which will later on turn out to have similar properties of what we usually call "momentum"): Given the observable $\hat{X}(t)$, we define $\hat{F}$ as the generator of translations of $X$, which means it should hold at every time that $[\hat{X},\hat{F}] = i\hbar $ and $\dot{\hat{F}}=\frac{i}{\hbar}[\hat{H}(t), \hat{F}]$.
By that definition, $F$ will generator infinitesimal c-number variations of $X$: $\hat{X}'(t) = \hat{X}(t) + \delta X(t) = \hat{X}(t) + \frac{i}{\hbar}[\hat{F}(t)\delta X(t), \hat{X}(t)]$. At the same time, $-\hat{X}(t)$ will be the generator of infinitesimal c-number variations of $\hat{F}$. We can write $\hat{H}(t) = \hat{\tilde{H}}(\hat{X}, \hat{F}, t)$ (without giving an explicit formula yet, the dependence could be no dependence at all).
Now I assume a variation of the Quantity $\dot{\hat{X}} \hat{F} - \hat{\tilde{H}}(\hat{X}, \hat{F})$. By that I mean $$\delta L = \dot{(\hat{X} + \delta X)} (\hat{F}+\delta F) - \hat{\tilde{H}}(\hat{X}+\delta X, \hat{F}+ \delta F) - (\dot{\hat{X}} \hat{F} - \hat{\tilde{H}}(\hat{X}, \hat{F}))$$ Doing some calculations, and using $\hat{\tilde{H}}(\hat{X}+\delta X, \hat{F})- \hat{\tilde{H}}(\hat{X}, \hat{F})= -\delta X \dot{\hat{F}}$ (and the same for $F$), we arrive at: $$ \delta \hat{L}(t) = \dot{\delta X} \hat{F} + \delta X \dot{\hat{F}} = \frac{d}{dt} ( \delta X \hat{F} ) $$
Choosing $\delta X(t_1) = \delta X(t_2) = 0$, we arrive at:
$$ \int_{t_1}^{t_2} \delta L(t) = \delta X(t_2) \hat{F}(t_2) - \delta X (t_1) \hat{P}(t_1) = 0 $$ Or written in its complete form: $$ \delta \int_{t_1}^{t_2} \dot{\hat{X}} \hat{F} - \hat{\tilde{H}}(\hat{X}, \hat{F}) = 0 $$ Where $\delta$ means variation of the operators $\hat{X}$ and $\hat{F}$ by c-number multiples of $\mathbb{1}$, and the variation of $\hat{X}$ is supposed to be 0 at the times $t_1$ and $t_2$. Which es exactly the principle of stationary action with a yet unkown quantity $F$ inside.
Then using $\frac{\partial \hat{\tilde{H}}}{\partial \hat{F}} = \frac{i}{\hbar}[\hat{\tilde{H}}, \hat{X}] = \dot{\hat{X}}$,
one can perform a Legendre Transformation $F \rightarrow \dot{X}$, and arrives at the same principle, but formulated for a lagrange function that depends on $X$, $\dot{X}$, and (possible) higher derivations.
Is any of these arguments invalid? Did I make any further assumptions as the ones listed here?