File: EVERY_ASSUM.doc

package info (click to toggle)
hol-light 20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,568 kB
  • ctags: 8,549
  • sloc: ml: 540,018; cpp: 439; lisp: 286; java: 279; makefile: 262; sh: 229; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (30 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
\DOC EVERY_ASSUM

\TYPE {EVERY_ASSUM : thm_tactic -> tactic}

\SYNOPSIS
Sequentially applies all tactics given by mapping a function over the
assumptions of a goal.

\KEYWORDS
theorem-tactical, assumption.

\DESCRIBE
When applied to a theorem-tactic {f} and a goal {({{A1;...;An}} ?- C)}, the
{EVERY_ASSUM} tactical maps {f} over the list of assumptions then
applies the resulting tactics, in sequence, to the goal:
{
   EVERY_ASSUM f ({{A1;...;An}} ?- C)
    = (f(.. |- A1) THEN ... THEN f(.. |- An)) ({{A1;...;An}} ?- C)
}
\noindent If the goal has no assumptions, then {EVERY_ASSUM} has no effect.

\FAILURE
The application of {EVERY_ASSUM} to a theorem-tactic and a goal fails
if the theorem-tactic fails when applied to any of the assumptions of the goal,
or if any of the resulting tactics fail when applied sequentially.

\SEEALSO
ASSUM_LIST, MAP_EVERY, MAP_FIRST, THEN.

\ENDDOC