racket / racket/redex

`render-reduction-relation` can't render all rules in an extended reduction relation

Open
#160 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
112
Forks
42
PR merge metrics
No merged PRs in 30d

Description

The program

#lang racket
(require redex/reduction-semantics redex/pict)
(define-language L)
(define R1
  (reduction-relation
   L
   (--> number number numbers)))
(define R2
  (extend-reduction-relation
   R1 L
   (--> string string strings)))
(parameterize ([render-reduction-relation-rules '(numbers strings)])
  (render-reduction-relation R2))

Errors with render-reduction-relation: no rule found for label: 'numbers. I would expect to be able to render rules from the relation being extended.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the render-reduction-relation entry point and trace how labels are collected for an extended relation. Reproduce the supplied Racket example, then verify that rendering with '(numbers strings) no longer reports the inherited numbers label as missing.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.