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

hasCycle

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)

  35def hasCycle (G : StakeGraph) (nodes : List Stakeholder) : Bool :=

proof body

Definition body.

  36  nodes.any (fun s => G.edge s s)
  37  || nodes.any (fun s =>
  38        nodes.any (fun t => (¬ decide (s = t)) && mutualReachable G nodes s t))
  39
  40end StakeGraph
  41end Ethics
  42end IndisputableMonolith
  43

depends on (7)

Lean names referenced from this declaration's body.