ASSUME_TAC : thm_tactic
A ?- t ============== ASSUME_TAC (A' |- u) A u {u} ?- t
let val eq1 = Term `(x:'a) = y` val eq2 = Term `(y:'a) = z` in TRANS (ASSUME eq1) (ASSUME eq2) end;
let val eq1 = Term `(x:'a) = y` val eq2 = Term `(y:'a) = z` val goal = ([eq1,eq2],Parse.Term `P:bool`) in ASSUME_TAC (TRANS (ASSUME eq1) (ASSUME eq2)) goal end; val it = ([([`x = z`, `x = y`, `y = z`], `P`)], fn) : tactic_result
Alternatively, the axiom EQ_TRANS could be added to the assumptions of g:
let val eq1 = Term `(x:'a) = y` val eq2 = Term `(y:'a) = z` val goal = ([eq1,eq2], Term `P:bool`) in ASSUME_TAC EQ_TRANS goal end; val it = ([([`!x y z. (x = y) /\ (y = z) ==> (x = z)`, `x = y`,`y = z`],`P`)],fn) : tactic_result