blob: db52af2fe993dc2fcaa87c12f8e382b6750d9d58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2011 *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
(* This needs step by step unfolding *)
Fixpoint T (n:nat) : Prop :=
match n with
| O => True
| S p => n = n -> T p
end.
Require Import Arith.
Goal T 3 -> T 1.
intro H.
apply H.
(* This needs unification on type *)
Goal forall n m : nat, S m = S n :>nat.
intros.
apply f_equal.
(* f_equal : forall (A B:Set) (f:A->B) (x y:A), x=y->(f x)=(f y) *)
(* and A cannot be deduced from the goal but only from the type of f, x or y *)
|