Proposition 3
Tag 008E, permanent. Cite it as [Bourbaki, Tag 008E].
Algebra, VIII, p. 123, § 7. Simple Rings
Let A be a simple ring. An A-module M is free if and only if its length is divisible by the length of A. If that is the case, then all bases of M have the same cardinal, denoted by dim (II, §7, No. 3, p. 294, Remark 2) and determined by the relation
(1) long long(A) dim.
Suppose that M is free, and let be a basis of M. The A-module M is the direct sum of the A-modules , which are each isomorphic to . Set long; this is an integer greater than or equal to 1 (VIII, p. 119, Proposition 1). We have long Card(I) by formula (13) of VIII, p. 73.
Conversely, suppose that the cardinal long is divisible by . Let be the cardinal such that long. Then the A-module M has the same length as , hence is isomorphic to it by Proposition 2. This proves that M is free.
Bourbaki sets the proof directly after the statement, and the corpus does not separate them, so what is above is the statement and its proof together.