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

SelfReferentialCode

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)

  42structure SelfReferentialCode where
  43  /-- The code being analyzed. -/
  44  code : LeanCode
  45  /-- The code compiles (type-checks). -/
  46  compiles : TypeCheckResult
  47  /-- The code refers to itself (as a proposition).
  48      Refined: check if source contains module name. -/
  49  self_referential : code.source.contains code.module.toSubstring
  50
  51/-- If code compiles, it is "recognized" (valid in the type theory). -/

used by (1)

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

depends on (9)

Lean names referenced from this declaration's body.