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.
Require Import longest_increasing_subsequence_vcg.longest_increasing_subsequence.Spec.
Open Scope Z_scope.
Theorem liss'vc (w : list elt) : (∀(i : Z), 0%Z ≤ i ∧ i < Z.of_nat (length w) -> (let o1 : list Z := ([i]:list Z) in Z.of_nat (length o1) = 1%Z ∧ nth 0%nat o1 inhabitant = i -> (let o2 : Z := Z.of_nat (length w) - 1%Z in let o3 : Z := i + 1%Z in ¬ o3 ≤ o2 + 1%Z ∧ (o2 + 1%Z < o3 -> (1%Z = Z.of_nat (length o1) ∧ 0%Z < Z.of_nat (length o1)) ∧ nth 0%nat o1 inhabitant = i ∧ iss o1 w ∧ (∀(s' : list Z), iss s' w -> 1%Z ≤ Z.of_nat (length s') -> nth 0%nat s' inhabitant = i -> Z.of_nat (length s') ≤ Z.of_nat (length o1)))))) ∧ (let o1 : Z := Z.of_nat (length w) - 1%Z in ¬ 0%Z ≤ o1 + 1%Z ∧ (o1 + 1%Z < 0%Z -> 0%Z = Z.of_nat (length ([] : list Z)) ∧ liss ([] : list Z) w)).
Admitted.
