You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lemmasubst_type_var_name:"atom c \<sharp> \<sigma> \<Longrightarrow> subst_type \<tau> a \<sigma> = subst_type \<tau> c ((a \<leftrightarrow> c) \<bullet> \<sigma>)"
lemmasubst_term_type_var_name:"atom c \<sharp> e \<Longrightarrow> subst_term_type \<tau> a e = subst_term_type \<tau> c ((a \<leftrightarrow> c) \<bullet> e)"
shows"[[atom y]]lst. f (x, e, e2) = [[atom y']]lst. f (x', e', e2')"
54
+
proof-
55
+
obtainc::"'a"where"atom c \<sharp> (y, y', e, e', x, x', e2, e2', f (x, e, e2), f (x', e', e2'))"usingobtain_freshbyblast
56
+
thenhavec:"atom c \<sharp> f (x, e, e2)""atom c \<sharp> (x, e)""atom c \<sharp> f (x', e', e2')""atom c \<sharp> (x', e')""atom c \<sharp> (y, e2, y', e2')"usingfresh_Pairbyauto
57
+
58
+
have1:"[[atom y]]lst. f (x, e, e2) = [[atom c]]lst. f (x, e, (y \<leftrightarrow> c) \<bullet> e2)"by(ruleAbs_lst_rename_deep[OFc(1)c(2)fresh(1)eqvt_at(1)])
59
+
have2:"[[atom y']]lst. f (x', e', e2') = [[atom c]]lst. f (x', e', (y' \<leftrightarrow> c) \<bullet> e2')"by(ruleAbs_lst_rename_deep[OFc(3)c(4)fresh(2)eqvt_at(2)])
60
+
have3:"(y \<leftrightarrow> c) \<bullet> e2 = (y' \<leftrightarrow> c) \<bullet> e2'"by(ruleAbs_lst_rename_both[OFc(5)equal(1)])
|T_LetI:"\<lbrakk> atom x \<sharp> (\<Gamma>, e1) ; \<Gamma> \<turnstile>\<^sub>t\<^sub>y \<tau>1 ; BVar x \<tau>1 # \<Gamma> \<turnstile> e2 : \<tau>2 ; \<Gamma> \<turnstile> e1 : \<tau>1 \<rbrakk> \<Longrightarrow> \<Gamma> \<turnstile> Let x \<tau>1 e1 e2 : \<tau>2"
28
+
29
+
|T_AppTI:"\<lbrakk> \<Gamma> \<turnstile> e : (\<forall>a . \<sigma>) ; \<Gamma> \<turnstile>\<^sub>t\<^sub>y \<tau> \<rbrakk> \<Longrightarrow> \<Gamma> \<turnstile> TyApp e \<tau> : subst_type \<tau> a \<sigma>"
30
+
31
+
|T_AbsTI:"\<lbrakk> BTyVar a # \<Gamma> \<turnstile> e : \<sigma> ; atom a \<sharp> \<Gamma> \<rbrakk> \<Longrightarrow> \<Gamma> \<turnstile> (\<Lambda> a . e) : (\<forall> a . \<sigma>)"
0 commit comments