X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Ftactics%2Finversion_principle.ml;h=b0f4d236ff5aa23e3fefad53b73e831c578e3274;hb=e05e28d01c55699ce539699ac745341bfa4c1c0f;hp=1d56cab728770bd9eac6707080dde1b863599d30;hpb=be16471f978380deb789b3b70c92d998addbb350;p=helm.git diff --git a/components/tactics/inversion_principle.ml b/components/tactics/inversion_principle.ml index 1d56cab72..b0f4d236f 100644 --- a/components/tactics/inversion_principle.ml +++ b/components/tactics/inversion_principle.ml @@ -8,7 +8,7 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. -* + * * HELM is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -153,8 +153,9 @@ let build_inversion uri obj = UriManager.uri_of_string (buri ^ "/" ^ name ^ "_inv" ^ ".con") in let goal = CicMkImplicit.new_meta metasenv [] in let metasenv' = (goal,[],ref_theorem)::metasenv in + let attrs = [`Class (`InversionPrinciple); `Generated] in let proof= - (Some inversor_uri,metasenv',Cic.Meta(goal,[]),ref_theorem) in + (Some inversor_uri,metasenv',Cic.Meta(goal,[]),ref_theorem, attrs) in let _,applies = List.fold_right (fun _ (i,applies) -> @@ -184,8 +185,8 @@ let build_inversion uri obj = )) (proof,goal) in - let metasenv,bo,ty = - match proof1 with (_,metasenv,bo,ty) -> metasenv,bo,ty + let metasenv,bo,ty, attrs = + match proof1 with (_,metasenv,bo,ty, attrs) -> metasenv,bo,ty, attrs in assert (metasenv = []); Some