⚙️ ISABELLE RUNE DIFFICULTY: Apprentice Structural

The Facade

Provide a unified interface to a set of interfaces in a theory, hiding the underlying complexity of the proof system.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Transmutation // Simplification
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ISABELLE PATTERN //
theory Facade
  imports Main
begin

definition complex_subsystem_a :: "nat \<Rightarrow> nat" where "complex_subsystem_a x = x ^ 2"
definition complex_subsystem_b :: "nat \<Rightarrow> nat" where "complex_subsystem_b x = x * 3"

definition magic_facade :: "nat \<Rightarrow> nat" where
  "magic_facade x = complex_subsystem_a (complex_subsystem_b x) + 10"

end
Runic Tags: #isabelle #hol #transmutation #design-patterns