Debian Codegraph @

examples/tait/diplomarbeit_schlenker/defsAxioms.scm

raw
1 ; ***********************************************************
2 ; ; Adapt path if necessary:
3 ; (define path "~/minlog/examples/tait/diplomarbeit_schlenker/")
4
5 ; ; Defines the function "pload" to load files
6 ; ; from the path defined above
7 ; (define pload (lambda (x) (load (string-append path x))))
8
9 ; ; Used Modules:
10 ; (pload "./initiate.scm")
11 ; (pload "./defsLamCalc.scm")
12 ; (pload "./defsSubst.scm")
13 ; (pload "./omega.scm")
14 ; (pload "./defsNT.scm")
15 ; (pload "./defsAxiomsSpecial.scm")
16 ;
17 ; NOTICE: Uncomment modules only when file is run on its own
18 ; ***********************************************************
19
20 ; =================
21 ; Section: Axioms
22 ; =================
23 ; contains the axioms "Ax1" to "Ax10" and "AxNStrict"
24
25 ; Definition: "Ax1"
26 ; -----------------
27 (add-global-assumption
28 "Ax1" (pf "all rhos,rho,sig,r,k,s.
29 Fr rhos(rho to sig)r k ->
30 N(rhos :+: ExtCtx rhos k rho)sig(r(Var k))s ->
31 N rhos(rho to sig)r (ABS k rho s)"))
32
33 ; Definition: "Ax2"
34 ; -----------------
35 (add-global-assumption
36 "Ax2" (pf "all rhos,r,s.A rhos Iota r s -> N rhos Iota r s"))
37
38 ; Definition: "Ax3"
39 ; -----------------
40 (add-global-assumption
41 "Ax3" (pf "all rhos,rho,k.
42 TypJ rhos(Var k)rho -> A rhos rho(Var k)(Var k)"))
43
44 ; Definition: "Ax4"
45 ; -----------------
46 (add-global-assumption
47 "Ax4" (pf "all rhos,rho,sig,r,s,r1,s1.
48 A rhos(rho to sig)r s -> TypJ rhos r1 rho ->
49 N rhos rho r1 s1 -> A rhos sig(r r1)(s s1)"))
50
51 ; Definition: "Ax5"
52 ; -----------------
53 (add-global-assumption
54 "Ax5" (pf "all rhos,rho,r,s,t^.
55 Head r s -> N rhos rho s t^ ->
56 TypJ rhos r rho -> N rhos rho r t^"))
57
58 ; Definition: "Ax6"
59 ; -----------------
60 (add-global-assumption
61 "Ax6" (pf "all rho,r,s,theta.
62 Head((Sub(Abs rho r)theta)s)(Sub r(Dot s theta))"))
63
64 ; Definition: "Ax7"
65 ; -----------------
66 (add-global-assumption
67 "Ax7" (pf "all r,s,t.Head r s -> Head(r t)(s t)"))
68
69 ; Definition: "Ax8"
70 ; -----------------
71 (add-global-assumption
72 "Ax8" (pf "all rhos,rho,r,r1,k.
73 Head r r1 -> Fr rhos rho r k -> Fr rhos rho r1 k"))
74
75 ; Definition: "Ax9"
76 ; -----------------
77 (add-global-assumption "Ax9"
78 (pf "all rhos, sigs, rho, r, s^.
79 N rhos rho r s^ -> N (rhos:+:sigs) rho r s^"))
80
81 ; Definition: "Ax10"
82 ; ------------------
83 (add-global-assumption
84 "Ax10" (pf "all rhos,sigs,rho,r,s.
85 A rhos rho r s -> A(rhos:+:sigs)rho r s"))
86
87
88 ; Subsection: AxNStrict
89 ; =====================
90
91 ; Definition: "AxNStrict1", "AxNStrict2"
92 ; --------------------------------------
93 (add-global-assumption
94 "AxNStrict1" (pf "all rhos,rho,r^,s^.N rhos rho r^s^ -> E r^"))
95
96 (add-global-assumption
97 "AxNStrict2" (pf "all rhos,rho,r^,s^.N rhos rho r^s^ -> E s^"))