-
Notifications
You must be signed in to change notification settings - Fork 6
Abstracts.2021.NbE
Nacho edited this page Nov 15, 2021
·
16 revisions
by Carlos Tomé Cortiñas
In this talk I will present the technique of Normalization by Evaluation through the somewhat simple example of normalization for the theory of free monoids. Below you can find a detailed outline of the talk.
-
Examples of normal forms:
- Multiplication on natural numbers with variables:
x2^2 * (x3^1 * (x58^4 * (x102^1 * 57)))
- Disjunctive normal forms of classical propositional
logic:
(A ∧ B) ∨ ((¬A ∧ B) ∨ (¬A ∧ ¬B))
(full) or¬A ∨ B
(prime) - Natural deduction for noncommutative multiplicative conjunction
⊗
of linear propositional logic - Simply-typed lambda calculus/Natural deduction for intuitionistic propositional logic
- Multiplication on natural numbers with variables:
-
The unityped theory of free monoids, i.e. the unityped theory of monoids with constants (but no additional equations)
-
Normal forms: either unit or a right-associated nonempty list of constants; alternatively: left-associative, or nonempty lists of constants ending with unit
-
Normalization by evaluation (Haskell)
- Observation: normal forms support/are closed under the monoid operations
- Interpretation of the syntax/language of monoids in an arbitrary monoid
- Putting things together: a normalization function for formal monoid expressions
- Haskell code
NbE for:
- Free monoids using difference lists
- Free commutative monoids
- Free monoids with variables
- Simple arithmetic expressions with variables
- Nachiappan Valliappan, Reduction-based Normalization
- Joachim Lambek. Deductive Systems and Categories I. Syntactic Calculus and Residuated Categories. Math. Syst. Theory 2(4), pp. 287-318, 1968.
- Michael Hedberg. Normalising the Associative Law: An Experiment with Martin-Löf's Type Theory. Formal Aspects Comput. 3(3), pp. 218-252, 1991.
- Ilya Beylin, Peter Dybjer. Extracting a Proof of Coherence for Monoidal Categories from a Proof of Normalization for Monoids. TYPES 1995, pp. 47-61, 1995.
- Thorsten Altenkirch, Martin Hofmann, Thomas Streicher. Categorical Reconstruction of a Reduction Free Normalization Proof. Category Theory and Computer Science 1995, pp. 182-199, 1995.
- Peter Dybjer. Normalization by Evaluation. Notes: Slides for a course at Midlands Graduate School in the Foundations of Computing Science (MGS) 2009, Leicester, UK.