Left to Solve
Problems / MathOverflow (not formalized)

Proving that system is Hamiltonian

Open, not yet stated in LeanMathOverflow (not formalized)Real Functionsdifficulty55/100

Statement

This question is moved from math stackexchange, seems like it is a more advanced question. Here the link from the original question: https://math.stackexchange.com/questions/2666194/proving-that-system-is-hamiltonian

I am trying to show that the PDEs governing stratified flow are Hamiltonian. The approach is based on the paper "Nonlinear Stability Analysis of Stratified Fluid Equilibria which can be found here https://www.researchgate.net/publication/37465117_Nonlinear_Stability_Analysis_of_Stratified_Fluid_Equilibria On page 390 the author suggest the reader to actually check directly that the equations of motion are Hamiltonian, this has been done for a similar problem already in section 7a.

I know is quite a lengthy problem, but I dont know what I have done wrong, in the end one term in the euler equation has the factor 1/ which shouldnt be there. Any advice is appreciated

Equations to derive: \begin{gather} \label{gleichung1}\frac{\partial v}{\partial t}= -\frac{\nabla p}{\varrho}-\nabla \big(\frac{1}{2}|v|^2 +gz \big)+\color{red}{v \times curl~ v}\\ \frac{\partial \varrho }{\partial t} = -v\cdot \nabla \varrho\notag\\ \operatorname{div} v =0\notag \end{gather} The …

Posed by Master · ap.analysis-of-pdes, differential-equations, hamiltonian-mechanics

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-295120.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-295120.lean

import Mathlib

/-!
# Proving that system is Hamiltonian

Source: https://mathoverflow.net/questions/295120
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_295120

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_295120