aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/correctness/ProgInt.v
blob: 470162ca34df9f10b4d0fee6ca93d0aeaf9944af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(***********************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team    *)
(* <O___,, *        INRIA-Rocquencourt  &  LRI-CNRS-Orsay              *)
(*   \VV/  *************************************************************)
(*    //   *      This file is distributed under the terms of the      *)
(*         *       GNU Lesser General Public License Version 2.1       *)
(***********************************************************************)

(* Certification of Imperative Programs / Jean-Christophe Filliâtre *)

(* $Id$ *)

Require Export ZArith.
Require Export ZArith_dec.

Theorem Znotzero : forall x:Z, {x <> 0%Z} + {x = 0%Z}.
Proof.
intro x. elim (Z_eq_dec x 0); auto.
Qed.