Documentation

TauCeti.Data.PFun.Basic

Binding a defined value into a partial function #

A partial function f : α →. β is a function α → Part β, but α →. β is a definition that simp does not unfold, so Part.bind_some does not rewrite Part.some a >>= f. This file states that rewrite for partial functions. It computes compositions of partial functions with defined inputs, such as evaluations of programs relative to an oracle.

Main results #

@[simp]
theorem PFun.some_bind {α β : Type u} (f : α →. β) (a : α) :
Part.some a >>= f = f a

Binding a defined value a into a partial function f applies f to a.