PA00DC · theorem

eisenstein_row_indicator_prefix_extend

Alpha v34 checked-use theorem · independently closed; not Stable

Append one exact orientation bit while preserving the previous row prefix.

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

∀ p. ∀ q. ∀ i. ∀ rb. ∀ rc. ∀ l. (∀ x. Lt(x,l) → ∃ y. BetaAt(rb,rc,x,y) ∧ (y = 0 ∧ (Lt(q · S i,p · S x) ∧ ¬Lt(p · S x,q · S i)) ∨ y = 1 ∧ (Lt(p · S x,q · S i) ∧ ¬Lt(q · S i,p · S x)))) → (∃ x. x = 0 ∧ (Lt(q · S i,p · S l) ∧ ¬Lt(p · S l,q · S i)) ∨ x = 1 ∧ (Lt(p · S l,q · S i) ∧ ¬Lt(q · S i,p · S l))) → ∃ x. ∃ y. ∀ z. Lt(z,S l) → ∃ n. BetaAt(x,y,z,n) ∧ (n = 0 ∧ (Lt(q · S i,p · S z) ∧ ¬Lt(p · S z,q · S i)) ∨ n = 1 ∧ (Lt(p · S z,q · S i) ∧ ¬Lt(q · S i,p · S z)))

Every purple notation token opens its conservative definition. This is a reading surface; the compiler expands the statement before the unchanged kernel checks it.

Definitions used by this theorem

In the theorem statement

16 occurrences

In local proof propositions

6 occurrences

Exact expanded native-PA statement
forall p q i rb rc l. (forall eri_column_row_indicator_extend_before. (exists eri_gap_row_indicator_extend_before_bound. eri_gap_row_indicator_extend_before_bound + S (eri_column_row_indicator_extend_before) = l) -> exists eri_bit_row_indicator_extend_before. ((((exists ff_h_eri_row_indicator_extend_before_decoded. ff_h_eri_row_indicator_extend_before_decoded + S (eri_bit_row_indicator_extend_before) = S ((S (eri_column_row_indicator_extend_before)) * rc)) /\ exists ff_q_eri_row_indicator_extend_before_decoded. rb = ff_q_eri_row_indicator_extend_before_decoded * S ((S (eri_column_row_indicator_extend_before)) * rc) + (eri_bit_row_indicator_extend_before))) /\ (((eri_bit_row_indicator_extend_before = 0 /\ ((exists eri_gap_row_indicator_extend_before_choice_left. eri_gap_row_indicator_extend_before_choice_left + S (q * S i) = p * S eri_column_row_indicator_extend_before) /\ ~(exists eri_gap_row_indicator_extend_before_choice_right. eri_gap_row_indicator_extend_before_choice_right + S (p * S eri_column_row_indicator_extend_before) = q * S i))) \/ (eri_bit_row_indicator_extend_before = 1 /\ ((exists eri_gap_row_indicator_extend_before_choice_right. eri_gap_row_indicator_extend_before_choice_right + S (p * S eri_column_row_indicator_extend_before) = q * S i) /\ ~(exists eri_gap_row_indicator_extend_before_choice_left. eri_gap_row_indicator_extend_before_choice_left + S (q * S i) = p * S eri_column_row_indicator_extend_before))))))) -> (exists bit. (((bit = 0 /\ ((exists eri_gap_row_indicator_extend_last_left. eri_gap_row_indicator_extend_last_left + S (q * S i) = p * S l) /\ ~(exists eri_gap_row_indicator_extend_last_right. eri_gap_row_indicator_extend_last_right + S (p * S l) = q * S i))) \/ (bit = 1 /\ ((exists eri_gap_row_indicator_extend_last_right. eri_gap_row_indicator_extend_last_right + S (p * S l) = q * S i) /\ ~(exists eri_gap_row_indicator_extend_last_left. eri_gap_row_indicator_extend_last_left + S (q * S i) = p * S l)))))) -> exists z d. (forall eri_column_row_indicator_extend_after. (exists eri_gap_row_indicator_extend_after_bound. eri_gap_row_indicator_extend_after_bound + S (eri_column_row_indicator_extend_after) = S l) -> exists eri_bit_row_indicator_extend_after. ((((exists ff_h_eri_row_indicator_extend_after_decoded. ff_h_eri_row_indicator_extend_after_decoded + S (eri_bit_row_indicator_extend_after) = S ((S (eri_column_row_indicator_extend_after)) * d)) /\ exists ff_q_eri_row_indicator_extend_after_decoded. z = ff_q_eri_row_indicator_extend_after_decoded * S ((S (eri_column_row_indicator_extend_after)) * d) + (eri_bit_row_indicator_extend_after))) /\ (((eri_bit_row_indicator_extend_after = 0 /\ ((exists eri_gap_row_indicator_extend_after_choice_left. eri_gap_row_indicator_extend_after_choice_left + S (q * S i) = p * S eri_column_row_indicator_extend_after) /\ ~(exists eri_gap_row_indicator_extend_after_choice_right. eri_gap_row_indicator_extend_after_choice_right + S (p * S eri_column_row_indicator_extend_after) = q * S i))) \/ (eri_bit_row_indicator_extend_after = 1 /\ ((exists eri_gap_row_indicator_extend_after_choice_right. eri_gap_row_indicator_extend_after_choice_right + S (p * S eri_column_row_indicator_extend_after) = q * S i) /\ ~(exists eri_gap_row_indicator_extend_after_choice_left. eri_gap_row_indicator_extend_after_choice_left + S (q * S i) = p * S eri_column_row_indicator_extend_after)))))))

Proof neighborhood

Direct theorem prerequisites

Direct theorem dependents

Definition-aware tactic body

Only local propositions introduced by have or suffices are compacted. The untrusted compiler re-expands each one before the original tactic script is replayed; defined notation is never accepted by the kernel. Open the exact replay line beneath every changed command.

Read the argument

Proof checkpoints

50 script commands · 19 reading checkpoints · 2 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.

Named ingredients (2)
01Fix variables and assumptionsL1–8

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

  1. L1
    intro p
  2. L2
    intro q
  3. L3
    intro i
  4. L4
    intro rb
  5. L5
    intro rc
  6. L6
    intro l
  7. L7
    intro hprefix
  8. L8
    intro hchoice
02Separate the logical casesL9–9

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L9
    cases hchoice
03Use earlier factsL10–13

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

  1. L10
    specialize beta_prefix_extend l
  2. L11
    specialize beta_prefix_extend rb
  3. L12
    specialize beta_prefix_extend rc
  4. L13
    specialize beta_prefix_extend x
04Separate the logical casesL14–16

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L14
    cases beta_prefix_extend
  2. L15
    cases beta_prefix_extend_witness
  3. L16
    cases beta_prefix_extend_witness_witness
05Construct an explicit witnessL17–18

Supply the displayed value, then prove that it has the required property.

  1. L17
    exists x1
  2. L18
    exists x2
06Fix variables and assumptionsL19–20

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

  1. L19
    intro j
  2. L20
    intro hj
07Establish hsplitL21–25

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply finite lt succ eq or lt.

  1. L21
    have hsplit : j = l ∨ Lt(j,l)Definitions: Lt(j,l)Original native command in the exact edition
  2. L22
    specialize finite_lt_succ_eq_or_lt l
  3. L23
    specialize finite_lt_succ_eq_or_lt j
  4. L24
    apply finite_lt_succ_eq_or_lt
  5. L25
    exact hj
08Separate the logical casesL26–26

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L26
    cases hsplit
09Construct an explicit witnessL27–27

Supply the displayed value, then prove that it has the required property.

  1. L27
    exists x
10Separate the logical casesL28–28

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L28
    split
11Calculate and transport equalitiesL29–30

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

  1. L29
    rewrite hsplit_left
  2. L30
    rewrite hsplit_left
12Use earlier factsL31–31

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

  1. L31
    exact beta_prefix_extend_witness_witness_left
13Calculate and transport equalitiesL32–35

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

  1. L32
    rewrite hsplit_left
  2. L33
    rewrite hsplit_left
  3. L34
    rewrite hsplit_left
  4. L35
    rewrite hsplit_left
14Use earlier factsL36–36

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

  1. L36
    exact hchoice_witness
15Establish holdL37–40

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

  1. L37
    have hold : ∃ oldbit. BetaAt(rb,rc,j,oldbit) ∧ (oldbit = 0 ∧ (Lt(q · S i,p · S j) ∧ ¬Lt(p · S j,q · S i)) ∨ oldbit = 1 ∧ (Lt(p · S j,q · S i) ∧ ¬Lt(q · S i,p · S j)))Definitions: BetaAt(rb,rc,j,oldbit)Lt(q · S i,p · S j)Lt(p · S j,q · S i)Original native command in the exact edition
  2. L38
    specialize hprefix j
  3. L39
    apply hprefix
  4. L40
    exact hsplit_right
16Separate the logical casesL41–42

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L41
    cases hold
  2. L42
    cases hold_witness
17Construct an explicit witnessL43–43

Supply the displayed value, then prove that it has the required property.

  1. L43
    exists x3
18Separate the logical casesL44–44

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L44
    split
19Use earlier factsL45–50

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

  1. L45
    specialize beta_prefix_extend_witness_witness_right j
  2. L46
    specialize beta_prefix_extend_witness_witness_right x3
  3. L47
    apply beta_prefix_extend_witness_witness_right
  4. L48
    exact hsplit_right
  5. L49
    exact hold_witness_left
  6. L50
    exact hold_witness_right

Library-wide reading audit

Original defined command ledger · 50 lines
  1. 0001intro p
  2. 0002intro q
  3. 0003intro i
  4. 0004intro rb
  5. 0005intro rc
  6. 0006intro l
  7. 0007intro hprefix
  8. 0008intro hchoice
  9. 0009cases hchoice
  10. 0010specialize beta_prefix_extend l
  11. 0011specialize beta_prefix_extend rb
  12. 0012specialize beta_prefix_extend rc
  13. 0013specialize beta_prefix_extend x
  14. 0014cases beta_prefix_extend
  15. 0015cases beta_prefix_extend_witness
  16. 0016cases beta_prefix_extend_witness_witness
  17. 0017exists x1
  18. 0018exists x2
  19. 0019intro j
  20. 0020intro hj
  21. 0021have hsplit : j = l ∨ Lt(j,l)
    Exact native replay linehave hsplit : j = l \/ exists gap. gap + S j = l
  22. 0022specialize finite_lt_succ_eq_or_lt l
  23. 0023specialize finite_lt_succ_eq_or_lt j
  24. 0024apply finite_lt_succ_eq_or_lt
  25. 0025exact hj
  26. 0026cases hsplit
  27. 0027exists x
  28. 0028split
  29. 0029rewrite hsplit_left
  30. 0030rewrite hsplit_left
  31. 0031exact beta_prefix_extend_witness_witness_left
  32. 0032rewrite hsplit_left
  33. 0033rewrite hsplit_left
  34. 0034rewrite hsplit_left
  35. 0035rewrite hsplit_left
  36. 0036exact hchoice_witness
  37. 0037have hold : ∃ oldbit. BetaAt(rb,rc,j,oldbit) ∧ (oldbit = 0 ∧ (Lt(q · S i,p · S j) ∧ ¬Lt(p · S j,q · S i)) ∨ oldbit = 1 ∧ (Lt(p · S j,q · S i) ∧ ¬Lt(q · S i,p · S j)))
    Exact native replay linehave hold : exists oldbit. ((((exists ff_h_row_indicator_extend_old_entry. ff_h_row_indicator_extend_old_entry + S (oldbit) = S ((S (j)) * rc)) /\ exists ff_q_row_indicator_extend_old_entry. rb = ff_q_row_indicator_extend_old_entry * S ((S (j)) * rc) + (oldbit))) /\ (((oldbit = 0 /\ ((exists eri_gap_row_indicator_extend_old_choice_left. eri_gap_row_indicator_extend_old_choice_left + S (q * S i) = p * S j) /\ ~(exists eri_gap_row_indicator_extend_old_choice_right. eri_gap_row_indicator_extend_old_choice_right + S (p * S j) = q * S i))) \/ (oldbit = 1 /\ ((exists eri_gap_row_indicator_extend_old_choice_right. eri_gap_row_indicator_extend_old_choice_right + S (p * S j) = q * S i) /\ ~(exists eri_gap_row_indicator_extend_old_choice_left. eri_gap_row_indicator_extend_old_choice_left + S (q * S i) = p * S j))))))
  38. 0038specialize hprefix j
  39. 0039apply hprefix
  40. 0040exact hsplit_right
  41. 0041cases hold
  42. 0042cases hold_witness
  43. 0043exists x3
  44. 0044split
  45. 0045specialize beta_prefix_extend_witness_witness_right j
  46. 0046specialize beta_prefix_extend_witness_witness_right x3
  47. 0047apply beta_prefix_extend_witness_witness_right
  48. 0048exact hsplit_right
  49. 0049exact hold_witness_left
  50. 0050exact hold_witness_right