pith. machine review for the scientific record. sign in
def definition def or abbrev

cube_faces

show as:
view Lean formalization →

No prose has been written for this declaration yet. The Lean source and graph data below render without it.

generate prose now

formal statement (Lean)

  69def cube_faces (D : ℕ) : ℕ :=

proof body

Definition body.

  70  match D with
  71  | 0 => 0
  72  | 1 => 0
  73  | 2 => 4  -- square has 4 edges (faces in 2D)
  74  | 3 => 6  -- cube has 6 faces
  75  | n+4 => (n+4) * (n+3) * 2^(n+2)
  76

used by (40)

From the project-wide theorem graph. These declarations reference this one in their body.

… and 10 more

depends on (3)

Lean names referenced from this declaration's body.