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

Closed values as unary pieces

Lax369799.ClosedUnaryLift · concepts/Lax369799/ClosedUnaryLift.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 nullary value can occur in a unary piece with an unused output variable. Its vertex can be initial or unmarked. Both operations preserve binary sums; unmarked vertices are retained during substitution.

    Concept map
    7 concepts; 1 descendant hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    Lean source view on GitHub

    1import Lax369799.FiniteSyntacticAlgebra
    2
    3/-!
    4---
    5title: Closed values as unary pieces
    6type: theorem
    7---
    8A nullary value can occur in a unary piece with an unused output variable.
    9Its vertex can be initial or unmarked. Both operations preserve binary
    10sums; unmarked vertices are retained during substitution.
    11-/
    12namespace Lax369799.ClosedUnaryLift
    13open RankedSystems (RankedSet)
    14open FinitePresentations FiniteSyntacticAlgebra
    15
    16def system {A : RankedSet} (initial : Bool) (c : A 0) : FiniteSystem A 1 where
    17 size := 1
    18 graph := {
    19 label := fun _ => ⟨0, c⟩
    20 initial := fun _ => initial = true
    21 root := ∅
    22 edge := fun _ _ _ => False
    23 direction_valid := fun _ _ _ h => False.elim h }
    24
    25def value {A : RankedSet} (E : Algebra A) (initial : Bool) (c : A 0) : A 1 :=
    26 E.eval 1 (system initial c)
    27
    28axiom preserves_sum {A : RankedSet} (E : Algebra A) (initial : Bool) (c d : A 0) :
    29 value E initial (sumValue E c d) = sumValue E (value E initial c) (value E initial d)
    30
    31end Lax369799.ClosedUnaryLift
    32
    Show Proof

    Discussion

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

    Loading discussion…