Proof for mathd_algebra_513 #64
Open
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.
Proven lemmas: 1/1
The goal is to prove that for real numbers a, b ∈ ℝ, if 3a + 2b = 5 and a + b = 2, then necessarily a = 1 and b = 1. The proof is decomposed into two subgoals because the conclusion is a conjunction: first show a = 1, and then show b = 1. Both subgoals are handled simultaneously by a single strategy: after using
constructorto split the ∧ goal, Lean’slinarithtactic solves each equality directly from the two given linear equations h₀ and h₁. At this point, the full proof is complete: 2 out of 2 subgoals are solved, with no remaining obligations. An alternative (also described) would be to solve the system manually by rewriting b = 2 − a from h₁, substituting into h₀ to get a = 1, and then back-substituting to get b = 1, butlinarithneatly automates this linear-algebra step. The main “interesting strategy” here is leveraginglinarithto solve a 2×2 linear system without explicit substitution or rearrangement.