Math Programmer (Lean 4)
Software engineeringPosted 13 days agovia Himalayas, a remote job board
- Work type
- RemoteOpen worldwide
- Experience
- Not stated
- Pay
- $60–120 an hour
- Posted
- 13 days ago
About the job
Math Programmer (Lean 4)
Pay: $60–$120/hour equivalent, paid per accepted task
Location: Global, fully remote
Job Type: Contractor
Time Commitment: 15+ hours per week
Schedule: Flexible
micro1 is looking for Math Programmers with practical Lean 4 experience to contribute to a project focused on improving advanced AI systems.
You will combine mathematical reasoning and programming to create challenging formal proof tasks, translate informal mathematics into Lean 4, write machine-checked reference solutions, evaluate generated proofs, and establish objective standards for correct solutions.
This opportunity is well suited to mathematics researchers, graduate students, mathematical programmers, theorem-proving specialists, and other candidates experienced in formalized mathematics. Prior professional AI-training experience is not required.
What You’ll Work On
- Create mathematical problems that must be solved using Lean 4.
- Translate informal mathematical statements into precise Lean definitions and theorem statements.
- Write complete, machine-checked reference proofs.
- Build self-contained and reproducible task environments.
- Evaluate generated Lean proofs for correctness, completeness, and alignment with the intended mathematical problem.
Public Proof of Skill
Strong applicants should provide evidence such as:
- Lean 4 repositories or formalization projects
- Mathlib contributions or pull requests
- Research papers, theses, or course materials involving formalized mathematics
- Open-source theorem-proving contributions
- Public mathematical software or computational projects
- Formalization competition, workshop, or educational work
Please provide your GitHub username and links to your strongest Lean 4 work.
Preferred Qualifications
- Contributions to mathlib or another established Lean project.
- Experience formalizing advanced mathematical results.
- Experience reviewing or maintaining other contributors’ Lean code.
Application Process
- Submit your application and explicitly describe your Lean 4 experience.
- Provide links to relevant Lean code, formalizations, publications, or public contributions.
- Complete an AI interview covering mathematical formalization, Lean 4, and programming.
- If experience is relevant, you'll be moved to hiring-manager review.
- If selected, complete onboarding and begin your first assigned task.
Compensation
- Compensation is output-based. Experts are paid for tasks that meet project specifications and quality requirements. Task availability and completion time may vary.
Originally posted on Himalayas
Interested?Math Programmer (Lean 4) at micro1
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Software engineering practice
Interview questions for this job
The ad names no skills we have questions for, so here is what Software engineering interviews usually cover: Software engineering practice.
When would you use the Builder Pattern?Software engineering practice
Below are some reasons arguing for the use of the pattern and example code in Java, but it is an implementation of the Builder Pattern covered by the Gang of Four in Design Patterns. The reasons you would use it in Java are also applicable to other programming languages as well.
As Joshua Bloch states in Effective Java, 2nd Edition:
The builder pattern is a good choice when designing classes whose constructors or static factories would have more than a handful of parameters.
We've all at some point encountered a class with a list of constructors where each addition adds a new option parameter:
Pizza(int size) { ... } Pizza(int size, boolean cheese) { ... } Pizza(int size, boolean cheese, boolean pepperoni) { ... } Pizza(int size, boolean cheese, boolean pepperoni, boolean bacon) { ... }This is called the Telescoping Constructor Pattern. The problem with this pattern is that once constructors are 4 or 5 parameters long it becomes difficult to remember the required order of the parameters as well as what particular constructor you might want in a given situation.
One alternative you have to the Telescoping Constructor Pattern is the JavaBean Pattern where you call a constructor with the mandatory parameters and then call any optional setters after:
Pizza pizza = new Pizza(12); pizza.setCheese(true); pizza.setPepperoni(true); pizza.setBacon(true);The problem here is that because the object is created over several calls it may be in an inconsistent state partway through its construction. This also requires a lot of extra effort to ensure thread safety.
The better alternative is to use the Builder Pattern.
public class Pizza { private int size; private boolean cheese; private boolean pepperoni; private boolean bacon; public static class Builder { //required private final int size; //optional private boolean cheese = false; private boolean pepperoni = false; private boolean bacon = false; public Builder(int size) { this.size = size; } public Builder cheese(boolean value) { cheese = value; return this; } public Builder pepperoni(boolean value) { pepperoni = value; return this; } public Builder bacon(boolean value) { bacon = value; return this; } public Pizza build() { return new Pizza(this); } } private Pizza(Builder builder) { size = builder.size; cheese = builder.cheese; pepperoni = builder.pepperoni; bacon = builder.bacon; } }Note that Pizza is immutable and that parameter values are all in a single location. Because the Builder's setter methods return the Builder object they are able to be chained.
Pizza pizza = new Pizza.Builder(12) .cheese(true) .pepperoni(true) .bacon(true) .build();This results in code that is easy to write and very easy to read and understand. In this example, the build method could be modified to check parameters after they have been copied from the builder to the Pizza object and throw an IllegalStateException if an invalid parameter value has been supplied. This pattern is flexible and it is easy to add more parameters to it in the future. It is really only useful if you are going to have more than 4 or 5 parameters for a constructor. That said, it might be worthwhile in the first place if you suspect you may be adding more parameters in the future.
I have borrowed heavily on this topic from the book Effective Java, 2nd Edition by Joshua Bloch. To learn more about this pattern and other effective Java practices I highly recommend it.
From Stack Overflow: asked by Charles Graham, answered by user2628 (CC BY-SA 3.0)
What technical details should a programmer of a web application consider before making the site public?Software engineering practice
The idea here is that most of us should already know most of what is on this list. But there just might be one or two items you haven't really looked into before, don't fully understand, or maybe never even heard of.
Interface and User Experience
- Be aware that browsers implement standards inconsistently and make sure your site works reasonably well across all major browsers. At a minimum test against a recent Gecko engine (Firefox), a WebKit engine (Safari and some mobile browsers), Chrome, your supported IE browsers (take advantage of the Application Compatibility VPC Images), and Opera. Also consider how browsers render your site in different operating systems.
- Consider how people might use the site other than from the major browsers: cell phones, screen readers and search engines, for example. — Some accessibility info: WAI and Section508, Mobile development: MobiForge.
- Staging: How to deploy updates without affecting your users. Have one or more test or staging environments available to implement changes to architecture, code or sweeping content and ensure that they can be deployed in a controlled way without breaking anything. Have an automated way of then deploying approved changes to the live site. This is most effectively implemented in conjunction with the use of a version control system (git, Subversion, etc.) and an automated build mechanism (Ant, NAnt, etc.).
- Don't display unfriendly errors directly to the user.
- Don't put users' email addresses in plain text as they will get spammed to death.
- Add the attribute
rel="nofollow"to user-generated links to avoid spam. - Build well-considered limits into your site - This also belongs under Security.
- Learn how to do progressive enhancement.
- Redirect after a POST if that POST was successful, to prevent a refresh from submitting again.
- Don't forget to take accessibility into account. It's always a good idea and in certain circumstances it's a legal requirement. WAI-ARIA and WCAG 2 are good resources in this area.
- Read Don't Make Me Think.
Security
Read the rest at the sourceFrom Software Engineering Stack Exchange: asked by Joel Coehoorn, answered by victoriah (CC BY-SA 4.0)
Singletons vs. Application Context in Android?Software engineering practice
I very much disagree with Dianne Hackborn's response. We are bit by bit removing all singletons from our project in favor of lightweight, task scoped objects which can easiliy be re-created when you actually need them.
Singletons are a nightmare for testing and, if lazily initialized, will introduce "state indeterminism" with subtle side effects (which may suddenly surface when moving calls to
getInstance()from one scope to another). Visibility has been mentioned as another problem, and since singletons imply "global" (= random) access to shared state, subtle bugs may arise when not properly synchronized in concurrent applications.I consider it an anti-pattern, it's a bad object-oriented style that essentially amounts to maintaining global state.
To come back to your question:
Although the app context can be considered a singleton itself, it is framework-managed and has a well defined life-cycle, scope, and access path. Hence I believe that if you do need to manage app-global state, it should go here, nowhere else. For anything else, rethink if you really need a singleton object, or if it would also be possible to rewrite your singleton class to instead instantiate small, short-lived objects that perform the task at hand.
From Stack Overflow: asked by Martín Schonaker, answered by mxk (CC BY-SA 3.0)
What is the difference between an interface and abstract class?Software engineering practice
Interfaces
An interface is a contract: The person writing the interface says, "hey, I accept things looking that way", and the person using the interface says "OK, the class I write looks that way".
An interface is an empty shell. There are only the signatures of the methods, which implies that the methods do not have a body. The interface can't do anything. It's just a pattern.
For example (pseudo code):
// I say all motor vehicles should look like this: interface MotorVehicle { void run(); int getFuel(); } // My team mate complies and writes vehicle looking that way class Car implements MotorVehicle { int fuel; void run() { print("Wrroooooooom"); } int getFuel() { return this.fuel; } }Implementing an interface consumes very little CPU, because it's not a class, just a bunch of names, and therefore there isn't any expensive look-up to do. It's great when it matters, such as in embedded devices.
Abstract classes
Abstract classes, unlike interfaces, are classes. They are more expensive to use, because there is a look-up to do when you inherit from them.
Abstract classes look a lot like interfaces, but they have something more: You can define a behavior for them. It's more about a person saying, "these classes should look like that, and they have that in common, so fill in the blanks!".
For example:
// I say all motor vehicles should look like this: abstract class MotorVehicle { int fuel; // They ALL have fuel, so lets implement this for everybody. int getFuel() { return this.fuel; } // That can be very different, force them to provide their // own implementation. abstract void run(); } // My teammate complies and writes vehicle looking that way class Car extends MotorVehicle { void run() { print("Wrroooooooom"); } }Implementation
While abstract classes and interfaces are supposed to be different concepts, the implementations make that statement sometimes untrue. Sometimes, they are not even what you think they are.
In Java, this rule is strongly enforced, while in PHP, interfaces are abstract classes with no method declared.
In Python, abstract classes are more a programming trick you can get from the ABC module and is actually using metaclasses, and therefore classes. And interfaces are more related to duck typing in this language and it's a mix between conventions and special methods that call descriptors (the
__method__methods).As usual with programming, there is theory, practice, and practice in another language
From Stack Overflow: asked by Sarfraz, answered by Bite code (CC BY-SA 4.0)
What are drawbacks or disadvantages of the singleton pattern?Software engineering practice
Paraphrased from Brian Button:
They are generally used as a global instance, why is that so bad? Because you hide the dependencies of your application in your code, instead of exposing them through the interfaces. Making something global to avoid passing it around is a code smell.
They violate the single responsibility principle: by virtue of the fact that they control their own creation and lifecycle.
They inherently cause code to be tightly coupled. This makes faking them out under test rather difficult in many cases.
They carry state around for the lifetime of the application. Another hit to testing since you can end up with a situation where tests need to be ordered which is a big no no for unit tests. Why? Because each unit test should be independent from the other.
From Stack Overflow: asked by Ewan Makepeace, answered by Jim Burger (CC BY-SA 3.0)
Why do you want to work for us?Behavioural
Employers want to see that you have a genuine interest in working for them by asking questions like:
- what do you know about our company?
- why do you think you're a good fit for our company?
- why do you want to work for us?
To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.
Show what you've learned about the company throughout the interview.From National Careers Service: interview advice (Open Government Licence v3.0)
