Download lean/OAI/Computability/BinPacking/Trees/InventoryFromTrees.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/BinPacking/Trees/InventoryFromTrees.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Computability/BinPacking/Trees/InventoryFromTrees.lean
-
curl -L -o InventoryFromTrees.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/BinPacking/Trees/InventoryFromTrees.lean
1.15 kB
| import OAI.Computability.BinPacking.Inventory.InventoryScores | |
| import OAI.Computability.BinPacking.Trees.TreeColorCounts | |
| namespace OAI | |
| namespace BinPackingGap.InventoryData | |
| def ofCompetingTrees (G : GraphInput) {d : ℕ} (T : CompetingTrees d) (R k : ℕ) : | |
| InventoryData where | |
| graph := G | |
| plus := T.plus | |
| minus := T.minus | |
| d := d | |
| R := R | |
| L := T.height | |
| quota := T.quota | |
| k := k | |
| @[simp] theorem ofCompetingTrees_P (G : GraphInput) {d : ℕ} | |
| (T : CompetingTrees d) (R k : ℕ) : | |
| (ofCompetingTrees G T R k).P = T.quotaTotal := rfl | |
| theorem ofCompetingTrees_plus_height (G : GraphInput) {d : ℕ} | |
| (T : CompetingTrees d) (R k : ℕ) : | |
| (ofCompetingTrees G T R k).plus.height = (ofCompetingTrees G T R k).L := | |
| T.plus_height | |
| theorem ofCompetingTrees_minus_height (G : GraphInput) {d : ℕ} | |
| (T : CompetingTrees d) (R k : ℕ) : | |
| (ofCompetingTrees G T R k).minus.height = (ofCompetingTrees G T R k).L := | |
| T.minus_height | |
| theorem ofCompetingTrees_height_pos (G : GraphInput) {d : ℕ} | |
| (T : CompetingTrees d) (R k : ℕ) : 0 < (ofCompetingTrees G T R k).L := | |
| T.height_pos | |
| end BinPackingGap.InventoryData | |
| end OAI | |