Nominal/activities/tphols09/IDW/MW-Ex1.thy
author Christian Urban <urbanc@in.tum.de>
Tue, 30 Apr 2019 23:36:38 +0100
changeset 566 796b72e0c766
parent 415 f1be8028a4a9
permissions -rw-r--r--
update

theory Ex1
imports Main
begin

section {* ML tactics as (crude) methods *}

lemma True
proof

  assume a: A
  assume b: B

  have "A & B"
    apply (tactic {* rtac @{thm conjI} 1 *})
    using a
    apply (tactic {* resolve_tac facts 1 *})
    using b
    apply (tactic {* resolve_tac facts 1 *})
    done

  have "A & B"
    using a b
    apply (tactic {* Method.insert_tac facts 1 *})
    apply (tactic {* (rtac @{thm conjI} THEN_ALL_NEW atac) 1 *})
    done

qed

end