`generate-term` from reduction relation bypasses `#:domain`.
Open
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 112
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Concider:
#lang racket
(require redex/reduction-semantics)
(define-language L)
(define r
(reduction-relation
L
#:domain 1
(--> any any)))
(generate-term #:source r 5)
This will generate things like, say strings, which are not 1. I would expect this generation to, at least, fail when it attempts to generate a term outside of the domain of the relation.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the generate-term entry point and the reduction-relation created by the reproduction. Run the example to observe terms outside #:domain 1; done means generation detects the domain violation and fails instead of returning those terms.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100