https://github.com/coq-ext-lib/coq-ext-lib
Tip revision: 5dd9cfa51f96fcb785c7c31d8c6bf55af5d93f27 authored by Gregory Malecha on 30 June 2018, 02:28:08 UTC
Merge pull request #40 from Lysxia/v8.8
Merge pull request #40 from Lysxia/v8.8
Tip revision: 5dd9cfa
ConsiderDemo.v
Require NPeano.
Import NPeano.Nat.
Require Import ExtLib.Tactics.Consider.
Require Import Coq.Bool.Bool.
Require Import ExtLib.Data.Nat.
Require Import Coq.omega.Omega.
Set Implicit Arguments.
Set Strict Implicit.
(** Some tests *)
Section test.
Goal forall x y z, (ltb x y && ltb y z) = true ->
ltb x z = true.
intros x y z.
consider (ltb x y && ltb y z).
consider (ltb x z); auto. intros. exfalso. omega.
Qed.
Goal forall x y z,
ltb x y = true ->
ltb y z = true ->
ltb x z = true.
Proof.
intros. consider (ltb x y); consider (ltb y z); consider (ltb x z); intros; auto.
exfalso; omega.
Qed.
End test.