src/HOL/AxClasses/Lattice/LatMorph.ML
author wenzelm
Mon, 03 Nov 1997 12:24:13 +0100
changeset 4091 771b1f6422a8
parent 1899 0075a8d26a80
child 4153 e534c4c32d54
permissions -rw-r--r--
isatool fixclasimp;
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 LatMorph;
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
(** monotone functions vs. "&&"- / "||"-semi-morphisms **)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     6
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     7
goalw thy [is_mono_def] "is_mono f = (ALL x y. f (x && y) [= f x && f y)";
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 1899
diff changeset
     8
  by (safe_tac (claset()));
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
     9
  (*==> (level 1)*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    10
    by (stac le_inf_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    11
    br conjI 1;
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    12
    by (Step_tac 1);
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    13
    by (Step_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    14
    be mp 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    15
    br inf_lb1 1;
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    16
    by (Step_tac 1);
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    17
    by (Step_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    18
    be mp 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    19
    br inf_lb2 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    20
  (*==> (level 11)*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    21
    br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    22
    br inf_lb2 2;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    23
    by (subgoal_tac "x && y = x" 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    24
    be subst 1;
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    25
    by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    26
    by (stac inf_connect 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    27
    ba 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    28
qed "mono_inf_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    29
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    30
goalw thy [is_mono_def] "is_mono f = (ALL x y. f x || f y [= f (x || y))";
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 1899
diff changeset
    31
  by (safe_tac (claset()));
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    32
  (*==> (level 1)*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    33
    by (stac ge_sup_eq 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    34
    br conjI 1;
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    35
    by (Step_tac 1);
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    36
    by (Step_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    37
    be mp 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    38
    br sup_ub1 1;
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    39
    by (Step_tac 1);
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    40
    by (Step_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    41
    be mp 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    42
    br sup_ub2 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    43
  (*==> (level 11)*)
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    44
    br (conjI RS (le_trans RS mp)) 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    45
    br sup_ub1 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    46
    by (subgoal_tac "x || y = y" 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    47
    be subst 1;
1899
0075a8d26a80 Classical tactics now use default claset.
berghofe
parents: 1440
diff changeset
    48
    by (Fast_tac 1);
1440
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    49
    by (stac sup_connect 1);
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    50
    ba 1;
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    51
qed "mono_sup_eq";
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    52
de6f18da81bb added this stuff;
wenzelm
parents:
diff changeset
    53