← Back to list

rweq-proofs
by Arthur742Ramos
⭐ 0🍴 0📅 Jan 18, 2026
SKILL.md
name: rweq-proofs description: Helps construct RwEq (rewrite equivalence) proofs using transitivity, congruence, and canonical lemmas from the LND_EQ-TRS system. Use when proving path equalities, working with quotients, or establishing rewrite equivalences in the ComputationalPaths library.
RwEq Proof Construction
Construct proofs of rewrite equivalence (RwEq).
Rewrite Hierarchy
Step p q -- single rewrite step
↓
Rw p q -- multi-step (reflexive-transitive)
↓
RwEq p q -- equivalence (symmetric-transitive)
Core Lemmas
Equivalence
rweq_refl : RwEq p p
rweq_symm : RwEq p q → RwEq q p
rweq_trans : RwEq p q → RwEq q r → RwEq p r
Unit Laws
rweq_cmpA_refl_left : RwEq (trans refl p) p
rweq_cmpA_refl_right : RwEq (trans p refl) p
Inverse Laws
rweq_cmpA_inv_left : RwEq (trans (symm p) p) refl
rweq_cmpA_inv_right : RwEq (trans p (symm p)) refl
Associativity
rweq_tt : RwEq (trans (trans p q) r) (trans p (trans q r))
Congruence
rweq_trans_congr_left : RwEq q₁ q₂ → RwEq (trans p q₁) (trans p q₂)
rweq_trans_congr_right : RwEq p₁ p₂ → RwEq (trans p₁ q) (trans p₂ q)
rweq_symm_congr : RwEq p q → RwEq (symm p) (symm q)
Proof Strategies
Calc Block (Preferred)
theorem my_proof : RwEq p q := by
calc p
_ ≈ p' := rweq_cmpA_refl_left
_ ≈ q := rweq_symm rweq_tt
Transitivity Chain
theorem my_proof : RwEq p q := by
apply rweq_trans h₁
exact h₂
Congruence for Subterms
-- Goal: RwEq (trans p₁ q) (trans p₂ q)
exact rweq_trans_congr_right h -- where h : RwEq p₁ p₂
Quick Reference
| Goal | Lemma / Tactic |
|---|---|
RwEq (trans refl p) p | rweq_cmpA_refl_left or path_simp |
RwEq (trans p refl) p | rweq_cmpA_refl_right or path_simp |
RwEq (trans (symm p) p) refl | rweq_cmpA_inv_left |
RwEq (symm (symm p)) p | rweq_ss or path_simp |
RwEq p p | rweq_refl or path_rfl |
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon