Docsity

CS376 Homework Assignment: Maude Specifications, Group Theory Exercises, Assignments of Computer Science

Toggle sidebar
bg1
CS376 Homework #2, Due 11am on 10/4
Note: Answers to the exercises listed below should be handed to the course instructor in a formatted hard copy
by the deadline mentiones above.
1. Using Maude’s built-in module INT, define in Maude a functional module of finite sets of integers with the
following features:
•it should use the assoc and comm attributes in the definition of set union
•it should be the case that any two ground set expressions tand t′denote the same set iff they yield the
same result after simplifying them with the red command in Maude (no need to prove it, just get it right
in your specification)
•you should give equations that correctly define functions for set union, set intersection, set difference, a
membership predicate (boolean-valued function that is true of an element and a set if the element belongs
to the set and is false otherwise), and a function computing the cardinality of a set (number of elements).
2. Solve in detail Ex.2.2 in Lecture 2.
3. Solve in detail Ex.3.11 in Lecture 3.
4. Exhibit an order-sorted signature Σ, Σ-algebras Aand B, and a bijective Σ-homomorphism f:A−→ B
that is not a Σ-isomorphism. Give the most general possible condition you can on Σ, so that any bijective
Σ-homomorphism is a Σ-isomorphism.
5. The theory of groups has one sort, say Group, a constant 1, a unary function ( )−1and a binary function ◦
and has equations:
•x◦1 = x
•x◦(y◦z) = (x◦y)◦z
•x◦(x)−1= 1
Use the rules of inference of Lecture 4 to give a detailed formal proof of each of the following theorems of group
theory:
•(∀x) 1 ◦x=x
•(∀x) (x)−1◦x= 1
•(∀x, y) (x◦y)−1=y−1◦x−1
1

Partial preview of the text

Download CS376 Homework Assignment: Maude Specifications, Group Theory Exercises and more Assignments Computer Science in PDF only on Docsity!

CS376 Homework #2, Due 11am on 10/

Note: Answers to the exercises listed below should be handed to the course instructor in a formatted hard copy by the deadline mentiones above.

  1. Using Maude’s built-in module INT, define in Maude a functional module of finite sets of integers with the following features: - it should use the assoc and comm attributes in the definition of set union - it should be the case that any two ground set expressions t and t′^ denote the same set iff they yield the same result after simplifying them with the red command in Maude (no need to prove it, just get it right in your specification) - you should give equations that correctly define functions for set union, set intersection, set difference, a membership predicate (boolean-valued function that is true of an element and a set if the element belongs to the set and is false otherwise), and a function computing the cardinality of a set (number of elements).
  2. Solve in detail Ex.2.2 in Lecture 2.
  3. Solve in detail Ex.3.11 in Lecture 3.
  4. Exhibit an order-sorted signature Σ, Σ-algebras A and B, and a bijective Σ-homomorphism f : A −→ B that is not a Σ-isomorphism. Give the most general possible condition you can on Σ, so that any bijective Σ-homomorphism is a Σ-isomorphism.
  5. The theory of groups has one sort, say Group, a constant 1, a unary function ( )−^1 and a binary function ◦ and has equations: - x ◦ 1 = x - x ◦ (y ◦ z) = (x ◦ y) ◦ z - x ◦ (x)−^1 = 1

Use the rules of inference of Lecture 4 to give a detailed formal proof of each of the following theorems of group theory:

  • (∀x) 1 ◦ x = x
  • (∀x) (x)−^1 ◦ x = 1
  • (∀x, y) (x ◦ y)−^1 = y−^1 ◦ x−^1