Documentation

PolyFun.Logic.HEq

Heterogeneous equality helper lemmas #

This file contains small HEq lemmas that belong in Mathlib rather than in domain-specific developments.

theorem PolyFun.Logic.dependent_apply_heq {A : Sort u} {B : A → Sort v} {C : A → Sort w} (function : (a : A) → B a → C a) {a a' : A} (ha : a = a') {b : B a} {b' : B a'} (hb : b ≍ b') :
function a b ≍ function a' b'

Apply a dependent binary function to equal indices and heterogeneously equal arguments.

theorem Prod.mk_heq {α : Type u} {β β' : Type v} {a : α} {b : β} {b' : β'} (h : b ≍ b') :
(a, b) ≍ (a, b')

Build a heterogeneous equality between pairs with the same first component from a heterogeneous equality between their second components.