Wei-Lin Wu
Research Scientist · A*STAR, Singapore · Ph.D. in Computer Science, University of California Santa Cruz
CV · GitHub · LinkedIn
I am Research Scientist at A*STAR, Singapore, where I am fortunate to be supervised by Yong Kiam Tan. I work on formal verification and automated reasoning: interactive theorem proving (mainly in HOL4, also Lean), verified constraint solving, and pseudo-Boolean proof logging and certification.
I received my Ph.D. in Computer Science from UC Santa Cruz, where I was fortunate to have Professor Phokion G. Kolaitis as my advisor and worked on mathematical logic and finite model theory. Here's my CV for your reference.
I'm from Tainan, Taiwan (a city where Jensen Huang and Lisa Su were born).
Wir müssen wissen, wir werden wissen. (We must know, we will know.) — David Hilbert
Current Research: Formal Verification
My research interests include automated reasoning, formal verification, constraint programming, theorem proving, and proof logging and certification.
Combinatorial solvers (SAT, constraint programming, pseudo-Boolean) are highly optimized and complex, so how can we trust their answers? One approach is proof logging: the solver emits a certificate alongside its answer, and a small, independently trusted checker verifies it. The VeriPB proof system does this using pseudo-Boolean reasoning, and its formally verified checker, CakePB, is built and proved correct in the CakeML verified-compiler ecosystem in the HOL4 theorem prover.
For a constraint-programming problem, however, the solver first has to translate the high-level constraints into pseudo-Boolean form, and that translation was itself an unverified link in the chain of trust. My current work closes this gap:
- I formalized in HOL4 the semantics of constraint satisfaction, optimization, and enumeration problems.
- I built verified constraint-programming-to-pseudo-Boolean (CP-to-PB) encoders and proved them sound and complete. They form the verified front end of an end-to-end trustworthy constraint-solving pipeline, open-sourced in the CakeML repository.
This work was done with colleagues at A*STAR and collaborators at Chalmers University of Technology, Lund University, the University of Copenhagen, and the University of Glasgow, and is currently under review.
Other things I'm involved in:
- I lead a study group on Logic and Mechanized Reasoning, which covers Lean programming and theorem proving as well as SMT solving (Z3, cvc5). We meet weekly.
- I co-supervise undergraduate students at Nanyang Technological University on URECA research projects in mathematical logic and graph homomorphisms.
Projects
- RIPEMD-160 in HOL4: an implementation of the RIPEMD-160 cryptographic hash function with machine-checked correctness proofs. It was merged into the official HOL4 distribution.
- Annotations to “Mathematical Logic”: annotations and a complete solutions manual for the textbook by H.-D. Ebbinghaus, J. Flum and W. Thomas (2nd edition, Springer).
Ph.D. Research: Logic and Finite Model Theory
Many years ago, I taught myself mathematical logic using the excellent textbook Mathematical Logic, 2nd edition by H.-D. Ebbinghaus, J. Flum and W. Thomas. What brought me to this area were the famous Gödel's Incompleteness Theorems. Take any axiomatization of first-order arithmetic (with +, ×, 0, 1) that is consistent, decidable, and lets every computable function ƒ over the natural numbers N be represented by a first-order formula δƒ. The first theorem says that such an axiomatization is incomplete: some statement is true of N but cannot be proved from it. The second theorem says that if the axiomatization also contains first-order Peano arithmetic, then its own consistency, written as a first-order sentence, is one of these unprovable statements. The first theorem is closely related to the undecidable Halting Problem. In fact, (theoretical) computer science grew out of mathematical logic as a spin-off of the search for a way out of the foundational crisis of mathematics.
During my Ph.D., I worked on finite model theory, an area of logic in computer science whose themes include
- 0-1 laws of logics,
- definability of classes of finite structures (such as graphs or relational databases) in certain logics, and
- identification of complexity classes with logics (a subfield known as descriptive complexity).
My dissertation, A Study of the Expressive Power of Homomorphism Counts, connects finite model theory with homomorphism counts. A relational structure is determined up to isomorphism by its homomorphism counts. More precisely, let hom(C, A) be the number of homomorphisms from C to A. Then two relational structures A and B are isomorphic if and only if hom(C, A) = hom(C, B) for every relational structure C. This is Lovász's Theorem (by L. Lovász). A parallel result, due to S. Chaudhuri and M. Y. Vardi, says that A and B are isomorphic if and only if hom(A, C) = hom(B, C) for every relational structure C. These results motivate the following questions:
- Take an equivalence relation on graphs (viewed as relational structures) that is coarser than isomorphism. Which class F captures it, in the sense that two graphs A and B are equivalent if and only if hom(C, A) = hom(C, B) for every graph C in F? See, e.g., [2] in the References below for a discussion in this vein. The dual question asks for which class F two graphs A and B are equivalent if and only if hom(A, C) = hom(B, C) for every graph C in F.
- Given a class C of graphs, are there a positive integer k, graphs F1,..., Fk, and a set X of k-tuples of natural numbers, all fixed and depending only on C, such that every graph A is in C if and only if the k-tuple (hom(F1, A),..., hom(Fk, A)) is in X? The dual question uses (hom(A, F1),..., hom(A, Fk)) instead. See [1] in the References below for an in-depth treatment.
See the Publications section below for my results on these questions. Check out this video for a brief explanation. As a reference textbook, I highly recommend Graphs and Homomorphisms by P. Hell and J. Nešetřil.
References
[1] Yijia Chen, Jörg Flum, Mingjun Liu, and Zhiyang Xun. On algorithms based on finitely many homomorphism counts. In 47th International Symposium on Mathematical Foundations of Computer Science (MFCS 2022). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2022.
[2] Holger Dell, Martin Grohe, and Gaurav Rattan. Lovász meets Weisfeiler and Leman. In Ioannis Chatzigiannakis, Christos Kaklamanis, Dániel Marx, and Donald Sannella, editors, 45th International Colloquium on Automata, Languages, and Programming, ICALP 2018, July 9-13, 2018, Prague, Czech Republic, volume 107 of LIPIcs, pages 40:1-40:14. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2018.
Publications
Authors are listed alphabetically, following the convention of theoretical computer science.
- Under review: a paper on formally verified pseudo-Boolean encodings and proof logging for certified constraint-programming solvers, with colleagues at A*STAR and collaborators at Chalmers, Lund, Copenhagen, and Glasgow.
- B. ten Cate, V. Dalmau, Ph. G. Kolaitis, and W.-L. Wu. When Do Homomorphism Counts Help in Query Algorithms? In 27th International Conference on Database Theory (ICDT 2024), LIPIcs, volume 290, pages 8:1-8:20, 2024. (arXiv)
- W.-L. Wu. Query Algorithms Based on Homomorphism Counts. In Structure Meets Power Workshop, ICALP 2022 (Extended Abstract), pages 24-26, 2022.
- A. Atserias, Ph. G. Kolaitis, and W.-L. Wu. On the Expressive Power of Homomorphism Counts. In 36th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2021, Rome, Italy, pages 1-13. IEEE, 2021.
Talks
- Invited Talk, Logic in Computer Science Special Session of the 2024 ASL Annual Meeting, Iowa State University, Iowa, USA: A Study of the Expressive Power of Homomorphism Counts, 2024.
- Contributed Talk, Structure Meets Power Workshop ICALP 2022, Paris, France (virtual): Query Algorithms Based on Homomorphism Counts, 2022.
- Contributed Talk, Finite and Algorithmic Model Theory Seminar 22051, Schloss Dagstuhl, Germany (invited participant): On Capturing Some Equivalence Relations by Homomorphism Counts, 2022.
- Presentation, 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2021), Rome, Italy (virtual): On the Expressive Power of Homomorphism Counts, 2021.
Service
- Journal reviewer: Information and Computation (Elsevier), 2026; ACM Transactions on Computation Theory, 2025.
Theorem Provers and Programming
- Theorem provers: HOL4 (my main tool these days), Lean, and Agda, which I used years ago at Academia Sinica to formalize proofs in set theory. I also use the SMT solvers Z3 and cvc5.
- Standard ML. HOL4 and CakeML live in the ML family, so I write SML daily.
- Haskell. It is purely functional and one of my favorite languages. Because its syntax (and semantics) look like mathematics, I think it should be a top choice for mathematicians who want to learn programming.
- C. It is the first programming language I learned in depth, and I like seeing what goes on under the hood through pointers and memory management. One of my favorite books on C programming is C: A Reference Manual, 5th edition by G. L. Steele and S. P. Harbison. (I also used Objective-C, a related language, as an iOS app developer years ago.)
- Python. It is popular and flexible, and I mainly use it to try out ideas.
- Prolog. I learned this logic programming language (as the name suggests) as a TA for CSE 112 Comparative Programming Languages in 2019, and I'm sure logicians would love it.
Besides these, I use LaTeX daily to typeset research documents, and occasionally Bash, AppleScript, and Automator to automate things. Yes, I'm a Mac user.
Teaching Experience
I have served as a teaching assistant for the following courses at UC Santa Cruz:
- CMPS 130 Computational Models, Fall 2017
- CMPS 102 Introduction to Analysis of Algorithms, Spring 2018
- CMPS 130 Computational Models, Fall 2018
- CMPS 5J Introduction to Programming in Java, Winter 2019
- CMPS 130 Computational Models, Spring 2019
- CSE 112 Comparative Programming Languages, Fall 2019
- CSE 103 Computational Models, Winter 2020
- CSE 103 Computational Models, Fall 2020
- CSE 103 Computational Models, Winter 2021
- CSE 103 Computational Models, Fall 2021
- CSE 30 Programming Abstractions: Python, Summer 2022
- CSE 103 Computational Models, Fall 2022
Education
- Ph.D., Computer Science, University of California Santa Cruz, USA, 2023. Dissertation: A Study of the Expressive Power of Homomorphism Counts
- M.S., Computer Science and Information Engineering, National Taiwan University, Taiwan, 2009
- B.S., Electrical Engineering, National Cheng Kung University, Taiwan, 2007
Hobbies
Hiking, biking, swimming, photography, language learning (human languages or programming languages), linguistics, etymology.