{ "cells": [ { "cell_type": "markdown", "id": "8132589c", "metadata": {}, "source": [ "# Parallel composition\n", "Using the Bird API, you can define your own parallel composition logic. This works similar to PRISM models. We give an example here. We create two MDP models `m1` and `m2`, and then we create the quotient model `q`. They synchronize on the action `r`." ] }, { "cell_type": "markdown", "id": "abbb9c0a", "metadata": {}, "source": [ "## m1\n", "`m1` is a simple 2x2 grid model where taking `l` `r` `u` and `d` move to the next tile." ] }, { "cell_type": "code", "execution_count": 1, "id": "3b02f81c", "metadata": { "execution": { "iopub.execute_input": "2026-04-16T05:27:51.632423Z", "iopub.status.busy": "2026-04-16T05:27:51.632232Z", "iopub.status.idle": "2026-04-16T05:27:52.081525Z", "shell.execute_reply": "2026-04-16T05:27:52.080942Z" }, "lines_to_next_cell": 2 }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "
\n", "