<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi, all:</div><div><br class="webkit-block-placeholder"></div><div> It seems the following does not work</div><div><br class="webkit-block-placeholder"></div><div>===================================================================================</div><div><div>(define-metafunction refT</div><div> basic-grammar</div><div> [(((T_4 x_4) ... (ptype_1 x_1) (T_2 x_2) ...) (x_1 x_3 ...))</div><div> (CH (((ptype_1 &) x_1 boxed_1) (refT (((T_4 x_4) ... (ptype_1 x_1) (T_2 x_2) ...) (x_3 ...)))))</div><div> (side-condition (term (fresh boxed_1)))]</div><div> [(((T_4 x_4) ... (T_1 x_1) (T_2 x_2) ...) (x_1 x_3 ...))</div><div> (CH ((T_1 x_1 x_1) (refT ((T_4 x_4) ... (T_1 x_1) ((T_2 x_2) ...) (x_3 ...)))))</div><div> ]</div><div> [(((T_1 x_1) ...) ()) ()])</div><div><br class="webkit-block-placeholder"></div><div>===================================================================================</div><div><br class="webkit-block-placeholder"></div><div>I just want to generate the fresh variables like boxed_1 ,boxed_2 ..... in the meta-function not in the reduction rules?</div><div><br class="webkit-block-placeholder"></div><div>How can I ? or the redex version is too old?</div><div><br class="webkit-block-placeholder"></div><div>thanks</div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: STHeiti; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Gang</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br></div><div><br class="webkit-block-placeholder"></div></div></span><br class="Apple-interchange-newline"> </div><br></body></html>