cfahlgren1/math / lean /OAI /Computability /BinPacking /Trees /InventoryFromTrees.lean
cfahlgren1's picture
download
raw
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

Xet Storage Details

Size:
1.15 kB
·
Xet hash:
b0e02e6dce006d593353cbbb1e1a8f8ea460d18614f728dd78af53f731e949b6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.