The Prototype
Create new conceptual entities by cloning an existing prototypical entity in Higher-Order Logic.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Conjuration // Replication
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ISABELLE PATTERN //
theory Prototype
imports Main
begin
record summon =
creature_type :: string
power_level :: nat
definition clone_summon :: "summon \<Rightarrow> summon" where
"clone_summon s = s"
definition empower_clone :: "summon \<Rightarrow> summon" where
"empower_clone s = s \<lparr> power_level := power_level s + 10 \<rparr>"
end
Runic Tags:
#isabelle
#hol
#conjuration
#design-patterns