mathematics_in_lean_source icon indicating copy to clipboard operation
mathematics_in_lean_source copied to clipboard

factorial simp example

Open PatrickMassot opened this issue 1 year ago • 1 comments

In Chapter 5, we have

example : fac 0 = 1 := by
  simp [fac]

which is misleading since giving [fac] plays no role.

PatrickMassot avatar Oct 02 '23 13:10 PatrickMassot

@PatrickMassot Is this a problem? The example right before shows that this particular case is solved by rfl. But, more generally, simp [fac] will replace fac 0 by 1 in any context. It seems strange to modify the example just to make that point.

A bigger issue is that we now only have a minimal discussion of decide in 5.3, and we never say that simp calls decide. Shall we replace this issue by a separate issue that says that we should expand the discussion of decide?

avigad avatar Oct 22 '23 18:10 avigad