Debian Codegraph @

examples/tait/diplomarbeit_schlenker/auxLem1_SHORT.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 ; (pload "./trivial.scm")
17 ; (pload "./auxGlobal_SHORT.scm")
18 ;
19 ; NOTICE: Uncomment modules only when file is run on its own
20 ; ***********************************************************
21
22
23 ; ==================================
24 ; Section: Auxiliaries for Lemma 1
25 ; ==================================
26 ; contains all auxiliaries for Lemma 1
27
28 ; Lemma: "LemmaOneAux1"
29 ; ---------------------
30 (add-global-assumption "LemmaOneAux1"
31 (pf "all rhos,rho,sig,r,k.
32 Fr rhos(rho to sig)r k ->
33 TypJ(rhos:+:(ExtCtx rhos k rho))(Var k)rho"))
34
35 ; Lemma: "LemmaOneAux2"
36 ; ---------------------
37 (add-global-assumption "LemmaOneAux2"
38 (pf "all rhos,rho,sig,r,k.
39 Fr rhos(rho to sig)r k ->
40 TypJ(rhos:+:(ExtCtx rhos k rho))(r(Var k))sig"))
41
42 ; Lemma: "LemmaOneAux3"
43 ; ---------------------
44 (add-global-assumption "LemmaOneAux3"
45 (pf "all rhos,rho,sig,r,k.
46 Fr rhos(rho to sig)r k ->
47 Fr(rhos:+:(ExtCtx rhos k rho))sig(r(Var k))(k+1)"))
48
49 ; Lemma: "LemmaOneAux5"
50 ; ---------------------
51 (add-global-assumption "LemmaOneAux5"
52 (pf "all rhos,sigs,rho,sig,r,s,k.
53 Fr(rhos:+:sigs)sig(r s)k -> TypJ(rhos:+:sigs)s rho ->
54 Fr(rhos:+:sigs)rho s k"))
55
56
57 ; Lemma: "LemmaOneAux7"
58 ; ---------------------
59 (add-global-assumption "LemmaOneAux7"
60 (pf "all rhos,sigs,rho,sig,r,s,k.
61 Fr(rhos:+:sigs)sig(r s)k ->
62 TypJ rhos r(rho to sig) ->
63 Fr rhos(rho to sig)r k"))
64
65 ; Lemma: "LemmaOneAux8"
66 ; ---------------------
67 ; an auxiliary for Lemma One, which is used several times
68
69 (add-global-assumption "LemmaOneAux8"
70 (pf "all rhos, sigs, rho, s.
71 ex b^ (SCr (rhos:+:sigs) rho b^ s) ->
72 TypJ (rhos:+:sigs) s rho"))