Finite embeddings with prescribed endpoints #
This module constructs embeddings between finite ordinals that send one or two selected source points to selected target points. The endpoint equations let machine constructions choose work tapes without classical choice or existential extraction.
Main definitions #
Fin.embeddingAt: place one source point at a target point.Fin.embeddingAt₂: place two distinct source points at two distinct target points.
Main results #
Fin.embeddingAt_source,Fin.embeddingAt₂_first,Fin.embeddingAt₂_second: the selected endpoints have their prescribed images.Fin.exists_embedding_eq,Fin.exists_embedding_eq₂: existential forms for callers that do not need to retain the concrete embedding.
@[simp]
theorem Fin.embeddingAt_source {m K : ℕ} (h : m ≤ K) (source : Fin m) (target : Fin K) :
(embeddingAt h source target) source = target
The selected source has its prescribed image.
@[simp]
theorem Fin.embeddingAt₂_first {m K : ℕ} (h : m ≤ K) {first second : Fin m} (hSource : first ≠ second) {firstTarget secondTarget : Fin K} (hTarget : firstTarget ≠ secondTarget) :
(embeddingAt₂ h hSource hTarget) first = firstTarget
The first selected source has its prescribed image.
@[simp]
theorem Fin.embeddingAt₂_second {m K : ℕ} (h : m ≤ K) {first second : Fin m} (hSource : first ≠ second) {firstTarget secondTarget : Fin K} (hTarget : firstTarget ≠ secondTarget) :
(embeddingAt₂ h hSource hTarget) second = secondTarget
The second selected source has its prescribed image.