module LetInline where
open import Data.List.Base
open import Data.Product
open import environment
open import Language
open import Generic.Semantics
open import Generic.Semantics.Syntactic
open import Function
open Internal
LetInline : Sem typed LetFree LetFree
Sem.th^π₯ LetInline = th^Tm
Sem.var LetInline = id
Sem.alg LetInline = Ξ» t β case letView t of Ξ» where
(Let r e b) β extract b (Ξ΅ β e)
(Β¬Let p) β Sem.alg Substitution p
let-inline : β {Ο} β Typed Ο [] β LetFree Ο []
let-inline = Sem.closed LetInline