Questions tagged [rosette]

Rosette adds a collection of solver-aided facilities to Racket. These facilities enable programmers to conveniently access a constraint solver that can answer interesting questions about program behaviors.

Rosette adds a collection of solver-aided facilities to . These facilities enable programmers to conveniently access a constraint solver that can answer interesting questions about program behaviors.

7 questions
7
votes
1 answer

When should I use Rosette's shallow vs. deep embedding for program synthesis?

Some tutorials for Rosette introduce program synthesis using shallow embedding and others using deep embedding. After reading Torlak et Bodik's "Growing Solver-Aided Languages with ROSETTE", it seems the shallow embedding is good for fast…
Mike Chung
  • 140
  • 7
3
votes
0 answers

How to synthesize programs with multiple types in Rosette?

I am looking to write a DSL in Rosette with the goal of synthesizing a function. The DSL is based off a very small subset of Haskell, and is strongly typed. I therefore want to make sure that anything that Rosette generates is well-typed. One way…
lightning
  • 389
  • 1
  • 9
2
votes
1 answer

What are the ways to identify unlifted Racket constructs while using the full Rosette language?

One of the most common bugs I make while implementing a program synthesizer with Rosette is using unlifted Racket constructs in an unsafe way that makes synthesizer to output (unsat). In fact, as a beginner Rosette programmer, it is difficult to…
Mike Chung
  • 140
  • 7
1
vote
2 answers

Understanding `define-symbolic`

I'm reading the Rosette Essentials. The guide explains the use of define-symbolic: The define-symbolic form binds the variable to the same (unique) [symbolic] constant every time it is evaluated. (define (static) (define-symbolic x boolean?) ;…
chansey
  • 1,266
  • 9
  • 20
1
vote
0 answers

I have a problem with filter stopword operator in rapidminer

I am working on a sentiment analysis project in Persian language and I use rapidminer to this purpose.. I installed the rosette extension for some text preproccesing purpose in this language such as tokenization. I have a problem with filter stop…
atefe
  • 11
  • 3
0
votes
1 answer

OR/AND operation on lists in Racket

I want to understand what and and or represent in Racket when used with lists. When I do something like this - > (or `(1 2) `(1 3)) '(1 2) What is the result representing? I thought when we use or with two lists we would get a union of the lists.…
Saikumar
  • 3
  • 3
0
votes
1 answer

unable to run Rosette Language in Dr. Racket

I followed the directions on the Rosette website to download rosette (https://docs.racket-lang.org/rosette-guide/ch_getting-started.html). It seems that I can run this program and get an output error free. #lang rosette/safe ; Compute the…