Datasets:
Download lean_project/FormalConjecturesForMathlib/Combinatorics/YoungDiagram.lean from nielsr/formal-conjectures: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/datasets/nielsr/formal-conjectures/resolve/main/lean_project/FormalConjecturesForMathlib/Combinatorics/YoungDiagram.lean
- Command line
-
hf download hf://datasets/nielsr/formal-conjectures/lean_project/FormalConjecturesForMathlib/Combinatorics/YoungDiagram.lean
-
curl -L -o YoungDiagram.lean https://huggingface.co/datasets/nielsr/formal-conjectures/resolve/main/lean_project/FormalConjecturesForMathlib/Combinatorics/YoungDiagram.lean
1.26 kB
Lean 4 · 4
declarations statementsfull
def YoungDiagram.Cell (μ : YoungDiagram) : Type := μ.cells instance (μ : YoungDiagram) : Fintype μ.Cell := body · 1 line
inferInstanceAs (Fintype μ.cells)instance (μ : YoungDiagram) : DecidableEq μ.Cell := body · 1 line
inferInstanceAs (DecidableEq μ.cells)35The simple graph of a Young diagram: two distinct cells are adjacent iff they lie in the same row or in the same column.
def YoungDiagram.toSimpleGraph (μ : YoungDiagram) : SimpleGraph μ.Cell := body · 1 line
.fromRel fun a b => a.val.fst = b.val.fst ∨ a.val.snd = b.val.sndOutline