Skip to content

Commit e8c7a0d

Browse files
committed
feat(RingTheory/Flat/Basic): flat modules are torsion-free (#37913)
This PR proves that flat modules are torsion-free. Co-authored-by: tb65536 <thomas.l.browning@gmail.com>
1 parent 00dbc4e commit e8c7a0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Mathlib/RingTheory/Flat/TorsionFree.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ lemma isSMulRegular_of_isRegular {r : R} (hr : IsRegular r) [Flat R M] :
6363
rw [IsSMulRegular, h2]
6464
simp [h, LinearEquiv.injective]
6565

66+
instance Module.IsTorsionFree.ofFlat [Flat R M] : IsTorsionFree R M :=
67+
fun _ hr ↦ Module.Flat.isSMulRegular_of_isRegular hr⟩
68+
6669
end Semiring
6770

6871
section Ring

0 commit comments

Comments
 (0)