src/HOL/AxClasses/Lattice/LatInsts.ML
author clasohm
Tue, 30 Jan 1996 15:24:36 +0100
changeset 1465 5d7a7e439cec
parent 1440 de6f18da81bb
child 1899 0075a8d26a80
permissions -rw-r--r--
expanded tabs
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
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     5
goal thy "Inf {x, y} = x && y";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     6
  br (Inf_uniq RS mp) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     7
  by (stac bin_is_Inf_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     8
  br inf_is_inf 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     9
qed "bin_Inf_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    10
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    11
goal thy "Sup {x, y} = x || y";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    12
  br (Sup_uniq RS mp) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    13
  by (stac bin_is_Sup_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    14
  br sup_is_sup 1;
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
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    21
goal thy "Inf (A Un B) = Inf A && Inf B";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    22
  br (Inf_uniq RS mp) 1;
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    23
  by (rewtac is_Inf_def);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    24
  by (safe_tac set_cs);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    25
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    26
  br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    27
  br inf_lb1 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    28
  be Inf_lb 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    29
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    30
  br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    31
  br inf_lb2 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    32
  be Inf_lb 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    33
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    34
  by (stac le_inf_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    35
  br conjI 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    36
  br Inf_ub_lbs 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    37
  by (fast_tac set_cs 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    38
  br Inf_ub_lbs 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    39
  by (fast_tac set_cs 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    40
qed "Inf_Un_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    41
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    42
goal thy "Inf (UN i:A. B i) = Inf {Inf (B i) |i. i:A}";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    43
  br (Inf_uniq RS mp) 1;
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    44
  by (rewtac is_Inf_def);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    45
  by (safe_tac set_cs);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    46
  (*level 3*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    47
  br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    48
  be Inf_lb 2;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    49
  br (sing_Inf_eq RS subst) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    50
  br (Inf_subset_antimon RS mp) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    51
  by (fast_tac set_cs 1);
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);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    54
  by (safe_tac set_cs);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    55
  by (stac le_Inf_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    56
  by (fast_tac set_cs 1);
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
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    61
goal thy "Sup (A Un B) = Sup A || Sup B";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    62
  br (Sup_uniq RS mp) 1;
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    63
  by (rewtac is_Sup_def);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    64
  by (safe_tac set_cs);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    65
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    66
  br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    67
  be Sup_ub 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    68
  br sup_ub1 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    69
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    70
  br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    71
  be Sup_ub 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    72
  br sup_ub2 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    73
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    74
  by (stac ge_sup_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    75
  br conjI 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    76
  br Sup_lb_ubs 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    77
  by (fast_tac set_cs 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    78
  br Sup_lb_ubs 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    79
  by (fast_tac set_cs 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    80
qed "Sup_Un_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    81
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    82
goal thy "Sup (UN i:A. B i) = Sup {Sup (B i) |i. i:A}";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    83
  br (Sup_uniq RS mp) 1;
1465
5d7a7e439cec expanded tabs
clasohm
parents: 1440
diff changeset
    84
  by (rewtac is_Sup_def);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    85
  by (safe_tac set_cs);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    86
  (*level 3*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    87
  br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    88
  be Sup_ub 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    89
  br (sing_Sup_eq RS subst) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    90
  back();
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    91
  br (Sup_subset_mon RS mp) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    92
  by (fast_tac set_cs 1);
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);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    95
  by (safe_tac set_cs);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    96
  by (stac ge_Sup_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    97
  by (fast_tac set_cs 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    98
qed "Sup_UN_eq";