;;
let reduction_tactic_in_scratch reduction_function ty term =
- let curi,metasenv,pbo,pty =
+ let metasenv =
match !proof with
- None -> assert false
- | Some (curi,metasenv,bo,ty) -> curi,metasenv,bo,ty
+ None -> []
+ | Some (_,metasenv,_,_) -> metasenv
in
- let (metano,context,_) =
+ let context =
match !goal with
- None -> assert false
- | Some (metano,(context,ty)) -> metano,context,ty
+ None -> []
+ | Some (_,(context,_)) -> context
in
let term' = reduction_function term in
ProofEngineReduction.replace ~what:term ~with_what:term' ~where:ty