TS001E · theorem body

flat_square_index_row_not_at_least_width

Alpha v34 checked-use · independently kernel and Lean verified; not Stable

A flat index strictly inside a square grid cannot have row index at least the grid width.

Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.

Statement with defined notation

∀ w. ∀ i. ∀ j. ∀ k. k = w · i + j → Lt(k,w · w) → ¬Le(w,i)

Every purple notation token opens its conservative definition. This reading surface never changes the unchanged intuitionistic kernel or confers checked-use authority.

Definitions used by this theorem

In the theorem statement

In local proof propositions

Exact expanded first-order statement
forall w i j k. k = w * i + j -> (exists ftcn_strict_flat_source. ftcn_strict_flat_source + S (k) = (w * w)) -> ~(exists ftcn_bound_flat_forbidden. ftcn_bound_flat_forbidden + (w) = (i))

Proof neighborhood

Direct theorem prerequisites

mul_le_mul_left · Stable closed le_add_right · Stable closed le_trans · Stable closed lt_not_le · Stable closed

Direct theorem dependents

Definition-aware tactic body

Only propositions whose conservative expansion has been checked for exact first-order equivalence are compacted. Every changed line retains its immutable exact replay command.

Read the argument

Proof checkpoints

30 script commands · 5 reading checkpoints · 3 local claims

This is a reading aid, not a new proof or a proof-tree certificate. Checkpoint groups are consecutive commands, not inferred branch boundaries. Every step links to the preserved script.

Definition notation is shown below. Open the paired exact edition for the original native formulas. Source pairing is not a new equivalence certificate.

01Fix variables and assumptionsL1–7

Work with arbitrary variables or the premises of the current implication.

  1. L1
    intro w
  2. L2
    intro i
  3. L3
    intro j
  4. L4
    intro k
  5. L5
    intro hindex
  6. L6
    intro hbound
  7. L7
    intro hrow
02Establish hproductL8–13

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply mul le mul left.

  1. L8
    have hproduct : Le(w · w,w · i)Definitions: Le(w · w,w · i)Original native command in the exact edition
  2. L9
    specialize mul_le_mul_left w
  3. L10
    specialize mul_le_mul_left i
  4. L11
    specialize mul_le_mul_left w
  5. L12
    apply mul_le_mul_left
  6. L13
    exact hrow
03Establish hsumL14–18

Establish this local claim before using it. It is not an additional assumption.

  1. L14
  2. L15
    rewrite hindex
  3. L16
    specialize le_add_right (w * i)
  4. L17
    specialize le_add_right j
  5. L18
    exact le_add_right
04Establish hlargeL19–28

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply le trans.

  1. L19
    have hlarge : Le(w · w,k)Definitions: Le(w · w,k)Original native command in the exact edition
  2. L20
    specialize le_trans (w * w)
  3. L21
    specialize le_trans (w * i)
  4. L22
    specialize le_trans k
  5. L23
    apply le_trans
  6. L24
    exact hproduct
  7. L25
    exact hsum
  8. L26
    specialize lt_not_le k
  9. L27
    specialize lt_not_le (w * w)
  10. L28
    apply lt_not_le
05Use earlier factsL29–30

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L29
    exact hbound
  2. L30
    exact hlarge

Library-wide reading audit

Original defined command ledger · 30 lines
  1. 0001intro w
  2. 0002intro i
  3. 0003intro j
  4. 0004intro k
  5. 0005intro hindex
  6. 0006intro hbound
  7. 0007intro hrow
  8. 0008have hproduct : Le(w · w,w · i)
    Exact native replay linehave hproduct : exists t. t + w * w = w * i
  9. 0009specialize mul_le_mul_left w
  10. 0010specialize mul_le_mul_left i
  11. 0011specialize mul_le_mul_left w
  12. 0012apply mul_le_mul_left
  13. 0013exact hrow
  14. 0014have hsum : Le(w · i,k)
    Exact native replay linehave hsum : exists t. t + w * i = k
  15. 0015rewrite hindex
  16. 0016specialize le_add_right (w * i)
  17. 0017specialize le_add_right j
  18. 0018exact le_add_right
  19. 0019have hlarge : Le(w · w,k)
    Exact native replay linehave hlarge : exists t. t + w * w = k
  20. 0020specialize le_trans (w * w)
  21. 0021specialize le_trans (w * i)
  22. 0022specialize le_trans k
  23. 0023apply le_trans
  24. 0024exact hproduct
  25. 0025exact hsum
  26. 0026specialize lt_not_le k
  27. 0027specialize lt_not_le (w * w)
  28. 0028apply lt_not_le
  29. 0029exact hbound
  30. 0030exact hlarge