AFTD Auto-Formalizing Theoretical Domains

normalized_laplacian

def

The normalized Laplacian of a simple graph G on a finite type is the real matrix whose (u, v) entry is 1 if u = v and deg(u) > 0, -1 / Real.sqrt (deg(u) * deg(v)) if u is adjacent to v, and 0 otherwise.

Statement

noncomputable def normalized_laplacian {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] : Matrix V V ℝ
Defined in
arXiv:2611.28984 Sec. 2
Verified
28 Nov 2026
Axioms
none listed
Used by 1
  • quantum_walk_matrixFor a simple graph G and real time t, the continuous-time quantum walk transition matrix U(t) associated with the normalized Laplacian is…

Read back from the Lean

Given a finite type V with decidable equality and a simple graph G on V with decidable adjacency, normalized_laplacian G is the V × V real matrix whose (u, v) entry is: - 0, if u = v and G.degree u = 0; - 1, if u = v and G.degree u ≠ 0; - -1 / Real.sqrt (G.degree u * G.degree v), if u ≠ v and u is adjacent to v in G; - 0, if u ≠ v and u is not adjacent to v in G.

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

/-- The normalized Laplacian matrix of a simple graph on a finite type. -/
noncomputable def normalized_laplacian {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] : Matrix V V ℝ :=
  Matrix.of fun u v =>
    if u = v then (if G.degree u = 0 then 0 else 1)
    else if G.Adj u v then -1 / Real.sqrt (G.degree u * G.degree v)
    else 0
See it in the graphDiscuss this resultChallenge it