src/HOL/AxClasses/Lattice/LatInsts.ML
author paulson
Wed, 05 Aug 1998 10:57:25 +0200
changeset 5253 82a5ca6290aa
parent 5069 3ea049f7979d
child 5711 5a1cd4b4b20e
permissions -rw-r--r--
New record type of programs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     1
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     2
open LatInsts;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     3
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     4
5069
3ea049f7979d isatool fixgoal;
wenzelm
parents: 4153
diff changeset
     5
Goal "Inf {x, y} = x && y";
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
     6
  by (rtac (Inf_uniq RS mp) 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     7
  by (stac bin_is_Inf_eq 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
     8
  by (rtac inf_is_inf 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     9
qed "bin_Inf_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    10
5069
3ea049f7979d isatool fixgoal;
wenzelm
parents: 4153
diff changeset
    11
Goal "Sup {x, y} = x || y";
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    12
  by (rtac (Sup_uniq RS mp) 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    13
  by (stac bin_is_Sup_eq 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    14
  by (rtac sup_is_sup 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    15
qed "bin_Sup_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    16
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    17
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    18
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    19
(* Unions and limits *)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    20
5069
3ea049f7979d isatool fixgoal;
wenzelm
parents: 4153
diff changeset
    21
Goal "Inf (A Un B) = Inf A && Inf B";
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    22
  by (rtac (Inf_uniq RS mp) 1);
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    23
  by (rewtac is_Inf_def);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    24
  by Safe_tac;
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    25
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    26
  by (rtac (conjI RS (le_trans RS mp)) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    27
  by (rtac inf_lb1 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    28
  by (etac Inf_lb 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    29
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    30
  by (rtac (conjI RS (le_trans RS mp)) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    31
  by (rtac inf_lb2 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    32
  by (etac Inf_lb 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    33
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    34
  by (stac le_inf_eq 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    35
  by (rtac conjI 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    36
  by (rtac Inf_ub_lbs 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    37
  by (Fast_tac 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    38
  by (rtac Inf_ub_lbs 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    39
  by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    40
qed "Inf_Un_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    41
5069
3ea049f7979d isatool fixgoal;
wenzelm
parents: 4153
diff changeset
    42
Goal "Inf (UN i:A. B i) = Inf {Inf (B i) |i. i:A}";
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    43
  by (rtac (Inf_uniq RS mp) 1);
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    44
  by (rewtac is_Inf_def);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    45
  by Safe_tac;
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    46
  (*level 3*)
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    47
  by (rtac (conjI RS (le_trans RS mp)) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    48
  by (etac Inf_lb 2);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    49
  by (rtac (sing_Inf_eq RS subst) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    50
  by (rtac (Inf_subset_antimon RS mp) 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    51
  by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    52
  (*level 8*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    53
  by (stac le_Inf_eq 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    54
  by Safe_tac;
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    55
  by (stac le_Inf_eq 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    56
  by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    57
qed "Inf_UN_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    58
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    59
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    60
5069
3ea049f7979d isatool fixgoal;
wenzelm
parents: 4153
diff changeset
    61
Goal "Sup (A Un B) = Sup A || Sup B";
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    62
  by (rtac (Sup_uniq RS mp) 1);
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    63
  by (rewtac is_Sup_def);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    64
  by Safe_tac;
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    65
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    66
  by (rtac (conjI RS (le_trans RS mp)) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    67
  by (etac Sup_ub 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    68
  by (rtac sup_ub1 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    69
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    70
  by (rtac (conjI RS (le_trans RS mp)) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    71
  by (etac Sup_ub 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    72
  by (rtac sup_ub2 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    73
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    74
  by (stac ge_sup_eq 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    75
  by (rtac conjI 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    76
  by (rtac Sup_lb_ubs 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    77
  by (Fast_tac 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    78
  by (rtac Sup_lb_ubs 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    79
  by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    80
qed "Sup_Un_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    81
5069
3ea049f7979d isatool fixgoal;
wenzelm
parents: 4153
diff changeset
    82
Goal "Sup (UN i:A. B i) = Sup {Sup (B i) |i. i:A}";
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    83
  by (rtac (Sup_uniq RS mp) 1);
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    84
  by (rewtac is_Sup_def);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    85
  by Safe_tac;
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    86
  (*level 3*)
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    87
  by (rtac (conjI RS (le_trans RS mp)) 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    88
  by (etac Sup_ub 1);
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    89
  by (rtac (sing_Sup_eq RS subst) 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    90
  back();
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    91
  by (rtac (Sup_subset_mon RS mp) 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    92
  by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    93
  (*level 8*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    94
  by (stac ge_Sup_eq 1);
4153
e534c4c32d54 Ran expandshort, especially to introduce Safe_tac
paulson
parents: 4091
diff changeset
    95
  by Safe_tac;
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    96
  by (stac ge_Sup_eq 1);
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1465
diff changeset
    97
  by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    98
qed "Sup_UN_eq";