From 17a25a7a5b9cb2ba69fe9fdf1989bba5b212cadc Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Thu, 30 Jun 2005 10:24:36 +0000 Subject: [PATCH] A simpler implementation of inversion that does not generate the dummy hypothesis Hcut: 0=0. --- helm/matita/tests/inversion.ma | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helm/matita/tests/inversion.ma b/helm/matita/tests/inversion.ma index 5f1733444..9c56069b2 100644 --- a/helm/matita/tests/inversion.ma +++ b/helm/matita/tests/inversion.ma @@ -22,3 +22,14 @@ theorem test_inversion: \forall n. le n O \to n=O. simplify. intros. discriminate H3. qed. + +(* Piu' semplice e non lascia l'ipotesi inutile Hcut *) +alias id "refl_equal" = "cic:/Coq/Init/Logic/eq.ind#xpointer(1/1/1)". +theorem test_inversion2: \forall n. le n O \to n=O. + intros. + generalize (refl_equal nat O). + apply (le_ind ? (\lambda x. O=x \to n=x) ? ? ? H). + intro. reflexivity. + simplify. intros. + discriminate H3. +qed. -- 2.39.2