def
definition
def or abbrev
hasCycle
show as:
view Lean formalization →
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