redex icon indicating copy to clipboard operation
redex copied to clipboard

`define-extended-language`+ overriding a `variable-not-otherwise-mentioned` with a `variable-not-in` fails.

Open florence opened this issue 6 years ago • 0 comments

The program

#lang racket
(require redex/reduction-semantics)

(define-language L
  (v ::= GO WAIT x)
  (x ::= variable-not-otherwise-mentioned))

(define-extended-language L+ L
  (x ::= (variable-not-in WAIT)))

(redex-match? L+ x (term GO))

produces #f, despite x in L+ being specified to only exclude WAIT. It produces #t if the variable-not-in is replace with variable.

florence avatar Oct 21 '19 15:10 florence