noncomputable def
SX.fee.constprod.x_max
(φ : ℝ>0)
{s : Γ}
{a : A}
{t0 t1 : T}
{x₀ : ℝ>0}
(sw0 : Swap (constprod φ) s a t0 t1 x₀)
(o : O)
(h_equil : sw_to_equil φ sw0 o)
(hφ : φ < 1)
:
Equations
- SX.fee.constprod.x_max φ sw0 o h_equil hφ = x₀ + SX.fee.constprod.x_max' φ sw0 o h_equil hφ
Instances For
theorem
SX.fee.constprod.gain_xmax_gt_x₀
(φ : ℝ>0)
{s : Γ}
{a : A}
{t0 t1 : T}
{x₀ : ℝ>0}
(sw0 : Swap (constprod φ) s a t0 t1 x₀)
(o : O)
(h_equil : sw_to_equil φ sw0 o)
(hφ : φ < 1)
(sw_max : Swap (constprod φ) s a t0 t1 (x_max φ sw0 o h_equil hφ))
(h_supply : s.mints.supply t0 t1 > 0)
(h_mints : (s.mints.get a).get t0 t1 < s.mints.supply t0 t1)
:
theorem
SX.fee.constprod.x_max_gain_gt_x_gt_equil
(φ : ℝ>0)
{s : Γ}
{a : A}
{t0 t1 : T}
{x₀ x : ℝ>0}
(sw0 : Swap (constprod φ) s a t0 t1 x₀)
(sw2 : Swap (constprod φ) s a t0 t1 x)
(o : O)
(h_equil : sw_to_equil φ sw0 o)
(hφ : φ < 1)
(sw_max : Swap (constprod φ) s a t0 t1 (x_max φ sw0 o h_equil hφ))
(x_gt_x₀ : x > x₀)
(x_diff_x_max : x ≠ x_max φ sw0 o h_equil hφ)
(h_supply : s.mints.supply t0 t1 > 0)
(h_mints : (s.mints.get a).get t0 t1 < s.mints.supply t0 t1)
:
theorem
SX.fee.constprod.x_max_unique
(φ : ℝ>0)
{s : Γ}
{a : A}
{t0 t1 : T}
{x₀ : ℝ>0}
(sw0 : Swap (constprod φ) s a t0 t1 x₀)
(o : O)
(h_equil : sw_to_equil φ sw0 o)
(h_supply : s.mints.supply t0 t1 > 0)
(h_mints : (s.mints.get a).get t0 t1 < s.mints.supply t0 t1)
(hφ : φ < 1)
(sw_max : Swap (constprod φ) s a t0 t1 (x_max φ sw0 o h_equil hφ))
: