Changes by: Aleksey Nogin (nogin at cs.caltech.edu)
Date: 2003-07-13 15:56:38 -0700 (Sun, 13 Jul 2003)
Revision: 4737
Log message:

      This implements most of the context binding and scoping structure (as
      required by the semantics of sequent schemas).
      
      Still TODO:
      - Make sure that variables in rule arguments are parsed according to the scoping
      they have in a rule.
      - Make sure that variables in term arguments in top loop are parsed according
      to the scoping they have in the current mterm.
      - Fix the rules that have ill-specified context restrictions, debug, etc.
      

Changes  Path
+3 -3 metaprl-branches/bound_contexts/Makefile
+8 -4 metaprl-branches/bound_contexts/filter/base/filter_magic.ml
+21 -1 metaprl-branches/bound_contexts/filter/base/filter_type.ml
+0 -2 metaprl-branches/bound_contexts/filter/boot/sequent_boot.ml
+0 -1 metaprl-branches/bound_contexts/filter/boot/tactic_boot_sig.mlz
+14 -13 metaprl-branches/bound_contexts/filter/filter/filter_parse.ml
+1 -1 metaprl-branches/bound_contexts/filter/filter/filter_patt.ml
+47 -48 metaprl-branches/bound_contexts/filter/filter/term_grammar.ml
+1 -17 metaprl-branches/bound_contexts/filter/filter/term_grammar.mli
+3 -1 metaprl-branches/bound_contexts/filter/phobos/phobos_parser.mly
+6 -5 metaprl-branches/bound_contexts/refiner/refiner/refine.ml
+1 -1 metaprl-branches/bound_contexts/refiner/refiner/refine_error.ml
+1 -1 metaprl-branches/bound_contexts/refiner/refiner/refiner_ds.ml
+2 -2 metaprl-branches/bound_contexts/refiner/reflib/Files
+1 -1 metaprl-branches/bound_contexts/refiner/reflib/arith.ml
+23 -9 metaprl-branches/bound_contexts/refiner/reflib/ascii_io.ml
+20 -13 metaprl-branches/bound_contexts/refiner/reflib/dform.ml
+1 -1 metaprl-branches/bound_contexts/refiner/reflib/match_seq.ml
+7 -4 metaprl-branches/bound_contexts/refiner/reflib/refine_exn.ml
+47 -52 metaprl-branches/bound_contexts/refiner/reflib/simple_print.ml
+3 -3 metaprl-branches/bound_contexts/refiner/reflib/term_compare.ml
+1 -1 metaprl-branches/bound_contexts/refiner/reflib/term_match_table.ml
+1 -1 metaprl-branches/bound_contexts/refiner/refsig/refine_error_sig.ml
+43 -48 metaprl-branches/bound_contexts/refiner/refsig/term_base_minimal_sig.ml
+6 -10 metaprl-branches/bound_contexts/refiner/refsig/term_base_sig.ml
+3 -1 metaprl-branches/bound_contexts/refiner/refsig/term_hash_sig.ml
+5 -0 metaprl-branches/bound_contexts/refiner/refsig/term_man_minimal_sig.ml
+14 -1 metaprl-branches/bound_contexts/refiner/refsig/term_man_sig.ml
+1 -1 metaprl-branches/bound_contexts/refiner/refsig/term_sig.ml
+6 -5 metaprl-branches/bound_contexts/refiner/rewrite/rewrite.ml
+2 -2 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_build_contractum.ml
+53 -44 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_compile_contractum.ml
+73 -65 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_compile_redex.ml
+11 -9 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_debug.ml
+24 -8 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_match_redex.ml
+4 -4 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_types.ml
+22 -22 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_util.ml
+2 -2 metaprl-branches/bound_contexts/refiner/rewrite/rewrite_util_sig.ml
+1 -1 metaprl-branches/bound_contexts/refiner/term_ds/Files
+42 -30 metaprl-branches/bound_contexts/refiner/term_ds/term_addr_ds.ml
+4 -1 metaprl-branches/bound_contexts/refiner/term_ds/term_addr_ds.mli
+47 -94 metaprl-branches/bound_contexts/refiner/term_ds/term_base_ds.ml
+2 -1 metaprl-branches/bound_contexts/refiner/term_ds/term_ds.ml
+5 -8 metaprl-branches/bound_contexts/refiner/term_ds/term_ds_sig.ml
+128 -31 metaprl-branches/bound_contexts/refiner/term_ds/term_man_ds.ml
+10 -9 metaprl-branches/bound_contexts/refiner/term_ds/term_op_ds.ml
+55 -45 metaprl-branches/bound_contexts/refiner/term_ds/term_subst_ds.ml
+6 -6 metaprl-branches/bound_contexts/refiner/term_gen/term_addr_gen.ml
+19 -9 metaprl-branches/bound_contexts/refiner/term_gen/term_hash.ml
+7 -2 metaprl-branches/bound_contexts/refiner/term_gen/term_header_constr.ml
+173 -35 metaprl-branches/bound_contexts/refiner/term_gen/term_man_gen.ml
+3 -68 metaprl-branches/bound_contexts/refiner/term_std/term_base_std.ml
+1 -1 metaprl-branches/bound_contexts/refiner/term_std/term_std.ml
+2 -7 metaprl-branches/bound_contexts/refiner/term_std/term_std_sig.ml
+36 -26 metaprl-branches/bound_contexts/support/display/base_dform.ml
+1 -1 metaprl-branches/bound_contexts/support/shell/shell_rewrite.ml
+18 -7 metaprl-branches/bound_contexts/support/shell/shell_state.ml
+1 -0 metaprl-branches/bound_contexts/support/shell/shell_state.mli
+1 -1 metaprl-branches/bound_contexts/support/tactics/tactic_cache.ml
+1 -1 metaprl-branches/bound_contexts/support/tactics/top_tacticals.ml
+1 -1 metaprl-branches/bound_contexts/theories/itt/itt_equal.ml
+1 -1 metaprl-branches/bound_contexts/theories/itt/itt_equal.mli