USE BOOK TYPES AND PROGRAMMING LANGUAGES AS REFERENCE
What are the roles of pickfreshname operation and the condition
ctxlength ctx = n of the printing routine printtm?
7.2 Shifting and Substitution 85 = The printing routine itself looks like this: let rec printtm ctx t = match t with TmAbs (fi,x,t1) let (ctx',x'). pickfreshname ctx x in pr "(lambda "; pr x'; pr "."; printtm ctx' t1; pr ")" | TmApp(fi, ti, t2) pr "("; printtm ctx tl; pr ; printtm ctx t2; pr ")" | TmVar(fi,x,n) if ctxlength ctx = n then pr (index2name fi ctx x) else pr "[bad index]" 1
USE BOOK TYPES AND PROGRAMMING LANGUAGES AS REFERENCE What are the roles of pickfreshname operation and the condition ct
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
USE BOOK TYPES AND PROGRAMMING LANGUAGES AS REFERENCE What are the roles of pickfreshname operation and the condition ct
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!