cfahlgren1/math / lean /OAI /Combinatorics /ContingencyTables /Transport /CompletionFibreTransport.lean
cfahlgren1's picture
download
raw
751 Bytes
import OAI.Combinatorics.ContingencyTables.Sampling.PhysicalCompletionFibres
namespace OAI
/-! # Changing a retained profile by an equality keeps the literal views -/
namespace ContingencyTables.PhysicalCompletionFibres
variable {I J : Type*} [Fintype I] [Fintype J]
variable {small : I → J → Bool} {B : I → J → ℕ}
variable {r rbar : I → ℕ} {c cbar : J → ℕ} {z w : SmallProfile small}
def withProfile (h : z=w) (Z : CompletionFibre small B r rbar c cbar z) :
CompletionFibre small B r rbar c cbar w :=
⟨Z.val,by rw [←h]; exact Z.property⟩
lemma withProfile_val (h : z=w) (Z : CompletionFibre small B r rbar c cbar z) :
(withProfile h Z).val=Z.val := rfl
end ContingencyTables.PhysicalCompletionFibres
end OAI

Xet Storage Details

Size:
751 Bytes
·
Xet hash:
0e9a0c2a2ec34bce6bdd0ed7ee8c30a78a717753a9e398fdf5e0d8e0c1e2dfc0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.