Summary
- more thorough beta contraction; removed unused operations;
- tuned whitespace;
- tuned;
- more operations, following proofterm.ML;
- tuned;
- clarified signature, following Term.subst_bounds_same;
- tuned whitespace;
- minor performance tuning: more concise union;
- tuned comments;
- tuned, following close_proof;
- proper treatment of proof hyps, following 8368160d3c65;
- proper treatment of proof hyps: unchangeable, like bound;
- proper Thm.transfer (required for zproofs);
- clarified signature;
- proper beta_norm after instantiation (amending 90c5aadcc4b2);
- minor performance tuning: more direct beta_norm;
- more robust norm_proof: turn env into instantiation, based on visible statement;
- proper scope of cache (amending 61af3e917597);
- tuned comments;