Quantcast
Channel: How to to use the fact that combining these hypothesis is false in Coq - Proof Assistants Stack Exchange
Browsing latest articles
Browse All 5 View Live

Answer by Pierre Jouvelot for How to to use the fact that combining these...

As mentioned by @Pierre Casteran, there are multiple possible versions. For the record, here is a simple mathcomp-based one.From mathcomp Require Import all_ssreflect. Lemma helper : forall a y, a >...

View Article



Answer by Pierre Castéran for How to to use the fact that combining these...

If you choose to use gt_not_le_stt, you don't need to destruct a nor y. Goal forall a y, a > y -> a <= y -> False.Proof. intros a y H H0. apply Arith_prebase.gt_not_le_stt in H. exact (H...

View Article

Answer by Villetaneuse for How to to use the fact that combining these...

There are several quicker solutions.Require Import PeanoNat.Lemma helper : forall a y, a > y -> a <= y -> False.Proof. intros a y H. apply Nat.nle_gt. (* Coq guesses the direction of...

View Article

Answer by Link L for How to to use the fact that combining these hypothesis...

whatever .. here's a long-cut...Lemma helper : forall a y, a > y -> a <= y -> False.Proof. intros. destruct y. - destruct a.+ apply Arith_prebase.gt_irrefl_stt in H. destruct H.+ apply...

View Article

How to to use the fact that combining these hypothesis is false in Coq

Suppose that I have a hypothesis H1 : a > y and another hypothesis H2 : a <= y in Coq.I want to use the fact that combining these hypothesis is an instance of False so that I get to prove my goal...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images