File: CONDS_CELIM_CONV.doc

package info (click to toggle)
hol-light 20120602-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,452 kB
  • sloc: ml: 348,797; cpp: 438; java: 279; makefile: 252; sh: 183; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (44 lines) | stat: -rw-r--r-- 1,582 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\DOC CONDS_CELIM_CONV

\TYPE {CONDS_CELIM_CONV : conv}

\SYNOPSIS
Remove all conditional expressions from a Boolean formula.

\DESCRIBE
When applied to a Boolean term, {CONDS_CELIM_CONV} identifies subterms that are
conditional expressions of the form `{if p then x else y}', and eliminates
them. First they are ``pulled out'' as far as possible, e.g.
from `{f (if p then x else y)}' to `{if p then f(x) else f(y)}' and so on. When
a quantifier that binds one of the variables in the expression is reached, the
subterm is of Boolean type, say `{if p then q else r}', and it is replaced by a
propositional equivalent of the form `{(~p \/ q) /\ (p \/ r)}'.

\FAILURE
Never fails, but will just return a reflexive theorem if the term is not
Boolean.

\EXAMPLE
{
  # CONDS_CELIM_CONV `y <= z ==> !x. (if x <= y then y else x) <= z`;;     
  val it : thm =
    |- y <= z ==> (!x. (if x <= y then y else x) <= z) <=>
       y <= z ==> (!x. (~(x <= y) \/ y <= z) /\ (x <= y \/ x <= z))
}

\USES
Mostly for initial normalization in automated rules, but may be helpful for
other uses.

\COMMENTS
The function {CONDS_ELIM_CONV} is functionally similar, but will do the final
propositional splitting in a ``disjunctive'' rather than ``conjunctive'' way.
The disjunctive way is usually better when the term will subsequently be passed
to a refutation procedure, whereas the conjunctive form is better for
non-refutation procedures. In each case, the policy is changed in an 
appropriate way after passing through quantifiers.

\SEEALSO
COND_CASES_TAC, COND_ELIM_CONV, CONDS_ELIM_CONV.

\ENDDOC