cfahlgren1's picture
download
raw
884 Bytes
import Mathlib
import OAI.Computability.MinUncut.Machines.MachineBinaryFormula
namespace OAI
section
noncomputable section
namespace MinUncut
open MinUncutGames.BinaryEncoding
lemma bitName_length_le (n : ℕ) : (nameBits n).length≤2*n+1 := by
rw [nameBits_length]
exact Nat.add_le_add_right (Nat.mul_le_mul_left _ (Nat.size_le.mpr n.lt_two_pow_self)) _
lemma Output.bits_length (G : Output) :
G.bits.length=(nameBits G.vertices).length+G.vertices^2+(nameBits G.threshold).length := by
unfold Output.bits
simp only [List.length_append,List.length_flatMap,List.length_map,List.length_finRange]
simp [pow_two]
lemma Output.bits_length_le (G : Output) :
G.bits.length≤2*G.vertices+1+G.vertices^2+(2*G.threshold+1) := by
rw [G.bits_length]
exact add_le_add (Nat.add_le_add_right (bitName_length_le _) _) (bitName_length_le _)
end MinUncut
end
end
end OAI

Xet Storage Details

Size:
884 Bytes
·
Xet hash:
960af9bf27605dafa43ba3ab9303f0aaae1929bc72d039eda6d7e4dc4a0bbc27

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