{"id":{"repo_id":"heriot-watt","oai_identifier":"oai:ros.hw.ac.uk:10399/5486"},"canonical_url":"https://search.ndltd.org/etd/heriot-watt/oai:ros.hw.ac.uk:10399/5486","repository":{"repo_id":"heriot-watt","name":"Heriot-Watt University","base_url":"https://www.ros.hw.ac.uk/oai/request"},"display":{"title":"Functional approaches to evolutionary program synthesis : from evolvability and robustness to fitness using discovered properties","abstract":"Evolutionary Program Synthesis (EPS) has historically been dominated by the imperative programming paradigm. While effective, imperative languages rely heavily on mutable state and sequential execution, creating high context dependency between instructions. This thesis investigates the Functional Programming paradigm as an alternative substrate for evolution, positing that its inherent properties — specifically immutability, purity, and higher-order abstractions — offer a more expressive, composable and robust search space for Genetic Programming (GP). The research begins by developing a Grammar-Guided GP system targeting Haskell. Through a comparative study against an imperative Python baseline on the General Program Synthesis Benchmark Suite, the functional approach demonstrates superior generalisation and solution interpretability. An important finding of this stage is the essential role of evolving lambda abstractions; standard higher-order functions alone are insufficient for complex tasks without the ability to synthesise novel logic within them. Following this, the thesis introduces a linear representation, Functional Attributed Grammatical Evolution, which utilises functional grammars and depth attributes to mitigate the mapping fragility and invalidity issues often associated with Grammatical Evolution, though tree-based representations are found to retain superior locality. During the course of this research, the emergence of Large Language Models (LLMs) fundamentally shifted the program synthesis research area. Empirical analysis presented here shows that reasoning-capable LLMs can effectively solve standard synthesis bench marks, motivating a pivot in the application of EPS towards open-ended, exploratory domains. This is demonstrated through a case study in adversarial policy discovery within Deep Reinforcement Learning (RL) environments. In this domain, the functional GP system successfully evolves interpretable, symbolic agents that exploit vulnerabilities in state-of-the-art RL agents — a task where both imperative GP and an iterative LLM search failed. Finally, the thesis proposes a hybrid framework to combine the strengths of both paradigms. Rather than competing with LLMs on code generation, the system leverages them to infer semantic properties from input-output examples. These properties are integrated into a property-based fitness function, guiding the evolutionary search toward more generalisable solutions on tasks from the Abstraction and Reasoning Corpus. Collectively, this work establishes that functional abstractions enhance the evolvability of code and that GP remains a capable tool for novel discovery in the LLM era.","abstract_html":"Evolutionary Program Synthesis (EPS) has historically been dominated by the imperative programming paradigm. While effective, imperative languages rely heavily on mutable state and sequential execution, creating high context dependency between instructions. This thesis investigates the Functional Programming paradigm as an alternative substrate for evolution, positing that its inherent properties — specifically immutability, purity, and higher-order abstractions — offer a more expressive, composable and robust search space for Genetic Programming (GP). The research begins by developing a Grammar-Guided GP system targeting Haskell. Through a comparative study against an imperative Python baseline on the General Program Synthesis Benchmark Suite, the functional approach demonstrates superior generalisation and solution interpretability. An important finding of this stage is the essential role of evolving lambda abstractions; standard higher-order functions alone are insufficient for complex tasks without the ability to synthesise novel logic within them. Following this, the thesis introduces a linear representation, Functional Attributed Grammatical Evolution, which utilises functional grammars and depth attributes to mitigate the mapping fragility and invalidity issues often associated with Grammatical Evolution, though tree-based representations are found to retain superior locality. During the course of this research, the emergence of Large Language Models (LLMs) fundamentally shifted the program synthesis research area. Empirical analysis presented here shows that reasoning-capable LLMs can effectively solve standard synthesis bench marks, motivating a pivot in the application of EPS towards open-ended, exploratory domains. This is demonstrated through a case study in adversarial policy discovery within Deep Reinforcement Learning (RL) environments. In this domain, the functional GP system successfully evolves interpretable, symbolic agents that exploit vulnerabilities in state-of-the-art RL agents — a task where both imperative GP and an iterative LLM search failed. Finally, the thesis proposes a hybrid framework to combine the strengths of both paradigms. Rather than competing with LLMs on code generation, the system leverages them to infer semantic properties from input-output examples. These properties are integrated into a property-based fitness function, guiding the evolutionary search toward more generalisable solutions on tasks from the Abstraction and Reasoning Corpus. Collectively, this work establishes that functional abstractions enhance the evolvability of code and that GP remains a capable tool for novel discovery in the LLM era.","abstract_has_math":false,"creators":["Garrow, Fraser"],"institution":"Heriot-Watt University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Lones, Professor Michael","Stewart, Associate Professor Rob"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-06","date_published":"2026-06","updated_at":"2026-11-26T14:09:48Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://www.ros.hw.ac.uk/handle/10399/5486","outbound_label":"Repository record","outbound_source":"dc:identifier.uri","record_url":"https://www.ros.hw.ac.uk/handle/10399/5486","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aheriot-watt%3Aoai%3Aros.hw.ac.uk%3A10399%2F5486","prefix":"oai_dc"},"source_record":{"url":"https://www.ros.hw.ac.uk/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aros.hw.ac.uk%3A10399%2F5486","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Lones, Professor Michael","Stewart, Associate Professor Rob"]},{"key":"dc:creator","label":"Author","values":["Garrow, Fraser"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-09-15T11:05:12Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-06"]},{"key":"dc:publisher","label":"Institution","values":["Heriot-Watt University","Mathematical and Computer Sciences"]},{"key":"dc:type","label":"Dc Type","values":["Doctor of Philosophy"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://www.ros.hw.ac.uk/handle/10399/5486"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Evolutionary Program Synthesis (EPS) has historically been dominated by the imperative programming paradigm. While effective, imperative languages rely heavily on mutable state and sequential execution, creating high context dependency between instructions. This thesis investigates the Functional Programming paradigm as an alternative substrate for evolution, positing that its inherent properties — specifically immutability, purity, and higher-order abstractions — offer a more expressive, composable and robust search space for Genetic Programming (GP). The research begins by developing a Grammar-Guided GP system targeting Haskell. Through a comparative study against an imperative Python baseline on the General Program Synthesis Benchmark Suite, the functional approach demonstrates superior generalisation and solution interpretability. An important finding of this stage is the essential role of evolving lambda abstractions; standard higher-order functions alone are insufficient for complex tasks without the ability to synthesise novel logic within them. Following this, the thesis introduces a linear representation, Functional Attributed Grammatical Evolution, which utilises functional grammars and depth attributes to mitigate the mapping fragility and invalidity issues often associated with Grammatical Evolution, though tree-based representations are found to retain superior locality. During the course of this research, the emergence of Large Language Models (LLMs) fundamentally shifted the program synthesis research area. Empirical analysis presented here shows that reasoning-capable LLMs can effectively solve standard synthesis bench marks, motivating a pivot in the application of EPS towards open-ended, exploratory domains. This is demonstrated through a case study in adversarial policy discovery within Deep Reinforcement Learning (RL) environments. In this domain, the functional GP system successfully evolves interpretable, symbolic agents that exploit vulnerabilities in state-of-the-art RL agents — a task where both imperative GP and an iterative LLM search failed. Finally, the thesis proposes a hybrid framework to combine the strengths of both paradigms. Rather than competing with LLMs on code generation, the system leverages them to infer semantic properties from input-output examples. These properties are integrated into a property-based fitness function, guiding the evolutionary search toward more generalisable solutions on tasks from the Abstraction and Reasoning Corpus. Collectively, this work establishes that functional abstractions enhance the evolvability of code and that GP remains a capable tool for novel discovery in the LLM era."]},{"key":"dc:description.sponsorship","label":"Dc Description Sponsorship","values":["Engineering and Physical Sciences Research Council (EPSRC) Grant ID: EP/S023208/1"]},{"key":"dc:title","label":"Title","values":["Functional approaches to evolutionary program synthesis : from evolvability and robustness to fitness using discovered properties"]}]}],"canonical_facts":{"dc:contributor.advisor":["Lones, Professor Michael","Stewart, Associate Professor Rob"],"dc:creator":["Garrow, Fraser"],"dc:date.accessioned":["2026-09-15T11:05:12Z"],"dc:date.issued":["2026-06"],"dc:description.abstract":["Evolutionary Program Synthesis (EPS) has historically been dominated by the imperative programming paradigm. While effective, imperative languages rely heavily on mutable state and sequential execution, creating high context dependency between instructions. This thesis investigates the Functional Programming paradigm as an alternative substrate for evolution, positing that its inherent properties — specifically immutability, purity, and higher-order abstractions — offer a more expressive, composable and robust search space for Genetic Programming (GP). The research begins by developing a Grammar-Guided GP system targeting Haskell. Through a comparative study against an imperative Python baseline on the General Program Synthesis Benchmark Suite, the functional approach demonstrates superior generalisation and solution interpretability. An important finding of this stage is the essential role of evolving lambda abstractions; standard higher-order functions alone are insufficient for complex tasks without the ability to synthesise novel logic within them. Following this, the thesis introduces a linear representation, Functional Attributed Grammatical Evolution, which utilises functional grammars and depth attributes to mitigate the mapping fragility and invalidity issues often associated with Grammatical Evolution, though tree-based representations are found to retain superior locality. During the course of this research, the emergence of Large Language Models (LLMs) fundamentally shifted the program synthesis research area. Empirical analysis presented here shows that reasoning-capable LLMs can effectively solve standard synthesis bench marks, motivating a pivot in the application of EPS towards open-ended, exploratory domains. This is demonstrated through a case study in adversarial policy discovery within Deep Reinforcement Learning (RL) environments. In this domain, the functional GP system successfully evolves interpretable, symbolic agents that exploit vulnerabilities in state-of-the-art RL agents — a task where both imperative GP and an iterative LLM search failed. Finally, the thesis proposes a hybrid framework to combine the strengths of both paradigms. Rather than competing with LLMs on code generation, the system leverages them to infer semantic properties from input-output examples. These properties are integrated into a property-based fitness function, guiding the evolutionary search toward more generalisable solutions on tasks from the Abstraction and Reasoning Corpus. Collectively, this work establishes that functional abstractions enhance the evolvability of code and that GP remains a capable tool for novel discovery in the LLM era."],"dc:description.sponsorship":["Engineering and Physical Sciences Research Council (EPSRC) Grant ID: EP/S023208/1"],"dc:identifier.uri":["https://www.ros.hw.ac.uk/handle/10399/5486"],"dc:language.iso":["en"],"dc:publisher":["Heriot-Watt University","Mathematical and Computer Sciences"],"dc:title":["Functional approaches to evolutionary program synthesis : from evolvability and robustness to fitness using discovered properties"],"dc:type":["Doctor of Philosophy"]},"updated_at":"2026-11-26T14:09:48Z"}