Hi,
.lib is all about Characteriation of std cells present in design ,getting the timing information of every stdcell.
This is provided by load capacitence,slew etc.
In a design such timing info is given Synopsis Timing Library called .lib.
If you want to understand .Lib in detail ,please see the attachment below: