-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prove that FST is less expressive than OC
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 deletions.
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
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
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,29 @@ | ||
open import Framework.Definitions using (𝔽; 𝔸) | ||
|
||
module Translation.Lang.OC-to-FST (F : 𝔽) where | ||
|
||
open import Size using (∞) | ||
open import Data.Bool using (true) | ||
open import Data.List using ([]; _∷_) | ||
open import Data.Nat using (zero; _≟_; ℕ) | ||
open import Data.Product using (_,_) | ||
import Relation.Binary.PropositionalEquality as Eq | ||
|
||
open import Framework.Variants using (Rose) | ||
open import Lang.All | ||
open OC using (WFOC; Root; _-<_>-; WFOCL) | ||
open FST using (FSTL; cannotEncodeNeighbors) | ||
|
||
V = Rose ∞ | ||
open import Framework.Relation.Expressiveness V using (_⋡_) | ||
|
||
A : 𝔸 | ||
A = ℕ , _≟_ | ||
|
||
neighbors : WFOC F ∞ A | ||
neighbors = Root zero (zero -< [] >- ∷ zero -< [] >- ∷ []) | ||
|
||
FSTL⋡WFOCL : FSTL F ⋡ WFOCL F | ||
FSTL⋡WFOCL FSTL≽WFOCL with FSTL≽WFOCL neighbors | ||
... | e , e⊆neighbors , neighbors⊆e with e⊆neighbors (λ a → true) | ||
... | conf , e≡neighbors = cannotEncodeNeighbors F zero zero (e , conf , Eq.sym e≡neighbors) |
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