X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaTypes.ml;h=3bc1056283d05740630b2d042a859f4d08e2177a;hb=6565cd51fb866a80838003cd65dc00e4d5a9814b;hp=e349a6e4dc90afbd516e4ca258d5e68f85894d09;hpb=29a3bd5d160f31873236c93a008a9e4fd31c305e;p=helm.git diff --git a/helm/matita/matitaTypes.ml b/helm/matita/matitaTypes.ml index e349a6e4d..3bc105628 100644 --- a/helm/matita/matitaTypes.ml +++ b/helm/matita/matitaTypes.ml @@ -58,18 +58,29 @@ type options = option_value StringMap.t let no_options = StringMap.empty type status = { - aliases: DisambiguateTypes.environment; (** disambiguation aliases *) - moo_content_rev: string list; (*CSC: a TacticAst.command list would be better *) - proof_status: proof_status; - options: options; - objects: (UriManager.uri * string) list; - (** in-scope objects, with their paths *) + aliases : DisambiguateTypes.environment; + moo_content_rev : string list; + proof_status : proof_status; + options : options; + objects : (UriManager.uri * string) list; + notation_ids: CicNotation.notation_id list; } +let set_metasenv metasenv status = + let proof_status = + match status.proof_status with + | No_proof -> Intermediate metasenv + | Incomplete_proof ((uri, _, proof, ty), goal) -> + Incomplete_proof ((uri, metasenv, proof, ty), goal) + | Intermediate _ -> Intermediate metasenv + | Proof _ -> assert false + in + { status with proof_status = proof_status } + let dump_status status = MatitaLog.message "status.aliases:\n"; MatitaLog.message - (CicTextualParser2.EnvironmentP3.to_string status.aliases ^ "\n"); + (DisambiguatePp.pp_environment status.aliases ^ "\n"); MatitaLog.message "status.proof_status:"; MatitaLog.message (match status.proof_status with