src/HOL/AxClasses/Lattice/LatInsts.ML
author berghofe
Fri Aug 02 12:25:26 1996 +0200 (1996-08-02)
changeset 1899 0075a8d26a80
parent 1465 5d7a7e439cec
child 4091 771b1f6422a8
permissions -rw-r--r--
Classical tactics now use default claset.
wenzelm@1440
     1
wenzelm@1440
     2
open LatInsts;
wenzelm@1440
     3
wenzelm@1440
     4
wenzelm@1440
     5
goal thy "Inf {x, y} = x && y";
wenzelm@1440
     6
  br (Inf_uniq RS mp) 1;
wenzelm@1440
     7
  by (stac bin_is_Inf_eq 1);
wenzelm@1440
     8
  br inf_is_inf 1;
wenzelm@1440
     9
qed "bin_Inf_eq";
wenzelm@1440
    10
wenzelm@1440
    11
goal thy "Sup {x, y} = x || y";
wenzelm@1440
    12
  br (Sup_uniq RS mp) 1;
wenzelm@1440
    13
  by (stac bin_is_Sup_eq 1);
wenzelm@1440
    14
  br sup_is_sup 1;
wenzelm@1440
    15
qed "bin_Sup_eq";
wenzelm@1440
    16
wenzelm@1440
    17
wenzelm@1440
    18
wenzelm@1440
    19
(* Unions and limits *)
wenzelm@1440
    20
wenzelm@1440
    21
goal thy "Inf (A Un B) = Inf A && Inf B";
wenzelm@1440
    22
  br (Inf_uniq RS mp) 1;
clasohm@1465
    23
  by (rewtac is_Inf_def);
berghofe@1899
    24
  by (safe_tac (!claset));
wenzelm@1440
    25
wenzelm@1440
    26
  br (conjI RS (le_trans RS mp)) 1;
wenzelm@1440
    27
  br inf_lb1 1;
wenzelm@1440
    28
  be Inf_lb 1;
wenzelm@1440
    29
wenzelm@1440
    30
  br (conjI RS (le_trans RS mp)) 1;
wenzelm@1440
    31
  br inf_lb2 1;
wenzelm@1440
    32
  be Inf_lb 1;
wenzelm@1440
    33
wenzelm@1440
    34
  by (stac le_inf_eq 1);
wenzelm@1440
    35
  br conjI 1;
wenzelm@1440
    36
  br Inf_ub_lbs 1;
berghofe@1899
    37
  by (Fast_tac 1);
wenzelm@1440
    38
  br Inf_ub_lbs 1;
berghofe@1899
    39
  by (Fast_tac 1);
wenzelm@1440
    40
qed "Inf_Un_eq";
wenzelm@1440
    41
wenzelm@1440
    42
goal thy "Inf (UN i:A. B i) = Inf {Inf (B i) |i. i:A}";
wenzelm@1440
    43
  br (Inf_uniq RS mp) 1;
clasohm@1465
    44
  by (rewtac is_Inf_def);
berghofe@1899
    45
  by (safe_tac (!claset));
wenzelm@1440
    46
  (*level 3*)
wenzelm@1440
    47
  br (conjI RS (le_trans RS mp)) 1;
wenzelm@1440
    48
  be Inf_lb 2;
wenzelm@1440
    49
  br (sing_Inf_eq RS subst) 1;
wenzelm@1440
    50
  br (Inf_subset_antimon RS mp) 1;
berghofe@1899
    51
  by (Fast_tac 1);
wenzelm@1440
    52
  (*level 8*)
wenzelm@1440
    53
  by (stac le_Inf_eq 1);
berghofe@1899
    54
  by (safe_tac (!claset));
wenzelm@1440
    55
  by (stac le_Inf_eq 1);
berghofe@1899
    56
  by (Fast_tac 1);
wenzelm@1440
    57
qed "Inf_UN_eq";
wenzelm@1440
    58
wenzelm@1440
    59
wenzelm@1440
    60
wenzelm@1440
    61
goal thy "Sup (A Un B) = Sup A || Sup B";
wenzelm@1440
    62
  br (Sup_uniq RS mp) 1;
clasohm@1465
    63
  by (rewtac is_Sup_def);
berghofe@1899
    64
  by (safe_tac (!claset));
wenzelm@1440
    65
wenzelm@1440
    66
  br (conjI RS (le_trans RS mp)) 1;
wenzelm@1440
    67
  be Sup_ub 1;
wenzelm@1440
    68
  br sup_ub1 1;
wenzelm@1440
    69
wenzelm@1440
    70
  br (conjI RS (le_trans RS mp)) 1;
wenzelm@1440
    71
  be Sup_ub 1;
wenzelm@1440
    72
  br sup_ub2 1;
wenzelm@1440
    73
wenzelm@1440
    74
  by (stac ge_sup_eq 1);
wenzelm@1440
    75
  br conjI 1;
wenzelm@1440
    76
  br Sup_lb_ubs 1;
berghofe@1899
    77
  by (Fast_tac 1);
wenzelm@1440
    78
  br Sup_lb_ubs 1;
berghofe@1899
    79
  by (Fast_tac 1);
wenzelm@1440
    80
qed "Sup_Un_eq";
wenzelm@1440
    81
wenzelm@1440
    82
goal thy "Sup (UN i:A. B i) = Sup {Sup (B i) |i. i:A}";
wenzelm@1440
    83
  br (Sup_uniq RS mp) 1;
clasohm@1465
    84
  by (rewtac is_Sup_def);
berghofe@1899
    85
  by (safe_tac (!claset));
wenzelm@1440
    86
  (*level 3*)
wenzelm@1440
    87
  br (conjI RS (le_trans RS mp)) 1;
wenzelm@1440
    88
  be Sup_ub 1;
wenzelm@1440
    89
  br (sing_Sup_eq RS subst) 1;
wenzelm@1440
    90
  back();
wenzelm@1440
    91
  br (Sup_subset_mon RS mp) 1;
berghofe@1899
    92
  by (Fast_tac 1);
wenzelm@1440
    93
  (*level 8*)
wenzelm@1440
    94
  by (stac ge_Sup_eq 1);
berghofe@1899
    95
  by (safe_tac (!claset));
wenzelm@1440
    96
  by (stac ge_Sup_eq 1);
berghofe@1899
    97
  by (Fast_tac 1);
wenzelm@1440
    98
qed "Sup_UN_eq";