X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fground%2Fwf_ind%2Fwf2_ind_nlt.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fground%2Fwf_ind%2Fwf2_ind_nlt.ma;h=492c84cdbfc254fecb632751790d0f413556cc06;hb=df7a2aa19e98dc28e7f22129275a175cead49e2d;hp=0000000000000000000000000000000000000000;hpb=614d006be363d2e2bbfdf8eb3c20c8604d278be1;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/ground/wf_ind/wf2_ind_nlt.ma b/matita/matita/contribs/lambdadelta/ground/wf_ind/wf2_ind_nlt.ma new file mode 100644 index 000000000..492c84cdb --- /dev/null +++ b/matita/matita/contribs/lambdadelta/ground/wf_ind/wf2_ind_nlt.ma @@ -0,0 +1,30 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +include "ground/arith/nat_lt.ma". + +(* WELL-FOUNDED INDUCTION ***************************************************) + +fact wf2_ind_nlt_aux (A1) (A2) (f:A1→A2→nat) (Q:relation2 …): + (∀n. (∀a1,a2. f a1 a2 < n → Q a1 a2) → ∀a1,a2. f a1 a2 = n → Q a1 a2) → + ∀n,a1,a2. f a1 a2 = n → Q a1 a2. +#A1 #A2 #f #Q #H #n @(nat_ind_lt … n) -n /3 width=3 by/ +qed-. + +(*** f2_ind *) +lemma wf2_ind_nlt (A1) (A2) (f:A1→A2→nat) (Q:relation2 …): + (∀n. (∀a1,a2. f a1 a2 < n → Q a1 a2) → ∀a1,a2. f a1 a2 = n → Q a1 a2) → + ∀a1,a2. Q a1 a2. +#A1 #A2 #f #Q #H #a1 #a2 @(wf2_ind_nlt_aux … H) -H // +qed-.