FormalConjecturesForMathlib/Data/Nat/Prime/Finset.lean
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
Imported by 1 file
- def
Finset.CoprimeA Finset of numbers is coprime, or relatively prime, if itsgcdis 1 line 25 sourceSource documentation
A Finset of numbers is coprime, or relatively prime, if its
gcdis 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,NatProof uses:
Eq,Finset.gcd,id,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
@[reducible] def Finset.Coprime (S : Finset ℕ) : Prop := S.gcd id = 1
- theorem
Finset.Coprime_pair_iffA Finset of numbers is coprime, or relatively prime, if itsgcdis 1 line 27 sourceSource documentation
A Finset of numbers is coprime, or relatively prime, if its
gcdis 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,Nat,Eq,Insert.insert,Singleton.singleton,Iff, Finset.Coprime,Nat.CoprimeProof 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.rfl16 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 …