Questions tagged [small-step-semantics]
10 questions
43
votes
2 answers
Difference Between Small and Big-step Operational Semantics
What's the fundamental difference(s) between small and big-step operational semantics?
I'm having a hard time grasping what it is and the motivation for having the two.
Simon Morgan
- 533
- 1
- 4
- 7
8
votes
2 answers
TAPL: Explanation and example(s) for satisfied
This question arises from my reading of "Types and Programming Languages" (WorldCat) by Benjamin C. Pierce.
On page 36 is the definition for satisfied
A rule is satisfied by a relation if, for each instance of the rule,
either the conclusion is…
Guy Coder
- 5,181
- 2
- 30
- 65
4
votes
2 answers
How does one deduce small step operational semantics?
This question arises from my reading of "Types and Programming Languages" (WoldCat) by Benjamin C. Pierce.
For the small step operational semantic evaluation rules for the arithmetic expressions (NB) in Figure 3-2 on page 41, there is the rule…
Guy Coder
- 5,181
- 2
- 30
- 65
3
votes
1 answer
What is the significance of ⟨B, s⟩ -> ⟨B', s'⟩ as the initial rule in this question about small-step semantics?
Revising for an exam and I'm trying to get to grips with operational semantics. Here's the exam question that prompted me posting this:
Exam Question:
We add to the language $\mathsf{SIMP}$ two new commands, with abstract syntax defined by the…
notywq
- 31
- 2
2
votes
1 answer
How to express taking the next bit of an infinite string in small-step semantics?
I have to write a rule as part of a small step operational semantics (https://en.wikipedia.org/wiki/Operational_semantics).
Whenever this rule is applied, the next bit belonging to an infinite
bit string must be taken.
Therefore, in the premise of…
Enrico
- 21
- 2
2
votes
1 answer
Small-step semantics: for-loops
I'm trying to construct the small-step semantic rules involving the for-loops, but I can't find anything about it in the literature (only about while-loops).
I was wondering if anyone could help me out with this? This is a first attempt, where $s$…
ABC
- 123
- 3
2
votes
1 answer
From big-step to small-step semantics
Ciobaca: From Small-Step Semantics to Big-Step Semantics, Automatically
describes how to go from small-step to big-step semantics.
I need to do the other way around: from big-step to small-step. Is there literature for this? What should I be careful…
Gergely
- 389
- 1
- 9
2
votes
1 answer
How does one prove that Big Step semantics and Small Step semantics are equivalent for IMP?
I know there is this paper but I wanted to do a special case proof for just IMP for fun. So the theorem is:
$$ \langle P , \sigma \rangle \to_{Big} \langle \{ \} , \sigma' \rangle \iff \exists N \in \mathbf N: \langle P , \sigma \rangle…
Charlie Parker
- 3,130
- 22
- 39
1
vote
0 answers
What is the solution to exercise 3.5.18?
Exercise 3.5.18 is the following
Suppose we want to change th evaluation strategy of our language so that the then and else branches of an if expression are evaluated (in that order) before teh guard is evaluated. Show how the evaluation rules need…
Enlico
- 127
- 9
1
vote
0 answers
Small step vs big step semantics for static analysis?
To be an honest question poster I do not yet fully grasp the difference between small step and big step semantics. There was a good discussion here
My question is if I were to do static analysis on a file to determine if it is malware, what would…
John Smith
- 11
- 1