Download lean/OAI/Combinatorics/IndependentSets/Expansion/PreprocessingFamilyBridge.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremrotationWords_resizeTable {n m q : Nat} (h : n = m)
(table : ExpanderTables.Table n q) :
rotationWords (resizeTable h table) = rotationWords table :=by
theoremfamilyRotor_eq_familyCloudTable (H : BaseTable) (t : GraphTables.Table)
(v : Fin t.vertices) (hk : 0 < cloudSize t v) :
encodeWords (rotationWords (ExpanderTables.family H
(PreprocessingLevels.boundedLevel (cloudSize t v)))) =
encodeWords (rotationWords (familyCloudTable H t v)) :=by
theoremcloudSize_pos_of_paddedCloud (t : GraphTables.Table) (v : Fin t.vertices)
(x : PaddedCloud t (padding t) v) : 0 < cloudSize t v :=by
proof · 5
lines
by_contra h
have hk :=Nat.eq_zero_of_not_pos h
have hp := padding_zero_of_cloudSize_zero t v hk
have hx := (paddedCloudRank t (padding t) v x).isLt
omega
theoremfamilyCloudWords_of_zero (H : BaseTable) (t : GraphTables.Table)
(v : Fin t.vertices) (hk : cloudSize t v = 0) :
encodeWords (rotationWords (familyCloudTable H t v)) = [] :=by
proof · 5
lines
havehl : (rotationWords (familyCloudTable H t v)).length = 0:=by
rw [rotationWords_length, cloudSize_add_padding, hk,
PreprocessingLevels.cloudPaddedSize_zero, Nat.zero_mul]
rw [List.length_eq_zero_iff.mp hl]
rfl