FormalConjecturesForMathlib/NumberTheory/Primitive.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
12 declarations, 0 contain sorry, 0 declared as axioms
Primitive elements of a set with respect to divisibility
An element n is primitive in a set S ⊆ ℕ if n ∈ S and no proper divisor of n is in S.
This concept appears naturally when studying sequences closed under "divisor inheritance" -
if every member n of a sequence has the property that m * n is also in the sequence
for coprime m, then the primitive elements generate the entire sequence.
Main definitions
Set.IsPrimitive: A natural numbernis primitive inSifn ∈ Sandn.properDivisorsis disjoint fromS.Set.primitives: The set of primitive elements ofS.
Main results
Set.IsPrimitive.mem: A primitive element is in the set.Set.IsPrimitive.not_mem_of_properDivisor: Proper divisors of a primitive element are not in the set.Set.one_isPrimitive_iff:1is primitive inSiff1 ∈ S.Set.prime_isPrimitive_iff: A primepis primitive inSiffp ∈ Sand1 ∉ S.
Imports (1)
Imported by 1 file
- def
Set.IsPrimitiveAn elementnis primitive in a setS ⊆ ℕifn ∈ Sand no proper divisor ofnis inSline 51 sourceSource documentation
An element
nis primitive in a setS ⊆ ℕifn ∈ Sand no proper divisor ofnis inS.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
And,Membership.mem,Disjoint,Finset,Nat.properDivisors14 instances, coercions and auxiliary constants left out.
def IsPrimitive (S : Set ℕ) (n : ℕ) : Prop := …
- def
Set.primitivesThe set of primitive elements ofSline 55 sourceSource documentation
The set of primitive elements of
S.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ofPred, Set.IsPrimitivedef primitives (S : Set ℕ) : Set ℕ := …
- theorem
Set.IsPrimitive.memline 58 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat, Set.IsPrimitive,Membership.memProof uses:
And.left,Disjoint,Finset,Nat.properDivisors15 instances, coercions and auxiliary constants left out.
- theorem
Set.IsPrimitive.disjoint_properDivisorsline 60 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat, Set.IsPrimitive,Disjoint,Finset,Nat.properDivisorsProof uses:
And.right,Membership.mem27 instances, coercions and auxiliary constants left out.
- theorem
Set.IsPrimitive.not_mem_of_properDivisorline 63 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat, Set.IsPrimitive,Membership.mem,Finset,Nat.properDivisors,NotProof uses:
Iff.mp,Disjoint,Set.disjoint_left,And.right26 instances, coercions and auxiliary constants left out.
- theorem
Set.IsPrimitive.not_mem_of_dvd_of_ltline 67 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat, Set.IsPrimitive,Dvd.dvd,LT.lt,Not,Membership.memProof uses: Set.IsPrimitive.not_mem_of_properDivisor,
Iff.mpr,Finset,Nat.properDivisors,And,Nat.mem_properDivisors,And.intro7 instances, coercions and auxiliary constants left out.
- theorem
Set.isPrimitive_iffline 71 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Iff, Set.IsPrimitive,And,Membership.mem,Finset,Nat.properDivisors,NotProof uses:
of_eq_true,Eq.trans,True,congrFun',congrArg,Disjoint,forall_congr,implies_congr,Eq.refl,iff_self28 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Set.isPrimitive_iff'line 75 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,LT.lt,OfNat.ofNat,Iff, Set.IsPrimitive,And,Membership.mem,Dvd.dvd,NotProof uses:
Eq.mpr,Finset,Nat.properDivisors,id,Eq,congrArg,propext, Set.isPrimitive_iff,Iff.intro,And.intro,Iff.mpr,Nat.mem_properDivisors,And.left,Iff.mp,And.right12 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- theorem
Set.mem_primitives_iffline 82 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Iff,Membership.mem, Set.primitives, Set.IsPrimitiveProof uses:
Iff.rfl2 instances, coercions and auxiliary constants left out.
- theorem
Set.primitives_subsetline 85 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,LE.le, Set.primitivesProof uses:
Membership.mem, Set.IsPrimitive.mem2 instances, coercions and auxiliary constants left out.
- theorem
Set.one_isPrimitive_iffline 87 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Iff, Set.IsPrimitive,OfNat.ofNat,Membership.memProof uses:
of_eq_true,Eq.trans,True,congrFun',congrArg,And,Finset,Nat.properDivisors,Not,forall_congr,False,implies_congr,EmptyCollection.emptyCollection,Nat.properDivisors_one,Eq.refl,implies_true,and_true,iff_self11 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Set.prime_isPrimitive_iffline 90 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Nat.Prime,Iff, Set.IsPrimitive,And,Membership.mem,Not,OfNat.ofNatProof uses:
of_eq_true,Eq.trans,True,congrFun',congrArg,Finset,Nat.properDivisors,Eq,forall_congr,implies_congr,Singleton.singleton,Nat.Prime.properDivisors,Eq.refl,iff_self10 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.