FormalConjecturesForMathlib/Data/Nat/Prime/Finset.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1

2 declarations, 0 contain sorry, 0 declared as axioms

Imports (3)
Imported by 1 file
  1. def Finset.Coprime A Finset of numbers is coprime, or relatively prime, if its gcd is 1 line 25 source

    Source documentation

    A Finset of numbers is coprime, or relatively prime, if its gcd is 1.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Finset, Nat

    Proof uses: Eq, Finset.gcd, id, OfNat.ofNat

    4 instances, coercions and auxiliary constants left out.

    @[reducible] def Finset.Coprime (S : Finset ℕ) : Prop := S.gcd id = 1
  2. theorem Finset.Coprime_pair_iff A Finset of numbers is coprime, or relatively prime, if its gcd is 1 line 27 source

    Source documentation

    A Finset of numbers is coprime, or relatively prime, if its gcd is 1.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Finset, Nat, Eq, Insert.insert, Singleton.singleton, Iff, Finset.Coprime, Nat.Coprime

    Proof uses: Eq.mpr, GCDMonoid.gcd, id, OfNat.ofNat, Nat.gcd, congrFun', congrArg, Finset.gcd, Eq.trans, Finset.gcd_insert, normalize, Finset.gcd_singleton, normalize_eq, Units, Iff.rfl

    16 instances, coercions and auxiliary constants left out.

    Tactic trace: 2 steps

    Open to load the checked before-and-after goal states.

    theorem Finset.Coprime_pair_iff (S : Finset ℕ) (a b : ℕ) (h : S = {a, b}) :
        S.Coprime ↔ Nat.Coprime a b := by
    …