Section Double_round_plus_radix_ge_3.
Definition round_round_plus_radix_ge_3_hyp fexp1 fexp2 :=
(forall ex ey, (fexp1 (ex + 1) <= ey)%Z -> (fexp2 ex <= fexp1 ey)%Z)
/\ (forall ex ey, (fexp1 (ex - 1) + 1 <= ey)%Z -> (fexp2 ex <= fexp1 ey)%Z)
/\ (forall ex ey, (fexp1 ex <= ey)%Z -> (fexp2 ex <= fexp1 ey)%Z)
/\ (forall ex ey, (ex - 1 <= ey)%Z -> (fexp2 ex <= fexp1 ey)%Z).

(* mag y <= fexp1 (mag x) - 1 : * mag y <= fexp1 (mag (x - y)) - 1 : * round_round_gt_mid applies. *)
Lemma round_round_minus_radix_ge_3_aux2 :
(3 <= beta)%Z ->
forall (fexp1 fexp2 : Z -> Z),
Valid_exp fexp1 -> Valid_exp fexp2 ->
forall (choice1 choice2 : Z -> bool),
round_round_plus_radix_ge_3_hyp fexp1 fexp2 ->
forall x y,
0 < y -> y < x ->
(mag y <= fexp1 (mag x) - 1)%Z ->
(mag y <= fexp1 (mag (x - y)) - 1)%Z ->
generic_format beta fexp1 x ->
generic_format beta fexp1 y ->
round_round_eq fexp1 fexp2 choice1 choice2 (x - y).