https://github.com/coq-ext-lib/coq-ext-lib
Tip revision: ddeab06b09115f66db54b2997df390cd7599eec6 authored by Yishuai Li on 17 January 2020, 19:16:34 UTC
Notation ;; should be right associative
Notation ;; should be right associative
Tip revision: ddeab06
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.ZArith.ZArith.
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.