From Stdlib Require Import Strings.String.
From Stdlib Require Import String Ascii.
From Stdlib Require Arith.
From stdpp Require Import base.
From stdpp Require Import fin_maps.
From stdpp Require Import gmap.
From stdpp Require Import base gmultiset.
From Stdlib Require Classical.
From Stdlib Require Import ZArith.
From stdpp.bitvector Require Import definitions tactics.
From Stdlib Require Import Sorting.Sorted.
From Stdlib Require Import Reals.Rbasic_fun.
From Stdlib Require Import Reals.Abstract.ConstructiveAbs.
From Stdlib Require Import Reals.Rdefinitions.
From stdpp Require Import list_relations.
From stdpp Require Import list_numbers.
From stdpp Require Import functions.
From Stdlib Require Import ClassicalEpsilon.
From stdpp Require Import base decidable.
From Stdlib Require Import ZArith.Zeuclid.
From Stdlib Require Import ZArith.Znumtheory.
From stdpp Require Import propset.
From Stdlib Require Import Reals.
Require Import Why3.Base.
Open Scope Z_scope.
Axiom sum : (Z -> R) -> Z -> Z -> R.
Axiom sum'def : forall  (b : Z) (a : Z) (f : Z -> R), if decide (b ≤ a) then sum f a b = 0%R else sum f a b = Rplus (sum f a (b - 1%Z)) (f (b - 1%Z)).
Axiom abs_fun : (Z -> R) -> Z -> R.
Axiom abs_fun'def : forall  (f : Z -> R) (i : Z), abs_fun f i = Rabs (f i).
Theorem sum_bounds'vc (a : Z) (b : Z) (min : R) (f : Z -> R) (max : R) (fact0 : a ≤ b) (fact1 : ∀(i : Z), a ≤ i ∧ i < b -> Rle min (f i) ∧ Rle (f i) max) : Rle (Rmult (Rdefinitions.IZR (b - a)) min) (sum f a b) ∧ Rle (sum f a b) (Rmult (Rdefinitions.IZR (b - a)) max).
Admitted.
