-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/- ### 7.3.1 Equivalence with Big-Step Semantics | ||
BigStep 意味論を、SmallStep に翻訳できる。 | ||
-/ | ||
import ConcreteSemantics.BigStep | ||
import ConcreteSemantics.SmallStep | ||
import Mathlib.Tactic | ||
|
||
open Relation | ||
|
||
/-- BigStep 意味論の式を、SmallStep star に翻訳することができる。 -/ | ||
theorem big_step_to_small_step_star {S : Stmt} {s t : State} (h : (S, s) ==> t) : (S, s) ⇒* (skip, t) := by | ||
induction h | ||
case skip => | ||
rfl | ||
case assign x a s₁ => | ||
calc | ||
_ ⇒ (_, _) := by small_step | ||
_ ⇒* (_, _) := by rfl | ||
case seq S₁ T s₁ t₁ u₁ hS₁ hT hS_ih hT_ih => | ||
calc | ||
_ ⇒* (skip;; T, t₁) := ?step1 | ||
_ ⇒* (_, _) := by sorry | ||
_ ⇒* (_, _) := by small_step | ||
|
||
case step1 => | ||
set ct := (skip, t₁) with hcs | ||
induction hS_ih | ||
case refl => rfl | ||
case tail _ _ _ => | ||
|
||
sorry | ||
-- apply SmallStep.seq_step (hS := hS₁) | ||
sorry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters