FP0020

prime_field_inverse_exists_unique

Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

Proved unique inverse existence has exactly the nonzero carrier domain, not an odd-prime or supplied-inverse premise.

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 expanded first-order arithmetic statement

forall p a. (~((p) = 1) /\ forall pfa_factor_left_inverse_unique_domain pfa_factor_right_inverse_unique_domain. (p) = pfa_factor_left_inverse_unique_domain * pfa_factor_right_inverse_unique_domain -> pfa_factor_left_inverse_unique_domain = 1 \/ pfa_factor_right_inverse_unique_domain = 1) -> (exists pfa_gap_inverse_unique_input. pfa_gap_inverse_unique_input + S (a) = (p)) -> ~(a = 0) -> exists b. (((~((a) = 0)) /\ ((((exists pfa_gap_inverse_chosenmultiplicationleft. pfa_gap_inverse_chosenmultiplicationleft + S (a) = (p)) /\ (((exists pfa_gap_inverse_chosenmultiplicationright. pfa_gap_inverse_chosenmultiplicationright + S (b) = (p)) /\ ((((exists pfa_gap_inverse_chosenmultiplicationresultbound. pfa_gap_inverse_chosenmultiplicationresultbound + S (1) = (p)) /\ ((exists pfa_offset_left_inverse_chosenmultiplicationresultcongruence pfa_offset_right_inverse_chosenmultiplicationresultcongruence. ((a) * (b)) + (p) * pfa_offset_left_inverse_chosenmultiplicationresultcongruence = (1) + (p) * pfa_offset_right_inverse_chosenmultiplicationresultcongruence)))))))))))) /\ forall c. (((~((a) = 0)) /\ ((((exists pfa_gap_inverse_othermultiplicationleft. pfa_gap_inverse_othermultiplicationleft + S (a) = (p)) /\ (((exists pfa_gap_inverse_othermultiplicationright. pfa_gap_inverse_othermultiplicationright + S (c) = (p)) /\ ((((exists pfa_gap_inverse_othermultiplicationresultbound. pfa_gap_inverse_othermultiplicationresultbound + S (1) = (p)) /\ ((exists pfa_offset_left_inverse_othermultiplicationresultcongruence pfa_offset_right_inverse_othermultiplicationresultcongruence. ((a) * (c)) + (p) * pfa_offset_left_inverse_othermultiplicationresultcongruence = (1) + (p) * pfa_offset_right_inverse_othermultiplicationresultcongruence)))))))))))) -> c = b

Constructive proof overview

Generated structural guide

Proved unique inverse existence has exactly the nonzero carrier domain, not an odd-prime or supplied-inverse premise.

The unchanged tactic script uses 2 declared prerequisites and contains 25 exact native proof lines.

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

Proof neighborhood

Direct dependencies

Direct dependents

Formal native tactic body

Dependencies are introduced as named hypotheses before line 1. Local theorem links identify exact declared prerequisites. This exact body belongs to a complete independently kernel-checked constructive proof bundle and has Alpha checked-use authority; it does not imply Stable membership.

Read the argument

Proof checkpoints

25 script commands · 8 reading checkpoints · 1 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.

Named ingredients (2)

Long local formulas use this family’s existing definitions. Each new abbreviation was expanded back to the identical native formula, including its free-variable context. The original edition is preserved below.

01Fix variables and assumptionsL1–5

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

  1. L1
    intro p
  2. L2
    intro a
  3. L3
    intro hp
  4. L4
    intro ha
  5. L5
    intro hn
02Establish hbL6–12

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime field inverse exists.

  1. L6
    have hb : ∃ b. FpInv(p,a,b)Definitions: FpInv
  2. L7
    specialize prime_field_inverse_exists (p)
  3. L8
    specialize prime_field_inverse_exists (a)
  4. L9
    apply prime_field_inverse_exists
  5. L10
    exact hp
  6. L11
    exact ha
  7. L12
    exact hn
03Separate the logical casesL13–13

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

  1. L13
    cases hb
04Construct an explicit witnessL14–14

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

  1. L14
    exists x
05Separate the logical casesL15–15

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

  1. L15
    split
06Use earlier factsL16–16

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

  1. L16
    exact hb_witness
07Fix variables and assumptionsL17–18

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

  1. L17
    intro c
  2. L18
    intro hc
08Use earlier factsL19–25

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

  1. L19
    specialize prime_field_inverse_functional (p)
  2. L20
    specialize prime_field_inverse_functional (a)
  3. L21
    specialize prime_field_inverse_functional (c)
  4. L22
    specialize prime_field_inverse_functional (x)
  5. L23
    apply prime_field_inverse_functional
  6. L24
    exact hc
  7. L25
    exact hb_witness

Library-wide reading audit

Original exact command ledger · 25 lines
  1. 0001intro p
  2. 0002intro a
  3. 0003intro hp
  4. 0004intro ha
  5. 0005intro hn
  6. 0006have hb : exists b. (((~((a) = 0)) /\ ((((exists pfa_gap_inverse_choicemultiplicationleft. pfa_gap_inverse_choicemultiplicationleft + S (a) = (p)) /\ (((exists pfa_gap_inverse_choicemultiplicationright. pfa_gap_inverse_choicemultiplicationright + S (b) = (p)) /\ ((((exists pfa_gap_inverse_choicemultiplicationresultbound. pfa_gap_inverse_choicemultiplicationresultbound + S (1) = (p)) /\ ((exists pfa_offset_left_inverse_choicemultiplicationresultcongruence pfa_offset_right_inverse_choicemultiplicationresultcongruence. ((a) * (b)) + (p) * pfa_offset_left_inverse_choicemultiplicationresultcongruence = (1) + (p) * pfa_offset_right_inverse_choicemultiplicationresultcongruence))))))))))))
  7. 0007specialize prime_field_inverse_exists (p)
  8. 0008specialize prime_field_inverse_exists (a)
  9. 0009apply prime_field_inverse_exists
  10. 0010exact hp
  11. 0011exact ha
  12. 0012exact hn
  13. 0013cases hb
  14. 0014exists x
  15. 0015split
  16. 0016exact hb_witness
  17. 0017intro c
  18. 0018intro hc
  19. 0019specialize prime_field_inverse_functional (p)
  20. 0020specialize prime_field_inverse_functional (a)
  21. 0021specialize prime_field_inverse_functional (c)
  22. 0022specialize prime_field_inverse_functional (x)
  23. 0023apply prime_field_inverse_functional
  24. 0024exact hc
  25. 0025exact hb_witness