Download lean/OAI/Combinatorics/GraphThreshold/EmbeddingExtension.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 819 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/GraphThreshold/EmbeddingExtension.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Combinatorics/GraphThreshold/EmbeddingExtension.lean
-
curl -L -o EmbeddingExtension.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/GraphThreshold/EmbeddingExtension.lean
819 Bytes
| import Mathlib.Logic.Equiv.Fintype | |
| namespace OAI | |
| /-! Two placements of the same finite graph differ by an ambient permutation. | |
| The statement is about arbitrary embeddings and therefore preserves isolated | |
| vertices as well as vertices incident to edges. -/ | |
| namespace LeanBlast.SecondKahnKalai | |
| theorem exists_perm_comp_embedding {α β : Type*} [Finite β] | |
| (f g : α ↪ β) : ∃ σ : Equiv.Perm β, ∀ a, σ (f a) = g a := by | |
| classical | |
| let : Finite α := Finite.of_injective f f.injective | |
| let : Fintype α := Fintype.ofFinite α | |
| let e : Set.range f ≃ Set.range g := f.toEquivRange.symm.trans g.toEquivRange | |
| refine ⟨e.extendSubtype, ?_⟩ | |
| intro a | |
| rw [e.extendSubtype_apply_of_mem (f a) ⟨a, rfl⟩] | |
| change (e (f.toEquivRange a) : β) = g a | |
| simp [e] | |
| end LeanBlast.SecondKahnKalai | |
| end OAI | |