Const.v 1.25 KB
Newer Older
1 2 3
(********************************************************************)
(*                                                                  *)
(*  The Why3 Verification Platform   /   The Why3 Development Team  *)
MARCHE Claude's avatar
MARCHE Claude committed
4
(*  Copyright 2010-2017   --   INRIA - CNRS - Paris-Sud University  *)
5 6 7 8 9 10 11 12 13 14 15
(*                                                                  *)
(*  This software is distributed under the terms of the GNU Lesser  *)
(*  General Public License version 2.1, with the special exception  *)
(*  on linking described in file LICENSE.                           *)
(*                                                                  *)
(********************************************************************)

(* This file is generated by Why3's Coq-realize driver *)
(* Beware! Only edit allowed sections below    *)
Require Import BuiltIn.
Require BuiltIn.
16
Require HighOrd.
17 18 19 20
Require map.Map.

(* Why3 goal *)
Definition const: forall {a:Type} {a_WT:WhyType a} {b:Type} {b_WT:WhyType b},
21 22
  b -> (a -> b).
Proof.
23
intros a a_WT b b_WT v.
24
intros i.
25 26 27 28
exact v.
Defined.

(* Why3 goal *)
29 30 31
Lemma const_def : forall {a:Type} {a_WT:WhyType a} {b:Type} {b_WT:WhyType b},
  forall (v:b), forall (us:a), (((const v: (a -> b)) us) = v).
Proof.
32
intros a a_WT b b_WT b1 a1.
33
reflexivity.
34 35
Qed.