https://github.com/coq-ext-lib/coq-ext-lib
Raw File
Tip revision: d8d0bb34aad698d98687d625ba7fe45b08a58c6e authored by Gregory Malecha on 29 October 2016, 22:40:40 UTC
simplify universes in Hlist.
Tip revision: d8d0bb3
ConsiderDemo.v
Require NPeano.
Import NPeano.Nat.
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.
back to top