BA001A

cf_approximation_balance_exchange_columns

Exchanging the two genuine basis columns exchanges their coefficients and preserves the represented integer.

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

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.

The initial 0/1 convergent is included: u is natural, not necessarily positive. Comparison denominators are strictly smaller and positive. Signed competitors are represented by an arbitrary difference rp−rn. Approximation inequalities are proved from the trace, never stored as assumptions in Convergent.

Exact theorem in conservative defined notation

∀ x. ∀ y. ∀ u. ∀ U. ∀ p. ∀ n. ∀ q. ∀ m. x + (n · u + m · U) = y + (p · u + q · U) → x + (m · U + n · u) = y + (q · U + p · u)

Every linked abbreviation expands hygienically to the identical original native formula.

Definition DAG

none

Actual proof prerequisites

add_comm · checked external prerequisite
Original expanded first-order statement
forall x y u U p n q m. ((x) + ((n) * (u) + (m) * (U)) = (y) + ((p) * (u) + (q) * (U))) -> ((x) + ((m) * (U) + (n) * (u)) = (y) + ((q) * (U) + (p) * (u)))

Complete tactic proof in conservative notation

All 14 original proof lines are preserved. Only local proposition formulas are abbreviated; every abbreviation has an exact binder-safe expansion check. The linked exact edition contains the unchanged replay script.

Read the argument

Proof checkpoints

14 script commands · 4 reading checkpoints · 0 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–9

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

  1. L1
    intro x
  2. L2
    intro y
  3. L3
    intro u
  4. L4
    intro U
  5. L5
    intro p
  6. L6
    intro n
  7. L7
    intro q
  8. L8
    intro m
  9. L9
    intro h
02Calculate and transport equalitiesL10–12

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L10
    trans x + (n * u + m * U)
  2. L11
    simp [add_comm]
  3. L12
    trans y + (p * u + q * U)
03Use earlier factsL13–13

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

  1. L13
    exact h
04Calculate and transport equalitiesL14–14

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L14
    simp [add_comm]

Library-wide reading audit

Original defined command ledger · 14 lines
  1. 0001intro x
  2. 0002intro y
  3. 0003intro u
  4. 0004intro U
  5. 0005intro p
  6. 0006intro n
  7. 0007intro q
  8. 0008intro m
  9. 0009intro h
  10. 0010trans x + (n * u + m * U)
  11. 0011simp [add_comm]
  12. 0012trans y + (p * u + q * U)
  13. 0013exact h
  14. 0014simp [add_comm]