スキル一覧に戻る
Arthur742Ramos

rweq-proofs

by Arthur742Ramos

0🍴 0📅 2026年1月18日
GitHubで見るManusで実行

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

GoalLemma / Tactic
RwEq (trans refl p) prweq_cmpA_refl_left or path_simp
RwEq (trans p refl) prweq_cmpA_refl_right or path_simp
RwEq (trans (symm p) p) reflrweq_cmpA_inv_left
RwEq (symm (symm p)) prweq_ss or path_simp
RwEq p prweq_refl or path_rfl

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です