File: SET_RULE.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 (32 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (7)
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
\DOC SET_RULE

\TYPE {SET_RULE : term -> thm}

\SYNOPSIS
Attempt to prove elementary set-theoretic lemma.

\DESCRIBE
The function {SET_RULE} is a crude automated prover for set-theoretic facts.
When applied to a term, it expands various set-theoretic definitions explicitly
and then attempts to solve the result using {MESON}.

\FAILURE
Fails if the simple translation does not suffice, or the resulting goal is too
deep for {MESON}.

\EXAMPLE
{
  # SET_RULE `{{x | ~(x IN s <=> x IN t)}} = (s DIFF t) UNION (t DIFF s)`;;
  ...
  val it : thm = |- {{x | ~(x IN s <=> x IN t)}} = s DIFF t UNION t DIFF s

  # SET_RULE
     `UNIONS {{t y | y IN x INSERT s}} = t x UNION UNIONS {{t y | y IN s}}`;;
  val it : thm =
    |- UNIONS {{t y | y IN x INSERT s}} = t x UNION UNIONS {{t y | y IN s}}
}

\SEEALSO
MESON, MESON_TAC[], SET_TAC.

\ENDDOC