Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ data CertifiedOptStage
| ForceCaseDelay
| Inline
| ApplyToCase
| CaseReduce
deriving stock (Show, Generic)
deriving anyclass (NFData)

Expand All @@ -41,7 +42,6 @@ at https://github.com/IntersectMBO/plutus/issues. -}
data UncertifiedOptStage
= CaseOfCase
| LetFloatOut
| CaseReduce
| CSE
deriving stock (Show, Generic)
deriving anyclass (NFData)
Expand All @@ -58,7 +58,7 @@ pattern ForceCaseDelayStage :: OptStage
pattern ForceCaseDelayStage = Right ForceCaseDelay

pattern CaseReduceStage :: OptStage
pattern CaseReduceStage = Left CaseReduce
pattern CaseReduceStage = Right CaseReduce

pattern InlineStage :: OptStage
pattern InlineStage = Right Inline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NoHints
-- Certifier hints #5 (Left CaseOfCase) --
NoHints

-- Certifier hints #6 (Left CaseReduce) --
-- Certifier hints #6 (Right CaseReduce) --
NoHints

-- Certifier hints #7 (Right Inline) --
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
For top level release notes, leave all the headers commented out.
-->

<!--
### Removed

- A bullet item for the Removed category.

-->
### Added

- Certifier for the case-reduce pass

<!--
### Changed

- A bullet item for the Changed category.

-->
<!--
### Deprecated

- A bullet item for the Deprecated category.

-->
<!--
### Fixed

- A bullet item for the Fixed category.

-->
<!--
### Security

- A bullet item for the Security category.

-->
1 change: 1 addition & 0 deletions plutus-metatheory/plutus-metatheory.agda-lib
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: plutus-metatheory
depend: standard-library-2.3
include: src
flags: --polarity
6 changes: 6 additions & 0 deletions plutus-metatheory/plutus-metatheory.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,13 @@ library
MAlonzo.Code.Untyped.Equality
MAlonzo.Code.Untyped.Purity
MAlonzo.Code.Untyped.Reduction
MAlonzo.Code.Untyped.Relation.Binary
MAlonzo.Code.Untyped.Relation.Binary.Core
MAlonzo.Code.Untyped.Relation.Binary.Modular
MAlonzo.Code.Untyped.Relation.Binary.Properties
MAlonzo.Code.Untyped.Relation.Binary.Structures
MAlonzo.Code.Untyped.RenamingSubstitution
MAlonzo.Code.Untyped.Transform
MAlonzo.Code.Utils
MAlonzo.Code.Utils.Decidable
MAlonzo.Code.Utils.List
Expand Down
Loading
Loading