Skip to content

Commit

Permalink
Improve prompts a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Sep 25, 2024
1 parent 8348140 commit a98556a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Now we are finished with the specifications. Let's move onto the loops.
Given the following program, for each function, determine if it has loops. If it does, try to determine what the loop does in detail.
Given the following program, for each function, determine if it has loops. If it does, try to determine what the loop does in detail. Go through all your thinking and reasoning process step by step.
```dafny
function sum(s: seq<int>) : int {
if |s| == 0 then 0 else s[0] + sum(s[1..])
Expand Down
2 changes: 1 addition & 1 deletion prompts/humaneval-dafny-cot/steps/002/question.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Given the following program, for each function, determine if it has loops. If it does, try to determine what the loop does in detail.
Given the following program, for each function, determine if it has loops. If it does, try to determine what the loop does in detail. Go through all your thinking and reasoning process step by step.
```dafny
{program}
```
2 changes: 1 addition & 1 deletion prompts/humaneval-dafny-cot/steps/003/001/question.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
As we've already analyzed the specifications and the loops, it's time to try to analyze what invariants and patterns hold during the execution of the program. Go over the found loops in the following program in the code and try to find out what invariants and patterns they hold.
As we've already analyzed the specifications and the loops, it's time to try to analyze what invariants and patterns hold during the execution of the program. Go over the found loops in the following program in the code and try to find out what invariants and patterns they hold. Go through all your thinking and reasoning process step by step.
```dafny
function sum(s: seq<int>) : int {
if |s| == 0 then 0 else s[0] + sum(s[1..])
Expand Down
2 changes: 1 addition & 1 deletion prompts/humaneval-dafny-cot/steps/003/question.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
As we've already analyzed the specifications and the loops, it's time to try to analyze what invariants and patterns hold during the execution of the program. Go over the found loops in the following program in the code and try to find out what invariants and patterns they hold.
As we've already analyzed the specifications and the loops, it's time to try to analyze what invariants and patterns hold during the execution of the program. Go over the found loops in the following program in the code and try to find out what invariants and patterns they hold. Go through all your thinking and reasoning process step by step.
```dafny
{program}
```

0 comments on commit a98556a

Please sign in to comment.