Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions EasyLean/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import Mathlib.Data.Real.Basic
import Mathlib.Tactic.Linarith

theorem mathd_algebra_513
(a b : ℝ)
(h₀ : 3 * a + 2 * b = 5)
(h₁ : a + b = 2) :
a = 1 ∧ b = 1 := by
sorry

theorem eq_four : ∀ a b c d : Nat, a = b → a = d → a = c → c = b := by
sorry
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Mathlib

theorem mathd_algebra_513 (a b : ℝ) (h₀ : 3 * a + 2 * b = 5) (h₁ : a + b = 2) : a = 1 ∧ b = 1 := by
constructor
· linarith [h₀, h₁]
· linarith [h₀, h₁]


29 changes: 29 additions & 0 deletions build_filtered.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

echo "Running lake build (quiet mode, errors only)..."

# Run lake build with --quiet, capture output and exit code
OUTPUT=$(lake exe cache get && lake build --quiet 2>&1)
EXIT_CODE=$?

# Count errors and warnings
ERROR_COUNT=$(echo "$OUTPUT" | grep -c "^error:" || true)
WARNING_COUNT=$(echo "$OUTPUT" | grep -c "^warning:" || true)

echo "════════════════════════════════════════════════"
echo "Build Summary:"
echo " Warnings: $WARNING_COUNT (suppressed in output below)"
echo " Errors: $ERROR_COUNT"
echo " Exit code: $EXIT_CODE"
echo "════════════════════════════════════════════════"

if [ $EXIT_CODE -ne 0 ]; then
echo ""
echo "❌ BUILD FAILED - Showing errors only:"
echo ""
echo "$OUTPUT" | grep -A 3 "^error:"
else
echo "✅ BUILD SUCCEEDED"
fi

exit $EXIT_CODE