src/Pure/Proof/extraction.ML
changeset 35985 0bbf0d2348f9
parent 35845 e5980f0ad025
child 36042 85efdadee8ae
equal deleted inserted replaced
35984:87e6e2737aee 35985:0bbf0d2348f9
   731                     Logic.mk_equals (head_of (strip_abs_body fu), ft)), [])]
   731                     Logic.mk_equals (head_of (strip_abs_body fu), ft)), [])]
   732            in
   732            in
   733              thy'
   733              thy'
   734              |> PureThy.store_thm (Binding.qualified_name (corr_name s vs),
   734              |> PureThy.store_thm (Binding.qualified_name (corr_name s vs),
   735                   Thm.varifyT_global (funpow (length (OldTerm.term_vars corr_prop))
   735                   Thm.varifyT_global (funpow (length (OldTerm.term_vars corr_prop))
   736                     (Thm.forall_elim_var 0) (forall_intr_frees
   736                     (Thm.forall_elim_var 0) (Thm.forall_intr_frees
   737                       (ProofChecker.thm_of_proof thy'
   737                       (ProofChecker.thm_of_proof thy'
   738                        (fst (Proofterm.freeze_thaw_prf prf))))))
   738                        (fst (Proofterm.freeze_thaw_prf prf))))))
   739              |> snd
   739              |> snd
   740              |> fold Code.add_default_eqn def_thms
   740              |> fold Code.add_default_eqn def_thms
   741            end
   741            end