AFTD Auto-Formalizing Theoretical Domains

digraph_is_extension

def

A directed graph H is an extension of a directed graph G if H is oriented and G is a subgraph of H.

Statement

def digraph_is_extension {V : Type*} (G H : Digraph V) : Prop
Defined in
arXiv:2611.32872 p. 3
Verified
25 Nov 2026
Axioms
none listed
Built on 1
  • digraph_is_orientedA digraph G : Digraph V on vertex type V is oriented (digraph_is_oriented G) if for all vertices u v : V, G.Adj u v implies ¬ G.Adj v u.
Used by 2

Read back from the Lean

For a type V and two directed graphs G and H on vertex type V, digraph_is_extension G H asserts that H is oriented (for all vertices u, v : V, if there is an edge from u to v in H, then there is no edge from v to u in H) and G ≤ H (under the partial order on Digraph V, i.e., every edge of G is an edge of H).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- A digraph H is an extension of G if H is an oriented supergraph of G. -/
def digraph_is_extension {V : Type*} (G H : Digraph V) : Prop := digraph_is_oriented H ∧ G ≤ H
See it in the graphDiscuss this resultChallenge it