Added Support For Reals - #76
Open
Mathletesv wants to merge 40 commits into
Open
Conversation
Merged changes
Version update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lean-Auto can now handle Reals the same way it handles Ints whenever Mathlib is imported. The primary changes along with explanations are found in Auto/MathlibReal.lean and Auto/Lib/RealType.lean. The
RealTytypeclass is used to representRealin the embedding, so it is necessary to thread avariable (R? : Option ((R : Type) × RealTy R))throughout (this accounts for the majority of the changes in Auto/Embedding). The functiongetRealOpt(in Translation/LamUtils.lean) is called to provide R? and it returnsnoneunless Auto.MathlibReal has been imported by the calling file.Please let me know if you would like more explanation about anything or would like to meet to discuss my changes.
Some tests showing what lean-auto can prove while trusting smt solvers can be found in https://github.com/Mathletesv/lean-auto/blob/real-tests/Test/RealTests.lean.
This addition also enables Lean-smt to use Lean-auto's monomorphization to solve goals such as the ones in https://github.com/Mathletesv/lean-smt/blob/main/Test/AutoReals.lean