FC000D

crt_pairwise_compatible_prefix_implies_merge_compatible

Every pairwise gcd-compatible finite list satisfies every actual predecessor-LCM merge condition, including arbitrary noncoprime and zero moduli.

Alpha v34 checked-use · first admitted v27 · 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.

All finite lists are included, even the empty list and zero moduli. A positive LCM gives x<M; at zero LCM congruence is exact equality and normalization deliberately does not require the impossible x<0.

Exact theorem in conservative defined notation

∀ r. ∀ s. ∀ b. ∀ c. ∀ l. CRTPairwiseCompatiblePrefix(r,s,b,c,l) → ∀ x. ∀ y. ∀ z. ∀ n. ∀ m. ∀ k. Lt(x,l)CRTPrefixLCM(b,c,x,z)CRTPrefixSolution(r,s,b,c,x,y)BetaAt(r,s,x,n)BetaAt(b,c,x,m)IsGCD(k,z,m)ModEq(k,y,n)

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

Definition DAG

Actual proof prerequisites

Original expanded first-order statement
forall r s b c l. (forall gcomp_left_index_gfull_full_pairs_source gcomp_right_index_gfull_full_pairs_source gcomp_left_residue_gfull_full_pairs_source gcomp_right_residue_gfull_full_pairs_source gcomp_left_modulus_gfull_full_pairs_source gcomp_right_modulus_gfull_full_pairs_source gcomp_pair_gcd_gfull_full_pairs_source. (exists ff_lt_gcrt_gfull_full_pairs_source_left_bound. ff_lt_gcrt_gfull_full_pairs_source_left_bound + S gcomp_left_index_gfull_full_pairs_source = l) -> (exists ff_lt_gcrt_gfull_full_pairs_source_right_bound. ff_lt_gcrt_gfull_full_pairs_source_right_bound + S gcomp_right_index_gfull_full_pairs_source = l) -> (((exists ff_h_gcrt_gfull_full_pairs_source_left_residue. ff_h_gcrt_gfull_full_pairs_source_left_residue + S (gcomp_left_residue_gfull_full_pairs_source) = S ((S (gcomp_left_index_gfull_full_pairs_source)) * s)) /\ exists ff_q_gcrt_gfull_full_pairs_source_left_residue. r = ff_q_gcrt_gfull_full_pairs_source_left_residue * S ((S (gcomp_left_index_gfull_full_pairs_source)) * s) + (gcomp_left_residue_gfull_full_pairs_source))) -> (((exists ff_h_gcrt_gfull_full_pairs_source_right_residue. ff_h_gcrt_gfull_full_pairs_source_right_residue + S (gcomp_right_residue_gfull_full_pairs_source) = S ((S (gcomp_right_index_gfull_full_pairs_source)) * s)) /\ exists ff_q_gcrt_gfull_full_pairs_source_right_residue. r = ff_q_gcrt_gfull_full_pairs_source_right_residue * S ((S (gcomp_right_index_gfull_full_pairs_source)) * s) + (gcomp_right_residue_gfull_full_pairs_source))) -> (((exists ff_h_gcrt_gfull_full_pairs_source_left_modulus. ff_h_gcrt_gfull_full_pairs_source_left_modulus + S (gcomp_left_modulus_gfull_full_pairs_source) = S ((S (gcomp_left_index_gfull_full_pairs_source)) * c)) /\ exists ff_q_gcrt_gfull_full_pairs_source_left_modulus. b = ff_q_gcrt_gfull_full_pairs_source_left_modulus * S ((S (gcomp_left_index_gfull_full_pairs_source)) * c) + (gcomp_left_modulus_gfull_full_pairs_source))) -> (((exists ff_h_gcrt_gfull_full_pairs_source_right_modulus. ff_h_gcrt_gfull_full_pairs_source_right_modulus + S (gcomp_right_modulus_gfull_full_pairs_source) = S ((S (gcomp_right_index_gfull_full_pairs_source)) * c)) /\ exists ff_q_gcrt_gfull_full_pairs_source_right_modulus. b = ff_q_gcrt_gfull_full_pairs_source_right_modulus * S ((S (gcomp_right_index_gfull_full_pairs_source)) * c) + (gcomp_right_modulus_gfull_full_pairs_source))) -> ((((exists hag_left_factor_gcomp_gfull_full_pairs_source_gcd. gcomp_left_modulus_gfull_full_pairs_source = gcomp_pair_gcd_gfull_full_pairs_source * hag_left_factor_gcomp_gfull_full_pairs_source_gcd) /\ (exists hag_right_factor_gcomp_gfull_full_pairs_source_gcd. gcomp_right_modulus_gfull_full_pairs_source = gcomp_pair_gcd_gfull_full_pairs_source * hag_right_factor_gcomp_gfull_full_pairs_source_gcd)) /\ forall hag_divisor_gcomp_gfull_full_pairs_source_gcd. (exists hag_common_left_gcomp_gfull_full_pairs_source_gcd. gcomp_left_modulus_gfull_full_pairs_source = hag_divisor_gcomp_gfull_full_pairs_source_gcd * hag_common_left_gcomp_gfull_full_pairs_source_gcd) -> (exists hag_common_right_gcomp_gfull_full_pairs_source_gcd. gcomp_right_modulus_gfull_full_pairs_source = hag_divisor_gcomp_gfull_full_pairs_source_gcd * hag_common_right_gcomp_gfull_full_pairs_source_gcd) -> exists hag_greatest_factor_gcomp_gfull_full_pairs_source_gcd. gcomp_pair_gcd_gfull_full_pairs_source = hag_divisor_gcomp_gfull_full_pairs_source_gcd * hag_greatest_factor_gcomp_gfull_full_pairs_source_gcd)) -> (exists hgcrt_mod_left_gcrt_gfull_full_pairs_source_result hgcrt_mod_right_gcrt_gfull_full_pairs_source_result. gcomp_left_residue_gfull_full_pairs_source + gcomp_pair_gcd_gfull_full_pairs_source * hgcrt_mod_left_gcrt_gfull_full_pairs_source_result = gcomp_right_residue_gfull_full_pairs_source + gcomp_pair_gcd_gfull_full_pairs_source * hgcrt_mod_right_gcrt_gfull_full_pairs_source_result)) -> (forall gcomp_merge_index_gfull_full_merge_result gcomp_merge_solution_gfull_full_merge_result gcomp_merge_lcm_gfull_full_merge_result gcomp_merge_residue_gfull_full_merge_result gcomp_merge_modulus_gfull_full_merge_result gcomp_merge_gcd_gfull_full_merge_result. (exists ff_lt_gcrt_gfull_full_merge_result_bound. ff_lt_gcrt_gfull_full_merge_result_bound + S gcomp_merge_index_gfull_full_merge_result = l) -> (((forall gcrt_common_index_gfull_full_merge_result_lcm_own gcrt_common_modulus_gfull_full_merge_result_lcm_own. (exists ff_lt_gcrt_gfull_full_merge_result_lcm_own_bound. ff_lt_gcrt_gfull_full_merge_result_lcm_own_bound + S gcrt_common_index_gfull_full_merge_result_lcm_own = gcomp_merge_index_gfull_full_merge_result) -> (((exists ff_h_gcrt_gfull_full_merge_result_lcm_own_entry. ff_h_gcrt_gfull_full_merge_result_lcm_own_entry + S (gcrt_common_modulus_gfull_full_merge_result_lcm_own) = S ((S (gcrt_common_index_gfull_full_merge_result_lcm_own)) * c)) /\ exists ff_q_gcrt_gfull_full_merge_result_lcm_own_entry. b = ff_q_gcrt_gfull_full_merge_result_lcm_own_entry * S ((S (gcrt_common_index_gfull_full_merge_result_lcm_own)) * c) + (gcrt_common_modulus_gfull_full_merge_result_lcm_own))) -> exists gcrt_common_quotient_gfull_full_merge_result_lcm_own. gcomp_merge_lcm_gfull_full_merge_result = gcrt_common_modulus_gfull_full_merge_result_lcm_own * gcrt_common_quotient_gfull_full_merge_result_lcm_own) /\ forall gcrt_lcm_common_gfull_full_merge_result_lcm. (forall gcrt_common_index_gfull_full_merge_result_lcm_other gcrt_common_modulus_gfull_full_merge_result_lcm_other. (exists ff_lt_gcrt_gfull_full_merge_result_lcm_other_bound. ff_lt_gcrt_gfull_full_merge_result_lcm_other_bound + S gcrt_common_index_gfull_full_merge_result_lcm_other = gcomp_merge_index_gfull_full_merge_result) -> (((exists ff_h_gcrt_gfull_full_merge_result_lcm_other_entry. ff_h_gcrt_gfull_full_merge_result_lcm_other_entry + S (gcrt_common_modulus_gfull_full_merge_result_lcm_other) = S ((S (gcrt_common_index_gfull_full_merge_result_lcm_other)) * c)) /\ exists ff_q_gcrt_gfull_full_merge_result_lcm_other_entry. b = ff_q_gcrt_gfull_full_merge_result_lcm_other_entry * S ((S (gcrt_common_index_gfull_full_merge_result_lcm_other)) * c) + (gcrt_common_modulus_gfull_full_merge_result_lcm_other))) -> exists gcrt_common_quotient_gfull_full_merge_result_lcm_other. gcrt_lcm_common_gfull_full_merge_result_lcm = gcrt_common_modulus_gfull_full_merge_result_lcm_other * gcrt_common_quotient_gfull_full_merge_result_lcm_other) -> exists gcrt_lcm_quotient_gfull_full_merge_result_lcm. gcrt_lcm_common_gfull_full_merge_result_lcm = gcomp_merge_lcm_gfull_full_merge_result * gcrt_lcm_quotient_gfull_full_merge_result_lcm)) -> (forall gcrt_solution_index_gfull_full_merge_result_solution gcrt_solution_residue_gfull_full_merge_result_solution gcrt_solution_modulus_gfull_full_merge_result_solution. (exists ff_lt_gcrt_gfull_full_merge_result_solution_bound. ff_lt_gcrt_gfull_full_merge_result_solution_bound + S gcrt_solution_index_gfull_full_merge_result_solution = gcomp_merge_index_gfull_full_merge_result) -> (((exists ff_h_gcrt_gfull_full_merge_result_solution_residue. ff_h_gcrt_gfull_full_merge_result_solution_residue + S (gcrt_solution_residue_gfull_full_merge_result_solution) = S ((S (gcrt_solution_index_gfull_full_merge_result_solution)) * s)) /\ exists ff_q_gcrt_gfull_full_merge_result_solution_residue. r = ff_q_gcrt_gfull_full_merge_result_solution_residue * S ((S (gcrt_solution_index_gfull_full_merge_result_solution)) * s) + (gcrt_solution_residue_gfull_full_merge_result_solution))) -> (((exists ff_h_gcrt_gfull_full_merge_result_solution_modulus. ff_h_gcrt_gfull_full_merge_result_solution_modulus + S (gcrt_solution_modulus_gfull_full_merge_result_solution) = S ((S (gcrt_solution_index_gfull_full_merge_result_solution)) * c)) /\ exists ff_q_gcrt_gfull_full_merge_result_solution_modulus. b = ff_q_gcrt_gfull_full_merge_result_solution_modulus * S ((S (gcrt_solution_index_gfull_full_merge_result_solution)) * c) + (gcrt_solution_modulus_gfull_full_merge_result_solution))) -> (exists hgcrt_mod_left_gcrt_gfull_full_merge_result_solution_congruence hgcrt_mod_right_gcrt_gfull_full_merge_result_solution_congruence. gcomp_merge_solution_gfull_full_merge_result + gcrt_solution_modulus_gfull_full_merge_result_solution * hgcrt_mod_left_gcrt_gfull_full_merge_result_solution_congruence = gcrt_solution_residue_gfull_full_merge_result_solution + gcrt_solution_modulus_gfull_full_merge_result_solution * hgcrt_mod_right_gcrt_gfull_full_merge_result_solution_congruence)) -> (((exists ff_h_gcrt_gfull_full_merge_result_residue. ff_h_gcrt_gfull_full_merge_result_residue + S (gcomp_merge_residue_gfull_full_merge_result) = S ((S (gcomp_merge_index_gfull_full_merge_result)) * s)) /\ exists ff_q_gcrt_gfull_full_merge_result_residue. r = ff_q_gcrt_gfull_full_merge_result_residue * S ((S (gcomp_merge_index_gfull_full_merge_result)) * s) + (gcomp_merge_residue_gfull_full_merge_result))) -> (((exists ff_h_gcrt_gfull_full_merge_result_modulus. ff_h_gcrt_gfull_full_merge_result_modulus + S (gcomp_merge_modulus_gfull_full_merge_result) = S ((S (gcomp_merge_index_gfull_full_merge_result)) * c)) /\ exists ff_q_gcrt_gfull_full_merge_result_modulus. b = ff_q_gcrt_gfull_full_merge_result_modulus * S ((S (gcomp_merge_index_gfull_full_merge_result)) * c) + (gcomp_merge_modulus_gfull_full_merge_result))) -> ((((exists hag_left_factor_gcomp_gfull_full_merge_result_gcd. gcomp_merge_lcm_gfull_full_merge_result = gcomp_merge_gcd_gfull_full_merge_result * hag_left_factor_gcomp_gfull_full_merge_result_gcd) /\ (exists hag_right_factor_gcomp_gfull_full_merge_result_gcd. gcomp_merge_modulus_gfull_full_merge_result = gcomp_merge_gcd_gfull_full_merge_result * hag_right_factor_gcomp_gfull_full_merge_result_gcd)) /\ forall hag_divisor_gcomp_gfull_full_merge_result_gcd. (exists hag_common_left_gcomp_gfull_full_merge_result_gcd. gcomp_merge_lcm_gfull_full_merge_result = hag_divisor_gcomp_gfull_full_merge_result_gcd * hag_common_left_gcomp_gfull_full_merge_result_gcd) -> (exists hag_common_right_gcomp_gfull_full_merge_result_gcd. gcomp_merge_modulus_gfull_full_merge_result = hag_divisor_gcomp_gfull_full_merge_result_gcd * hag_common_right_gcomp_gfull_full_merge_result_gcd) -> exists hag_greatest_factor_gcomp_gfull_full_merge_result_gcd. gcomp_merge_gcd_gfull_full_merge_result = hag_divisor_gcomp_gfull_full_merge_result_gcd * hag_greatest_factor_gcomp_gfull_full_merge_result_gcd)) -> (exists hgcrt_mod_left_gcrt_gfull_full_merge_result_result hgcrt_mod_right_gcrt_gfull_full_merge_result_result. gcomp_merge_solution_gfull_full_merge_result + gcomp_merge_gcd_gfull_full_merge_result * hgcrt_mod_left_gcrt_gfull_full_merge_result_result = gcomp_merge_residue_gfull_full_merge_result + gcomp_merge_gcd_gfull_full_merge_result * hgcrt_mod_right_gcrt_gfull_full_merge_result_result))

Complete tactic proof in conservative notation

All 44 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

44 script commands · 5 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.

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

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

  1. L1
    intro r
  2. L2
    intro s
  3. L3
    intro b
  4. L4
    intro c
  5. L5
    intro l
  6. L6
    intro hp
  7. L7
    intro i
  8. L8
    intro x
  9. L9
    intro M
  10. L10
    intro a
02Fix variables and assumptionsL11–18

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

  1. L11
    intro n
  2. L12
    intro g
  3. L13
    intro hi
  4. L14
    intro hM
  5. L15
    intro hs
  6. L16
    intro ha
  7. L17
    intro hn
  8. L18
    intro hg
03Use earlier factsL19–28

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

  1. L19
    specialize crt_prefix_gcd_congruences_lcm b
  2. L20
    specialize crt_prefix_gcd_congruences_lcm c
  3. L21
    specialize crt_prefix_gcd_congruences_lcm i
  4. L22
    specialize crt_prefix_gcd_congruences_lcm n
  5. L23
    specialize crt_prefix_gcd_congruences_lcm x
  6. L24
    specialize crt_prefix_gcd_congruences_lcm a
  7. L25
    specialize crt_prefix_gcd_congruences_lcm M
  8. L26
    specialize crt_prefix_gcd_congruences_lcm g
  9. L27
    apply crt_prefix_gcd_congruences_lcm
  10. L28
    exact hM
04Use earlier factsL29–38

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

  1. L29
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences r
  2. L30
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences s
  3. L31
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences b
  4. L32
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences c
  5. L33
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences l
  6. L34
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences i
  7. L35
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences x
  8. L36
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences a
  9. L37
    specialize crt_pairwise_compatible_prefix_induces_gcd_congruences n
  10. L38
    apply crt_pairwise_compatible_prefix_induces_gcd_congruences
05Use earlier factsL39–44

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

  1. L39
    exact hp
  2. L40
    exact hi
  3. L41
    exact hs
  4. L42
    exact ha
  5. L43
    exact hn
  6. L44
    exact hg

Library-wide reading audit

Original defined command ledger · 44 lines
  1. 0001intro r
  2. 0002intro s
  3. 0003intro b
  4. 0004intro c
  5. 0005intro l
  6. 0006intro hp
  7. 0007intro i
  8. 0008intro x
  9. 0009intro M
  10. 0010intro a
  11. 0011intro n
  12. 0012intro g
  13. 0013intro hi
  14. 0014intro hM
  15. 0015intro hs
  16. 0016intro ha
  17. 0017intro hn
  18. 0018intro hg
  19. 0019specialize crt_prefix_gcd_congruences_lcm b
  20. 0020specialize crt_prefix_gcd_congruences_lcm c
  21. 0021specialize crt_prefix_gcd_congruences_lcm i
  22. 0022specialize crt_prefix_gcd_congruences_lcm n
  23. 0023specialize crt_prefix_gcd_congruences_lcm x
  24. 0024specialize crt_prefix_gcd_congruences_lcm a
  25. 0025specialize crt_prefix_gcd_congruences_lcm M
  26. 0026specialize crt_prefix_gcd_congruences_lcm g
  27. 0027apply crt_prefix_gcd_congruences_lcm
  28. 0028exact hM
  29. 0029specialize crt_pairwise_compatible_prefix_induces_gcd_congruences r
  30. 0030specialize crt_pairwise_compatible_prefix_induces_gcd_congruences s
  31. 0031specialize crt_pairwise_compatible_prefix_induces_gcd_congruences b
  32. 0032specialize crt_pairwise_compatible_prefix_induces_gcd_congruences c
  33. 0033specialize crt_pairwise_compatible_prefix_induces_gcd_congruences l
  34. 0034specialize crt_pairwise_compatible_prefix_induces_gcd_congruences i
  35. 0035specialize crt_pairwise_compatible_prefix_induces_gcd_congruences x
  36. 0036specialize crt_pairwise_compatible_prefix_induces_gcd_congruences a
  37. 0037specialize crt_pairwise_compatible_prefix_induces_gcd_congruences n
  38. 0038apply crt_pairwise_compatible_prefix_induces_gcd_congruences
  39. 0039exact hp
  40. 0040exact hi
  41. 0041exact hs
  42. 0042exact ha
  43. 0043exact hn
  44. 0044exact hg