✨ ARCANUM RUNE DIFFICULTY: Adept Creational

The Builder

Step-by-step incantations to assemble complex Gallina Wards through progressive proof-weaving.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Builder
ARCANUM SCHOOL: Transmutation // Structuring
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
(* Gallina Ward: Builder *)
Require Import String.

Record Ward := mkWard {
  sigil : string;
  resonance : nat;
  active : bool
}.

Definition emptyWard : Ward := mkWard "" 0 false.

Definition setSigil (s: string) (w: Ward) : Ward :=
  {| sigil := s; resonance := w.(resonance); active := w.(active) |}.

Definition setResonance (r: nat) (w: Ward) : Ward :=
  {| sigil := w.(sigil); resonance := r; active := w.(active) |}.

Definition activate (w: Ward) : Ward :=
  {| sigil := w.(sigil); resonance := w.(resonance); active := true |}.

Definition cyberWard : Ward :=
  activate (setResonance 42 (setSigil "NeonHex" emptyWard)).
Runic Tags: #builder #gallina #wards