Galois Connections. Roland Backhouse 3rd December, 2002

Similar documents
Applications of Regular Algebra to Language Theory Problems. Roland Backhouse February 2001

Language-Processing Problems. Roland Backhouse DIMACS, 8th July, 2003

Regular algebra applied to language problems

Foundations of mathematics. 5. Galois connections

Convex analysis and profit/cost/support functions

Order Theory, Galois Connections and Abstract Interpretation

Mathematical Foundations of Logic and Functional Programming

Fusion on Languages. Roland Backhouse. University of Nottingham

Deterministic Program The While Program

Hoare Calculus and Predicate Transformers

Kleene under a modal demonic star

Discrete Fixpoint Approximation Methods in Program Static Analysis

Axiomatic Semantics. Hoare s Correctness Triplets Dijkstra s Predicate Transformers

1. Supremum and Infimum Remark: In this sections, all the subsets of R are assumed to be nonempty.

An Introduction to the Theory of Lattice

Dynamic Semantics. Dynamic Semantics. Operational Semantics Axiomatic Semantics Denotational Semantic. Operational Semantics

Postulate 2 [Order Axioms] in WRW the usual rules for inequalities

Notes on Ordered Sets

Relations. Relations. Definition. Let A and B be sets.

ON SOME BASIC CONSTRUCTIONS IN CATEGORIES OF QUANTALE-VALUED SUP-LATTICES. 1. Introduction

Sequential product on effect logics

Scalar multiplication and addition of sequences 9

2MA105 Algebraic Structures I

Least Fixpoints Calculationally

Spring 2014 Program Analysis and Verification. Lecture 6: Axiomatic Semantics III. Roman Manevich Ben-Gurion University

C241 Homework Assignment 9

From Sequential Algebra to Kleene Algebra: Interval Modalities and Duration Calculus. Peter Höfner. Report Juli 2005

Principle of Mathematical Induction

Algebraic General Topology. Volume 1. Victor Porton. address: URL:

Foundations of the PF relational calculus

Stone and Heyting duality for classical and intuitionistic propositional logic

REVIEW OF ESSENTIAL MATH 346 TOPICS

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Structure of R. Chapter Algebraic and Order Properties of R

Filters on posets and generalizations

Problem set 5, Real Analysis I, Spring, otherwise. (a) Verify that f is integrable. Solution: Compute since f is even, 1 x (log 1/ x ) 2 dx 1

General Notation. Exercises and Problems

Substructural Logics and Residuated Lattices an Introduction

Introduction to Abstract Interpretation. ECE 584 Sayan Mitra Lecture 18

When does a semiring become a residuated lattice?

Marie Farrell Supervisors: Dr Rosemary Monahan & Dr James Power Principles of Programming Research Group

Lattices and Orders in Isabelle/HOL

The overlap algebra of regular opens

Introduction to Real Analysis

Unifying Theories of Programming

MIT Martin Rinard Laboratory for Computer Science Massachusetts Institute of Technology

Chapter 4. Measurable Functions. 4.1 Measurable Functions

Week Some Warm-up Questions

Real Analysis - Notes and After Notes Fall 2008

THE AUSTRALIAN NATIONAL UNIVERSITY Second Semester COMP2600/COMP6260 (Formal Methods for Software Engineering)

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

COMPLETE LATTICES. James T. Smith San Francisco State University

Algebras of Modal Operators and Partial Correctness

Chapter 1. Sets and Numbers

Math Exam 2, October 14, 2008

MATH 145 LECTURE NOTES. Zhongwei Zhao. My Lecture Notes for MATH Fall

Disjoint Variation, (s)-boundedness and Brooks-Jewett Theorems for Lattice Group-Valued k-triangular Set Functions

Logical Abstract Domains and Interpretations

GENERALIZED DIFFERENCE POSETS AND ORTHOALGEBRAS. 0. Introduction

Predicate Transforms I

Continuity. Chapter 4

Mid-Semester Quiz Second Semester, 2012

Important Properties of R

Abstract Interpretation from a Topological Perspective

Closure operators on sets and algebraic lattices

Chapter 8. Exploring Polynomial Functions. Jennifer Huss

Classical Program Logics: Hoare Logic, Weakest Liberal Preconditions

Universal Algebra for Logics

Spring 2015 Program Analysis and Verification. Lecture 6: Axiomatic Semantics III. Roman Manevich Ben-Gurion University

Sequences. Limits of Sequences. Definition. A real-valued sequence s is any function s : N R.

Tense Operators on Basic Algebras

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

Algebras of modal operators and partial correctness

Math 118B Solutions. Charles Martin. March 6, d i (x i, y i ) + d i (y i, z i ) = d(x, y) + d(y, z). i=1

Math 140: Foundations of Real Analysis. Todd Kemp

Advanced Calculus: MATH 410 Real Numbers Professor David Levermore 5 December 2010

CRITERIA FOR HOMOTOPIC MAPS TO BE SO ALONG MONOTONE HOMOTOPIES

Program verification. 18 October 2017

Dynamical systems on weighted lattices: general theory

A Non-Topological View of Dcpos as Convergence Spaces

Monadic GMV -algebras

Chapter 1. Sets and Mappings

Compendium and Solutions to exercises TMA4225 Foundation of analysis

Logical Connectives and Quantifiers

A LITTLE REAL ANALYSIS AND TOPOLOGY

55 Separable Extensions

Continuity. Chapter 4

arxiv: v1 [math.lo] 30 Aug 2018

Universität Augsburg

Contents Ordered Fields... 2 Ordered sets and fields... 2 Construction of the Reals 1: Dedekind Cuts... 2 Metric Spaces... 3

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction

Math LM (24543) Lectures 01

Making functionality more general

CATEGORIES ENRICHED OVER A QUANTALOID: ISBELL ADJUNCTIONS AND KAN ADJUNCTIONS

Lecture Notes in Advanced Calculus 1 (80315) Raz Kupferman Institute of Mathematics The Hebrew University

Design of Distributed Systems Melinda Tóth, Zoltán Horváth

Weakest Precondition Calculus

1 Stat 605. Homework I. Due Feb. 1, 2011

A Logic for Information Flow Analysis with an Application to Forward Slicing of Simple Imperative Programs

Lecture 5 - Hausdorff and Gromov-Hausdorff Distance

Transcription:

1 Galois Connections Roland Backhouse 3rd December, 2002

Fusion 2 Many problems are expressed in the form evaluate generate where generate generates a (possibly infinite) candidate set of solutions, and evaluate selects a best solution. Examples: shortest path, (x ) L. Solution method is to fuse the generation and evaluation processes, eliminating the need to generate all candidate solutions.

Conditions for Fusion 3 Fusion is made possible when evaluate is an adjoint in a Galois connection, generate is expressed as a fixed point. Solution method typically involves generalising the problem.

Definition 4 Suppose A = (A, ) and B = (B, ) are partially ordered sets and suppose F A B and G B A. Then (F, G) is a Galois connection of A and B iff, for all x B and y A, F.x y x G.y. F is called the lower adjoint. G is the upper adjoint.

Examples Propositional Calculus 5 p q p q p q r q (p r) p q r (p r) (q r) p q r p q r Examples Set Theory S T S T S T U T S U S T U S U T U S T U S T U

Examples Number Theory 6 x y x y x+y z y z x x n x n x y z x z y z x y z x z/y for all y > 0

Examples predicates 7 even.m b (if b then 2 else 1) \ m odd.m b (if b then 1 else 2) \ m x S b S if b then {x} else φ x S b S if b then U else U\{x} S = φ b S if b then φ else U S φ b S if b then U else φ

Examples programming algebra 8 Languages ( factors ) L M N L N/M L M N M L\N Relations ( residuals, weakest pre and post specifications ) R S T R T/S R S T S R\T

Examples program construction 9 Conditional correctness: {p}s{q} means that after successful execution of statement S beginning in a state satisfying the predicate p the resulting state will satisfy predicate q. Weakest liberal precondition {p}s{q} p wlp(s, q) Strongest liberal postcondition {p}s{q} slp(s, p) q Hence slp(s, p) q p wlp(s, q)

Alternative Definitions Cancellation 10 (F, G) is a Galois connection between the posets (A, ) and (B, ) iff the following two conditions hold. (a) For all x B and y A, x G.(F.x) and F.(G.y) y. (b) F and G are both monotonic.

Alternative Definitions Universal Property 11 (F, G) is a Galois connection between the posets (A, ) and (B, ) iff the following conditions hold. (a) G is monotonic. (b) For all x B, x G.(F.x). (c) For all x B and y A, x G.y F.x y. Informally, F.x is the least y such that x G.y.

Suprema and Infima 12 Greatest divisor k\m k\n k\gcd(m, n), and least common multiple m\k n\k lcm(m, n)\k.

Definition of Infimum 13 Suppose (A, ) and (B, ) are partially ordered sets and f A B is a monotonic function. Then an infimum of f is a solution of the equation: x :: a :: a x b :: a f.b. (1) Equation (1) need not have a solution. If it does, for a given f, we denote its solution by f. By definition, then, a :: a f b :: a f.b. A complete lattice is a partially ordered set in which all functions have an infimum.

Galois connection 14 a :: a f b :: a f.b. b :: a f.b { define the function K (A B) A by (K.a).b = a } b :: (K.a).b f.b { definition of (pointwise ordering on functions) } K.a f. a f K.a f.

Definition of Supremum 15 A supremum of f is a solution of the equation: x :: a :: x a b :: f.b a. (2) As for infima, equation (2) need not have a solution. If it does, for a given f, we denote its solution by f. By definition, then, a :: f a b :: f.b a. (3) A cocomplete lattice is a partially ordered set in which all functions have an supremum. Note: Cocomplete equals complete.

Infimum Preservation 16 Suppose A, B and C are complete lattices. Function f A B is inf-preserving if, for all functions g B C, f.( g) = (f g). Suppose that B is a poset and A is a complete poset. Then a monotonic function G B A is an upper adjoint in a Galois connection equivales G is inf-preserving. Dually, a monotonic function F A B is a lower adjoint in a Galois connection equivales F is sup-preserving.

Examples 17 (p q r) (p (q r)) Hence, p x :: q.x x :: p q.x. ( p q) (p q) Hence, x :: p.x x :: (p.x) x S b S if b then U else U\{x} Hence, x S P : P S : x P x S b S if b then {x} else φ Hence, x S P : P S : x P