https://github.com/coq-ext-lib/coq-ext-lib
Tip revision: 9d7c7449778ecb8111c0765c542eb5feba4ce2c2 authored by Gregory Malecha on 03 April 2015, 06:49:30 UTC
a few more lemmas for Data.Prop.
a few more lemmas for Data.Prop.
Tip revision: 9d7c744
ConsiderDemo.v
Require Import ExtLib.Tactics.Consider.
Set Implicit Arguments.
Set Strict Implicit.
(** Some tests *)
Section test.
Require Import NPeano Coq.Bool.Bool.
Require Import ExtLib.Data.Nat.
Require Import Omega.
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.