import Tablet.Preamble open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: P9_T1_FinalPointArithmetic] theorem P9_T1_FinalPointArithmetic : (forall x : Int, max (-2047) (min 2047 (max (-9223372036854775808) (min 9223372036854775807 x))) = max (-2047) (min 2047 x)) /\ (forall n f : Nat, n <= 9223372036854775807 -> f <= 9223372036854775807 -> -9223372036854775807 <= (n : Int) - f /\ (n : Int) - f <= 9223372036854775807) /\ (forall offset e : Int, -3458764513820540928 <= offset -> offset <= 3458764513820540928 -> -5764607523034234879 <= e -> e <= 5764607523034234879 -> -9223372036854775807 <= offset + e /\ offset + e <= 9223372036854775807) /\ (forall base e : Int, -576460752303421440 <= base -> base <= 576460752303421440 -> (576460752303423488 <= e -> 2048 <= base + e) /\ (e <= -576460752303423488 -> base + e <= -2048)) := by -- BODY refine ⟨?_, ?_, ?_, ?_⟩ <;> intros <;> omega end dec2flt_model