]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/tests/applys.ma
freescale porting to ng, work in progress
[helm.git] / helm / software / matita / tests / applys.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15
16
17 include "nat/div_and_mod.ma".
18 include "nat/factorial.ma".
19 include "nat/primes.ma".
20
21 theorem prova : \forall n. (n+O)*(S O) = n.
22 intro.
23 applyS times_n_SO.
24 qed.
25
26 lemma foo: ∀n.(S n)! = (S n) * n!.
27 intro; reflexivity.
28 qed.
29
30 theorem prova2 :
31  \forall n. S n \divides (S n)!.
32 intros.
33 (* se non trova subito sym_times poi si perde! *)
34 (* alternativamente si puo' abilitare la are_convertible nella
35    is_identity, ma poi va peggio nel resto (conv lunghe) *)
36 letin www \def sym_times.
37 clearbody www.
38 applyS (witness ? ? ? (refl_eq ? ?)).
39 qed.