Defining succSuccAbove #
In Mathlib there is the Fin.succAbove function which gives an embedding of Fin n into
Fin (n + 1) by leaving a hole at a specified index. We will need a version of this which
gives an embedding of Fin n into Fin (n + 1 + 1) by leaving holes at
two specified indices. We call this succSuccAbove.
We will also need an explicit inverse of this map from
Fin (n + 1 + 1) to Fin n which is defined on the complement of the two specified indices.
This is similar to Fin.predAbove (although not exactly the same),
for this reason we call it predPredAbove.
Implementation #
In previous versions of Physlib the function which is now called succSuccAbove
was previously called dropPairEmb and the function which is now called predPredAbove was
previously called dropPairEmbPre.
Defining succSuccAbove #
The definition below is deliberately explicit. Later lemmas identify it with
Finset.orderEmbOfFin and Finset.orderIsoOfFin, giving a bridge to the Mathlib
API while keeping this form convenient for computation and goals solved by
decide.
Reinserting a left-block survivor a after removing the i-th slot of the left block and the
j-th slot of the right block of Fin ((nA + 1) + (nB + 1)), the removal read at the contracted
length (nA + nB) + 1 + 1. Unlike succSuccAbove_natAdd_apply_castAdd the two holes straddle the
two blocks, so the statement carries the reshaping Fin.casts.
Reinserting a right-block survivor, the mirror of
Fin.succSuccAbove_castAdd_natAdd_apply_castAdd.
predPredAbove #
Commutativity of succSuccAbove #
funPredPredAbove #
Given a bijection Fin (n1 + 1 + 1) → Fin (n + 1 + 1)) and a pair i j : Fin (n1 + 1 + 1),
then funPredPredAbove i j _ σ _ : Fin n1 → Fin n corresponds to the induced bijection
formed by dropping i and j in the source and their image in the target.
Equations
- i.funPredPredAbove j hij σ hσ m = (σ i).predPredAbove (σ j) ⋯ (σ (i.succSuccAbove j m)) ⋯
Instances For
Pointwise form of commuting deletion of one slot with deletion of a pair.