MoonBit Algebraic Data Types as Classical Universal Diagrams

Compiled directly from pure MoonBit (libs/silverfire_cat) — Product (β/η, schematic Signature / repo RawSignedSecp256k1), Coproduct (β/η, schematic Sig + Err / repo EcdsaVerifyOutcome ≅ 1 + String), and Curve Equalizer E_aff(𝔽ₚ) (AffinePointSecp256k1/P256) with secp256k1 (0, 1) ContradictoryWitness.

Download PNG (Vellum) Download PNG (Midnight) All 9 Diagrams
MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ) (E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | Digest: 8ce4036c63e97cf7eed9d43a8d36c5b10582bb847536e9d054b45482efa2a061MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ)(E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})PANEL 1 / 3 — Product: struct Signature { r, s } (schematic; repo: RawSigned)fgπ₁π₂∃! ⟨f, g⟩𝔽ₙr : Fn𝔽ₙs : FnZSignInputs𝔽ₙ × 𝔽ₙSignature { r, s }(schematic; repo: RawSigned)==PANEL 2 / 3 — Coproduct: Sig + Err (repo: EcdsaVerifyOutcome ≅ 1 + String)h₁h₂ι₁ι₂∃! [h₁, h₂]ErrInvalid(String)SigValid (repo: Valid ≅ 1)Tmatch outcomeSig + Errschematic; repo: 1 + String==PANEL 3 / 3 — Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256)∃! uey²mx³ + ax + bE_aff(𝔽ₚ)AffinePointSecp256k1 / P256𝔽ₚy² vs x³+ax+bZCandidate (x, y) if y²∘m =(x³+ax+b)∘m𝔽ₚ × 𝔽ₚ(Fp, Fp)=(β) π₁ ∘ ⟨f, g⟩ = f — Beta law (Product projection r; schematic Signature / repo RawSignedSecp256k1)(β) π₂ ∘ ⟨f, g⟩ = g — Beta law (Product projection s; schematic Signature / repo RawSignedSecp256k1)(η) ⟨π₁, π₂⟩ = id_(𝔽ₙ × 𝔽ₙ) — Eta uniqueness law for pairing ⟨f, g⟩[U] Product: struct Signature { r, s } (schematic; repo: RawSignedSecp256k1 / P256) | η: ⟨π₁, π₂⟩ = id(β) [h₁, h₂] ∘ ι₁ = h₁ — Beta law (Coproduct Valid branch; repo EcdsaVerifyOutcome::Valid = 1)(β) [h₁, h₂] ∘ ι₂ = h₂ — Beta law (Coproduct Invalid branch; repo EcdsaVerifyOutcome::Invalid(String))(η) [ι₁, ι₂] = id_(Sig + Err) — Eta uniqueness law for case match [h₁, h₂][U] Coproduct: Sig + Err (schematic; repo: EcdsaVerifyOutcome = 1 + String) | η: [ι₁, ι₂] = id(Eq) y² ∘ e = (x³ + ax + b) ∘ e — Equalizer condition on finite affine locus E_aff(𝔽ₚ) (full group E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})(Univ) y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = m — Universal factorization into E_aff(𝔽ₚ) (requires equalizer premise on m)[U] Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256; E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = m
MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ) (E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | Digest: 8ce4036c63e97cf7eed9d43a8d36c5b10582bb847536e9d054b45482efa2a061MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ)(E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})PANEL 1 / 3 — Product: struct Signature { r, s } (schematic; repo: RawSigned)fgπ₁π₂∃! ⟨f, g⟩𝔽ₙr : Fn𝔽ₙs : FnZSignInputs𝔽ₙ × 𝔽ₙSignature { r, s }(schematic; repo: RawSigned)==PANEL 2 / 3 — Coproduct: Sig + Err (repo: EcdsaVerifyOutcome ≅ 1 + String)h₁h₂ι₁ι₂∃! [h₁, h₂]ErrInvalid(String)SigValid (repo: Valid ≅ 1)Tmatch outcomeSig + Errschematic; repo: 1 + String==PANEL 3 / 3 — Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256)∃! uey²mx³ + ax + bE_aff(𝔽ₚ)AffinePointSecp256k1 / P256𝔽ₚy² vs x³+ax+bZCandidate (x, y) if y²∘m =(x³+ax+b)∘m𝔽ₚ × 𝔽ₚ(Fp, Fp)=(β) π₁ ∘ ⟨f, g⟩ = f — Beta law (Product projection r; schematic Signature / repo RawSignedSecp256k1)(β) π₂ ∘ ⟨f, g⟩ = g — Beta law (Product projection s; schematic Signature / repo RawSignedSecp256k1)(η) ⟨π₁, π₂⟩ = id_(𝔽ₙ × 𝔽ₙ) — Eta uniqueness law for pairing ⟨f, g⟩[U] Product: struct Signature { r, s } (schematic; repo: RawSignedSecp256k1 / P256) | η: ⟨π₁, π₂⟩ = id(β) [h₁, h₂] ∘ ι₁ = h₁ — Beta law (Coproduct Valid branch; repo EcdsaVerifyOutcome::Valid = 1)(β) [h₁, h₂] ∘ ι₂ = h₂ — Beta law (Coproduct Invalid branch; repo EcdsaVerifyOutcome::Invalid(String))(η) [ι₁, ι₂] = id_(Sig + Err) — Eta uniqueness law for case match [h₁, h₂][U] Coproduct: Sig + Err (schematic; repo: EcdsaVerifyOutcome = 1 + String) | η: [ι₁, ι₂] = id(Eq) y² ∘ e = (x³ + ax + b) ∘ e — Equalizer condition on finite affine locus E_aff(𝔽ₚ) (full group E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})(Univ) y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = m — Universal factorization into E_aff(𝔽ₚ) (requires equalizer premise on m)[U] Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256; E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = m
MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ) (E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | Digest: 8ce4036c63e97cf7eed9d43a8d36c5b10582bb847536e9d054b45482efa2a061MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ)(E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})PANEL 1 / 3 — Product: struct Signature { r, s } (schematic; repo: RawSigned)fgπ₁π₂∃! ⟨f, g⟩𝔽ₙr : Fn𝔽ₙs : FnZSignInputs𝔽ₙ × 𝔽ₙSignature { r, s }(schematic; repo: RawSigned)==PANEL 2 / 3 — Coproduct: Sig + Err (repo: EcdsaVerifyOutcome ≅ 1 + String)h₁h₂ι₁ι₂∃! [h₁, h₂]ErrInvalid(String)SigValid (repo: Valid ≅ 1)Tmatch outcomeSig + Errschematic; repo: 1 + String==PANEL 3 / 3 — Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256)∃! uey²mx³ + ax + bE_aff(𝔽ₚ)AffinePointSecp256k1 / P256𝔽ₚy² vs x³+ax+bZCandidate (x, y) if y²∘m =(x³+ax+b)∘m𝔽ₚ × 𝔽ₚ(Fp, Fp)=(β) π₁ ∘ ⟨f, g⟩ = f — Beta law (Product projection r; schematic Signature / repo RawSignedSecp256k1)(β) π₂ ∘ ⟨f, g⟩ = g — Beta law (Product projection s; schematic Signature / repo RawSignedSecp256k1)(η) ⟨π₁, π₂⟩ = id_(𝔽ₙ × 𝔽ₙ) — Eta uniqueness law for pairing ⟨f, g⟩[U] Product: struct Signature { r, s } (schematic; repo: RawSignedSecp256k1 / P256) | η: ⟨π₁, π₂⟩ = id(β) [h₁, h₂] ∘ ι₁ = h₁ — Beta law (Coproduct Valid branch; repo EcdsaVerifyOutcome::Valid = 1)(β) [h₁, h₂] ∘ ι₂ = h₂ — Beta law (Coproduct Invalid branch; repo EcdsaVerifyOutcome::Invalid(String))(η) [ι₁, ι₂] = id_(Sig + Err) — Eta uniqueness law for case match [h₁, h₂][U] Coproduct: Sig + Err (schematic; repo: EcdsaVerifyOutcome = 1 + String) | η: [ι₁, ι₂] = id(Eq) y² ∘ e = (x³ + ax + b) ∘ e — Equalizer condition on finite affine locus E_aff(𝔽ₚ) (full group E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})(Univ) y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = m — Universal factorization into E_aff(𝔽ₚ) (requires equalizer premise on m)[U] Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256; E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = mTarget: e_eq — REJECTED COUNTERFACTUAL [ContradictoryWitness]: Factor off-curve secp256k1 (0, 1) through E_aff(𝔽ₚ)Contradictory 2-cell witness: commuting closure from 'cf_eq_fork' identifies paths of non-commuting witness 'cf_off_curve_01'
MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ) (E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | Digest: 8ce4036c63e97cf7eed9d43a8d36c5b10582bb847536e9d054b45482efa2a061MoonBit Algebraic Data Types as Universal Diagrams (Silverfire ECDSA)ECDSA Algebraic Data Types | Mac Lane universal properties: Product (β/η), Coproduct (β/η), and Affine Curve Equalizer E_aff(𝔽ₚ)(E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})PANEL 1 / 3 — Product: struct Signature { r, s } (schematic; repo: RawSigned)fgπ₁π₂∃! ⟨f, g⟩𝔽ₙr : Fn𝔽ₙs : FnZSignInputs𝔽ₙ × 𝔽ₙSignature { r, s }(schematic; repo: RawSigned)==PANEL 2 / 3 — Coproduct: Sig + Err (repo: EcdsaVerifyOutcome ≅ 1 + String)h₁h₂ι₁ι₂∃! [h₁, h₂]ErrInvalid(String)SigValid (repo: Valid ≅ 1)Tmatch outcomeSig + Errschematic; repo: 1 + String==PANEL 3 / 3 — Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256)∃! uey²mx³ + ax + bE_aff(𝔽ₚ)AffinePointSecp256k1 / P256𝔽ₚy² vs x³+ax+bZCandidate (x, y) if y²∘m =(x³+ax+b)∘m𝔽ₚ × 𝔽ₚ(Fp, Fp)=(β) π₁ ∘ ⟨f, g⟩ = f — Beta law (Product projection r; schematic Signature / repo RawSignedSecp256k1)(β) π₂ ∘ ⟨f, g⟩ = g — Beta law (Product projection s; schematic Signature / repo RawSignedSecp256k1)(η) ⟨π₁, π₂⟩ = id_(𝔽ₙ × 𝔽ₙ) — Eta uniqueness law for pairing ⟨f, g⟩[U] Product: struct Signature { r, s } (schematic; repo: RawSignedSecp256k1 / P256) | η: ⟨π₁, π₂⟩ = id(β) [h₁, h₂] ∘ ι₁ = h₁ — Beta law (Coproduct Valid branch; repo EcdsaVerifyOutcome::Valid = 1)(β) [h₁, h₂] ∘ ι₂ = h₂ — Beta law (Coproduct Invalid branch; repo EcdsaVerifyOutcome::Invalid(String))(η) [ι₁, ι₂] = id_(Sig + Err) — Eta uniqueness law for case match [h₁, h₂][U] Coproduct: Sig + Err (schematic; repo: EcdsaVerifyOutcome = 1 + String) | η: [ι₁, ι₂] = id(Eq) y² ∘ e = (x³ + ax + b) ∘ e — Equalizer condition on finite affine locus E_aff(𝔽ₚ) (full group E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪})(Univ) y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = m — Universal factorization into E_aff(𝔽ₚ) (requires equalizer premise on m)[U] Equalizer: E_aff(𝔽ₚ) (AffinePointSecp256k1 / P256; E(𝔽ₚ) = E_aff(𝔽ₚ) ∪ {𝒪}) | y² ∘ m = (x³ + ax + b) ∘ m ⇒ ∃! u, e ∘ u = mTarget: e_eq — REJECTED COUNTERFACTUAL [ContradictoryWitness]: Factor off-curve secp256k1 (0, 1) through E_aff(𝔽ₚ)Contradictory 2-cell witness: commuting closure from 'cf_eq_fork' identifies paths of non-commuting witness 'cf_off_curve_01'

Classical tikz-cd / Mac Lane rendering: bare mathematical serif objects on open paper, hooked monomorphisms (↪), unique dashed mediating morphisms (∃! ⇢), exact (β), (η), (Eq), and (Univ) laws, and real repo source paths (libs/crypto_ecdsa/rfc6979.mbt, libs/crypto_ecdsa/verify.mbt, libs/crypto_curve/secp256k1.mbt). Toggle the counterfactual button above to inspect the path-congruence rejection of off-curve candidate (0, 1) (1² = 1 ≠ 7 = 0³ + 7).