Download lean/OAI/Probability/CriticalPercolation/GraphGeometry/GraphAction.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/CriticalPercolation/GraphGeometry/GraphAction.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Probability/CriticalPercolation/GraphGeometry/GraphAction.lean
-
curl -L -o GraphAction.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/CriticalPercolation/GraphGeometry/GraphAction.lean
1.04 kB
| import Mathlib | |
| import OAI.Probability.CriticalPercolation.GraphGeometry.UniformGeometry | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open Set Function | |
| open scoped Classical | |
| namespace CriticalPercolation.BondGraph | |
| variable {V E : Type*} (G : BondGraph V E) | |
| @[ext] lemma Aut.ext {f g : G.Aut} (hv : f.vertex=g.vertex) (he : f.edge=g.edge) : f=g := by | |
| cases f | |
| cases g | |
| cases hv | |
| cases he | |
| rfl | |
| instance : Group G.Aut where | |
| one := ⟨Equiv.refl V,Equiv.refl E,by intro e; simp⟩ | |
| mul f g := Aut.trans G g f | |
| inv f := Aut.symm G f | |
| mul_assoc f g h := by apply Aut.ext G <;> rfl | |
| one_mul f := by apply Aut.ext G <;> rfl | |
| mul_one f := by apply Aut.ext G <;> rfl | |
| inv_mul_cancel f := by | |
| apply Aut.ext G <;> apply Equiv.ext <;> intro x <;> | |
| exact Equiv.symm_apply_apply _ x | |
| instance : MulAction G.Aut V where | |
| smul f x := f.vertex x | |
| one_smul _ := rfl | |
| mul_smul _ _ _ := rfl | |
| @[simp] lemma Aut.smul_vertex (f : G.Aut) (x : V) : f • x=f.vertex x := rfl | |
| end CriticalPercolation.BondGraph | |
| end | |
| end | |
| end | |
| end OAI | |