Skip to content

Commit

Permalink
Update Normalised.agda
Browse files Browse the repository at this point in the history
  • Loading branch information
oisdk committed Jan 31, 2024
1 parent 957e798 commit 55c73c3
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Data/Permutation/Normalised.agda
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,12 @@ diffs-comp xs ys n =
xs ⊙ (ys ⊙+ 0 ⊙ n) ≡⟨ cong (λ e xs ⊙ e ⊙ n) (shift-0 ys) ⟩
xs ⊙ ys ⊙ n ∎


-- ⊕-hom : ∀ xs ys → [ xs ∙ ys ]↓ ≡ [ xs ]↓ ⊕ [ ys ]↓
-- ⊕-hom xs ⟨⟩ = refl
-- ⊕-hom xs (ys ∘⟨ x , y ⟩) with compare x y
-- ... | equal = ⊕-hom xs ys
-- ... | greater k = {!!}
-- ... | less k =
-- [ xs ∙ ys ]↓ ⊙⟨ x , k ⟩ ≡⟨ cong (_⊙⟨ x , k ⟩) (⊕-hom xs ys) ⟩
-- ([ xs ]↓ ⊕ [ ys ]↓) ⊙⟨ x , k ⟩ ≡⟨ {!!} ⟩
-- [ xs ]↓ ⊕ ([ ys ]↓ ⊙⟨ x , k ⟩) ∎

⊕-hom : xs ys [ xs ∙ ys ]↓ ≡ [ xs ]↓ ⊕ [ ys ]↓
⊕-hom xs ys =
inj-⊙ [ xs ∙ ys ]↓ ([ xs ]↓ ⊕ [ ys ]↓) λ n
[ xs ∙ ys ]↓ ⊙ n ≡⟨ norm-correct (xs ∙ ys) n ⟩
xs ∙ ys · n ≡⟨ ∙-· xs ys n ⟩
xs · ys · n ≡˘⟨ norm-correct xs (ys · n) ⟩
[ xs ]↓ ⊙ ys · n ≡˘⟨ cong ([ xs ]↓ ⊙_) (norm-correct ys n) ⟩
[ xs ]↓ ⊙ [ ys ]↓ ⊙ n ≡˘⟨ diffs-comp [ xs ]↓ [ ys ]↓ n ⟩
[ xs ]↓ ⊕ [ ys ]↓ ⊙ n ∎

0 comments on commit 55c73c3

Please sign in to comment.