Closed laelath closed 3 years ago
Here's a minimized example. The problem has to do with the ellipses that appears between the premises. That ellipsis is handled specially compared to the others.
#lang racket
(require redex/reduction-semantics)
(define-language L)
(define-judgment-form L
#:contract (⊢ any)
#:mode (⊢ I)
[-------
(⊢ any)])
(define-judgment-form L
#:contract (⊢-mod any)
[(⊢ (2 ...)) ...
(⊢ 1)
----------------
(⊢-mod 1)])
The following program errors with
.../racket/pkgs/redex-lib/redex/private/modeless-jf.rkt:94:71: define-judgment-form: found any under 2 ellipses in one place and 1 ellipsis in another
. I found that adding more premises with ellipses works fine, but this error appears as soon as there are both premise judgments with and without ellipses.I found a very hacky way to get around this.