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.
Require Import Why3.why3.Ref.Ref.
Open Scope Z_scope.
Definition spec (x : Z) : Z := if decide (x ≤ 100%Z) then 91%Z else x - 10%Z.
Theorem mccarthy2'vc (n : Z) (r : Z) (e : Z) (fact0 : 0%Z ≤ n) : 0%Z ≤ 0%Z ∧ 0%Z < 3%Z ∧ ¬ ((0%Z = 1%Z ∧ 100%Z < r -> 1%Z = 2%Z ∧ n = r - 10%Z ∧ 1%Z = e - 1%Z) ∧ (0%Z = 1%Z ∧ r ≤ 100%Z -> n = r + 11%Z ∧ 1%Z = e + 1%Z) ∧ (0%Z = 2%Z ∧ e = 0%Z -> 1%Z = 3%Z ∧ n = r ∧ 1%Z = e) ∧ (0%Z = 2%Z ∧ ¬ e = 0%Z -> n = r ∧ 1%Z = e)).
Admitted.
