42151
|
1 |
(* Title: HOL/HOLCF/IOA/meta_theory/Pred.thy
|
40945
|
2 |
Author: Olaf Müller
|
17233
|
3 |
*)
|
4559
|
4 |
|
62002
|
5 |
section \<open>Logical Connectives lifted to predicates\<close>
|
4559
|
6 |
|
17233
|
7 |
theory Pred
|
|
8 |
imports Main
|
|
9 |
begin
|
|
10 |
|
36452
|
11 |
default_sort type
|
4559
|
12 |
|
41476
|
13 |
type_synonym
|
17233
|
14 |
'a predicate = "'a => bool"
|
4559
|
15 |
|
|
16 |
consts
|
|
17 |
|
62000
|
18 |
satisfies ::"'a => 'a predicate => bool" ("_ \<Turnstile> _" [100,9] 8)
|
17233
|
19 |
valid ::"'a predicate => bool" (* ("|-") *)
|
4559
|
20 |
|
62000
|
21 |
NOT ::"'a predicate => 'a predicate" ("\<^bold>\<not> _" [40] 40)
|
|
22 |
AND ::"'a predicate => 'a predicate => 'a predicate" (infixr "\<^bold>\<and>" 35)
|
|
23 |
OR ::"'a predicate => 'a predicate => 'a predicate" (infixr "\<^bold>\<or>" 30)
|
|
24 |
IMPLIES ::"'a predicate => 'a predicate => 'a predicate" (infixr "\<^bold>\<longrightarrow>" 25)
|
4559
|
25 |
|
|
26 |
|
|
27 |
defs
|
|
28 |
|
17233
|
29 |
satisfies_def:
|
62000
|
30 |
"s \<Turnstile> P == P s"
|
4559
|
31 |
|
17233
|
32 |
valid_def:
|
62000
|
33 |
"valid P == (! s. (s \<Turnstile> P))"
|
4559
|
34 |
|
17233
|
35 |
NOT_def:
|
4559
|
36 |
"NOT P s == ~ (P s)"
|
|
37 |
|
17233
|
38 |
AND_def:
|
62000
|
39 |
"(P \<^bold>\<and> Q) s == (P s) & (Q s)"
|
4559
|
40 |
|
17233
|
41 |
OR_def:
|
62000
|
42 |
"(P \<^bold>\<or> Q) s == (P s) | (Q s)"
|
4559
|
43 |
|
17233
|
44 |
IMPLIES_def:
|
62000
|
45 |
"(P \<^bold>\<longrightarrow> Q) s == (P s) --> (Q s)"
|
4559
|
46 |
|
7661
|
47 |
end
|