refactor: Reorganize files

This commit is contained in:
jstoobysmith 2024-11-14 15:26:31 +00:00
parent bbb4c020e9
commit a8e4562363
8 changed files with 376 additions and 282 deletions

View file

@ -322,4 +322,13 @@ lemma finExtractTwo_apply_snd {n : } (i : Fin n.succ.succ) (j : Fin n.succ) :
rw [← Equiv.eq_symm_apply]
simp
/-- Takes two maps `Fin n → Fin n` and returns the equivelance they form. -/
def finMapToEquiv (f1 : Fin n → Fin m) (f2 : Fin m → Fin n)
(h : ∀ x, f1 (f2 x) = x := by decide)
(h' : ∀ x, f2 (f1 x) = x := by decide) : Fin n ≃ Fin m where
toFun := f1
invFun := f2
left_inv := h'
right_inv := h
end HepLean.Fin