While this submission is a draft, it cannot be used by other submissions.

The initial-label algebra

Lax369799.InitialAlgebra · concepts/Lax369799/InitialAlgebra.lean · lax-369799

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Theorem

    A constant ranked set carries an algebra that reads only the label of the initial vertex. Finite instances recognize initial-vertex predicates.

    Concept map
    5 concepts; 2 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    This concept declares 2 statements. Each proof establishes one of them relative to its assumptions.

    Lean source view on GitHub

    1import Lax369799.Algebras
    2
    3/-!
    4---
    5title: The initial-label algebra
    6type: theorem
    7---
    8A constant ranked set carries an algebra that reads only the label of the
    9initial vertex. Finite instances recognize initial-vertex predicates.
    10-/
    11namespace Lax369799.InitialAlgebra
    12open RankedSystems Algebras
    13
    14noncomputable def initial {A : RankedSet} {n : ℕ} (S : System A n) : S.val.Vertex :=
    15 Classical.choose S.property.1
    16
    17noncomputable def evaluate {C : Type} (n : ℕ) (S : System (fun _ => C) n) : C :=
    18 (S.val.graph.label (initial S)).2
    19
    20axiom algebra (C : Type) : ∃ E : Algebra (fun _ => C), E.eval = evaluate
    21
    22axiom recognizes {A : RankedSet} (p : ∀ n, A n → Prop) :
    23 Recognizable {S : System A 0 | p _ (S.val.graph.label (initial S)).2}
    24
    25end Lax369799.InitialAlgebra
    26
    Show ProofShow Proof
    Builds on
    Used by
    From Mathlib

    none

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…