diff options
author | 2005-11-02 13:15:18 +0000 | |
---|---|---|
committer | 2005-11-02 13:15:18 +0000 | |
commit | 30ef31fd8e01d39fb7ce909167dcc1e4a29d7f80 (patch) | |
tree | 70e4a3319e86e008357d5097684970f43e40e80a | |
parent | c6fa7faebb8d08e3f443457f2259c668559964d0 (diff) |
Test reproductibilité du bug #1031
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7491 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r-- | test-suite/success/simpl.v8 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test-suite/success/simpl.v8 b/test-suite/success/simpl.v8 new file mode 100644 index 000000000..91015ab28 --- /dev/null +++ b/test-suite/success/simpl.v8 @@ -0,0 +1,23 @@ +(* Check that inversion of names of mutual inductive fixpoints works *) +(* (cf bug #1031) *) + +Inductive tree : Set := +| node : nat -> forest -> tree +with forest : Set := +| leaf : forest +| cons : tree -> forest -> forest + . +Definition copy_of_compute_size_forest := +fix copy_of_compute_size_forest (f:forest) : nat := + match f with + | leaf => 1 + | cons t f0 => copy_of_compute_size_forest f0 + copy_of_compute_size_tree t + end +with copy_of_compute_size_tree (t:tree) : nat := + match t with + | node _ f => 1 + copy_of_compute_size_forest f + end for copy_of_compute_size_forest +. +Eval simpl in (copy_of_compute_size_forest leaf). + + |