Commit 2025-06-01 19:52 cf132bfd

View on Github →

feat(RingTheory/Radical): generalise and fill in TODOs (#25335)

  • Generalise some lemmas from unique factorisation domains to unique factorisation monoids, with the additional consequence that they no longer require addition to be defined.
  • Fill in TODOs for radical (radical a) = radical a and connecting UFM.primeFactors to Nat.primeFactors
  • Style changes The large-import is due to importing IsRadical for the definition of radical, and importing primality facts for natural numbers. The former is an obviously useful change to make, and the latter isn't necessary but the alternative is to have a separate file for radical on nat (which would be very short and a bit silly) or import RingTheory in Data/Nat, which would be undesirable. Upstreamed from the ABC-Exceptions project

Estimated changes

added theorem IsRadical.dvd_radical
added theorem Nat.one_lt_radical_iff
added theorem Nat.radical_le_one_iff
added theorem Nat.radical_pos
added theorem Nat.two_le_radical_iff