Skip to content

Commit

Permalink
Er, I think this was the wrong way round
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsay-t committed Sep 25, 2024
1 parent 43e2545 commit 9ad6f51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plutus-metatheory/src/VerifiedCompilation/UCSE.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ back in would yield the original expression.

```
data UCSE : Relation where
cse : {X : Set} {x : Maybe X ⊢} {x' e : X ⊢}
→ Translation UCSE (x [ e ]) x'
→ UCSE ((ƛ x) · e) x'
cse : {X : Set} {x' : Maybe X ⊢} {x e : X ⊢}
→ Translation UCSE x (x' [ e ])
→ UCSE x ((ƛ x') · e)
UntypedCSE : {X : Set} {{_ : DecEq X}} → (ast : X ⊢) → (ast' : X ⊢) → Set₁
UntypedCSE = Translation UCSE
Expand All @@ -53,9 +53,9 @@ isUntypedCSE? : {X : Set} {{_ : DecEq X}} → Binary.Decidable (Translation UCSE
{-# TERMINATING #-}
isUCSE? : {X : Set} {{_ : DecEq X}} → Binary.Decidable (UCSE {X})
isUCSE? ast ast' with (isApp? (isLambda? isTerm?) isTerm?) ast
isUCSE? ast ast' with (isApp? (isLambda? isTerm?) isTerm?) ast'
... | no ¬match = no λ { (cse x) → ¬match (isapp (islambda (isterm _)) (isterm _)) }
... | yes (isapp (islambda (isterm x)) (isterm e)) with isUntypedCSE? (x [ e ]) ast'
... | yes (isapp (islambda (isterm x')) (isterm e)) with isUntypedCSE? ast (x' [ e ])
... | no ¬p = no λ { (cse x) → ¬p x }
... | yes p = yes (cse p)
Expand Down

0 comments on commit 9ad6f51

Please sign in to comment.