Lean 4 Developer
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
Lean 4 Developer
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 developers with practical Lean 4 experience to contribute to a project focused on improving advanced AI systems.
You will use Lean 4 and your software-development or formal-verification expertise to create challenging technical tasks, implement machine-checked reference solutions, evaluate generated code, and establish objective standards for correct solutions.
This opportunity is suited to Lean developers, formal verification engineers, proof-assistant developers, programming-languages researchers, and software engineers working with machine-checked systems. Prior professional AI-training experience is not required.
What You’ll Work On
- Create technical tasks involving Lean 4 programming, formal verification, and machine-checked reasoning.
- Develop precise specifications, definitions, theorem statements, and reference solutions.
- Build self-contained and reproducible Lean projects.
- Evaluate generated Lean code for correctness and identify type errors, dependency issues, failed tactics, or incorrect abstractions.
Public Proof of Skill
Strong applicants should provide evidence such as:
- Public Lean 4 repositories
- Mathlib or Lean ecosystem contributions
- Formal verification projects
- Lean tactics, libraries, tooling, or metaprogramming projects
- Research papers or technical reports involving proof assistants
- Open-source programming-language or verification contributions
Please provide your GitHub username and links to your strongest Lean 4 work.
Preferred Qualifications
- Contributions to mathlib, Lean, or another established Lean project.
- Experience building or maintaining substantial Lean codebases.
- Experience with Lean metaprogramming, tactic development, or formal verification.
Application Process
- Submit your application and describe your Lean 4 development experience.
- Provide links to relevant repositories, pull requests, publications, or technical projects.
- Complete an AI interview covering Lean development, debugging, 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?Lean 4 Developer 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.
What is the difference between an abstract method and a virtual method?Software engineering practice
An abstract function cannot have functionality. You're basically saying, any child class MUST give their own version of this method, however it's too general to even try to implement in the parent class.
A virtual function, is basically saying look, here's the functionality that may or may not be good enough for the child class. So if it is good enough, use this method, if not, then override me, and provide your own functionality.
From Stack Overflow: asked by Moran Helman, answered by BFree (CC BY-SA 3.0)
Where did the notion of "one return only" come from?Software engineering practice
"Single Entry, Single Exit" was written when most programming was done in assembly language, FORTRAN, or COBOL. It has been widely misinterpreted, because modern languages do not support the practices Dijkstra was warning against.
"Single Entry" meant "do not create alternate entry points for functions". In assembly language, of course, it is possible to enter a function at any instruction. FORTRAN supported multiple entries to functions with the
ENTRYstatement:SUBROUTINE S(X, Y) R = SQRT(X*X + Y*Y) C ALTERNATE ENTRY USED WHEN R IS ALREADY KNOWN ENTRY S2(R) ... RETURN END C USAGE CALL S(3,4) C ALTERNATE USAGE CALL S2(5)"Single Exit" meant that a function should only return to one place: the statement immediately following the call. It did not mean that a function should only return from one place. When Structured Programming was written, it was common practice for a function to indicate an error by returning to an alternate location. FORTRAN supported this via "alternate return":
C SUBROUTINE WITH ALTERNATE RETURN. THE '*' IS A PLACE HOLDER FOR THE ERROR RETURN SUBROUTINE QSOLVE(A, B, C, X1, X2, *) DISCR = B*B - 4*A*C C NO SOLUTIONS, RETURN TO ERROR HANDLING LOCATION IF DISCR .LT. 0 RETURN 1 SD = SQRT(DISCR) DENOM = 2*A X1 = (-B + SD) / DENOM X2 = (-B - SD) / DENOM RETURN END C USE OF ALTERNATE RETURN CALL QSOLVE(1, 0, 1, X1, X2, *99) C SOLUTION FOUND ... C QSOLVE RETURNS HERE IF NO SOLUTIONS 99 PRINT 'NO SOLUTIONS'Both these techniques were highly error prone. Use of alternate entries often left some variable uninitialized. Use of alternate returns had all the problems of a GOTO statement, with the additional complication that the branch condition was not adjacent to the branch, but somewhere in the subroutine.
Thanks to Alexey Romanov for finding the original paper. See http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD249.PDF, page 28 (printed page number is 24). Not limited to functions.
From Software Engineering Stack Exchange: asked by fredoverflow, answered by kevin cline (CC BY-SA 4.0)
The difference between adapter and decorator?Software engineering practice
Decorator, attach additional responsibilities to an object dynamically.
Adapter, adapts interface of an existing class to another interface. Links
- https://stackoverflow.com/questions/42737096/design-patterns-adapter-pattern-vs-decorator-pattern
From Java interview (MIT)
Why do Python classes inherit object?Software engineering practice
Is there any reason for a class declaration to inherit from
object?In Python 3, apart from compatibility between Python 2 and 3, no reason. In Python 2, many reasons.
Python 2.x story:
In Python 2.x (from 2.2 onwards) there's two styles of classes depending on the presence or absence of
objectas a base-class:"classic" style classes: they don't have
objectas a base class:>>> class ClassicSpam: # no base class ... pass >>> ClassicSpam.__bases__ ()"new" style classes: they have, directly or indirectly (e.g inherit from a built-in type),
objectas a base class:>>> class NewSpam(object): # directly inherit from object ... pass >>> NewSpam.__bases__ (<type 'object'>,) >>> class IntSpam(int): # indirectly inherit from object... ... pass >>> IntSpam.__bases__ (<type 'int'>,) >>> IntSpam.__bases__[0].__bases__ # ... because int inherits from object (<type 'object'>,)
Without a doubt, when writing a class you'll always want to go for new-style classes. The perks of doing so are numerous, to list some of them:
Support for descriptors. Specifically, the following constructs are made possible with descriptors:
classmethod: A method that receives the class as an implicit argument instead of the instance.staticmethod: A method that does not receive the implicit argumentselfas a first argument.- properties with
property: Create functions for managing the getting, setting and deleting of an attribute. __slots__: Saves memory consumptions of a class and also results in faster attribute access. Of course, it does impose limitations.
The
__new__static method: lets you customize how new class instances are created.Method resolution order (MRO): in what order the base classes of a class will be searched when trying to resolve which method to call.
Related to MRO,
supercalls. Also see,super()considered super.
If you don't inherit from
object, forget these. A more exhaustive description of the previous bullet points along with other perks of "new" style classes can be found here.One of the downsides of new-style classes is that the class itself is more memory demanding. Unless you're creating many class objects, though, I doubt this would be an issue and it's a negative sinking in a sea of positives.
Python 3.x story:
Read the rest at the sourceFrom Stack Overflow: asked by tjvr, answered by Dimitris Fasarakis Hilliard (CC BY-SA 4.0)
What are MVP and MVC and what is the difference?Software engineering practice
Model-View-Presenter
In MVP, the Presenter contains the UI business logic for the View. All invocations from the View delegate directly to the Presenter. The Presenter is also decoupled directly from the View and talks to it through an interface. This is to allow mocking of the View in a unit test. One common attribute of MVP is that there has to be a lot of two-way dispatching. For example, when someone clicks the "Save" button, the event handler delegates to the Presenter's "OnSave" method. Once the save is completed, the Presenter will then call back the View through its interface so that the View can display that the save has completed.
MVP tends to be a very natural pattern for achieving separated presentation in WebForms. The reason is that the View is always created first by the ASP.NET runtime. You can find out more about both variants.
Two primary variations
Passive View: The View is as dumb as possible and contains almost zero logic. A Presenter is a middle man that talks to the View and the Model. The View and Model are completely shielded from one another. The Model may raise events, but the Presenter subscribes to them for updating the View. In Passive View there is no direct data binding, instead, the View exposes setter properties that the Presenter uses to set the data. All state is managed in the Presenter and not the View.
- Pro: maximum testability surface; clean separation of the View and Model
- Con: more work (for example all the setter properties) as you are doing all the data binding yourself.
Supervising Controller: The Presenter handles user gestures. The View binds to the Model directly through data binding. In this case, it's the Presenter's job to pass off the Model to the View so that it can bind to it. The Presenter will also contain logic for gestures like pressing a button, navigation, etc.
- Pro: by leveraging data binding the amount of code is reduced.
- Con: there's a less testable surface (because of data binding), and there's less encapsulation in the View since it talks directly to the Model.
Model-View-Controller
In the MVC, the Controller is responsible for determining which View to display in response to any action including when the application loads. This differs from MVP where actions route through the View to the Presenter. In MVC, every action in the View correlates with a call to a Controller along with an action. In the web, each action involves a call to a URL on the other side of which there is a Controller who responds. Once that Controller has completed its processing, it will return the correct View. The sequence continues in that manner throughout the life of the application:
Action in the View -> Call to Controller -> Controller Logic -> Controller returns the View.One other big difference about MVC is that the View does not directly bind to the Model. The view simply renders and is completely stateless. In implementations of MVC, the View usually will not have any logic in the code behind. This is contrary to MVP where it is absolutely necessary because, if the View does not delegate to the Presenter, it will never get called.
Presentation Model
Read the rest at the sourceFrom Stack Overflow: asked by Mike Minutillo, answered by Glenn Block (CC BY-SA 4.0)
Why do you think you're a good fit for our company?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)
