-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduced packed_cfg_split to distributivity lore
- Loading branch information
Showing
7 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
DeBruijnSSA/BinSyntax/Rewrite/Region/Structural/Distrib.lean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
import DeBruijnSSA.BinSyntax.Rewrite.Region.Structural.Sum | ||
import DeBruijnSSA.BinSyntax.Rewrite.Region.Structural.Product | ||
import DeBruijnSSA.BinSyntax.Rewrite.Region.Compose.Cast | ||
import DeBruijnSSA.BinSyntax.Rewrite.Term.Structural.Distrib | ||
|
||
namespace BinSyntax | ||
|
||
variable [Φ: EffInstSet φ (Ty α) ε] [PartialOrder α] [SemilatticeSup ε] [OrderBot ε] | ||
|
||
namespace Region | ||
|
||
open Term.Eqv | ||
|
||
theorem Eqv.packed_in_pack_coprod {Γ : Ctx α ε} {R L : LCtx α} | ||
{G : (i : Fin R.length) → Eqv φ (⟨R.get i, ⊥⟩::Γ) L} | ||
: (pack_coprod G).packed_in (Δ := Δ) | ||
= vsubst (distl_pack (e := ⊥) (R := R) (X := Γ.pack)).subst0 ( | ||
pack_coprod (λi => ((G (i.cast R.length_dist)).packed_in).cast (by rw [LCtx.get_dist]; rfl) rfl) | ||
) | ||
:= sorry | ||
|
||
theorem Eqv.packed_in_pack_coprod_arr {Γ : Ctx α ε} {R L : LCtx α} | ||
{G : (i : Fin R.length) → Eqv φ (⟨R.get i, ⊥⟩::Γ) (A::L)} | ||
: (pack_coprod G).packed_in (Δ := Δ) | ||
= ret (distl_pack (X := Γ.pack)) | ||
;; pack_coprod (λi => acast R.get_dist ;; (G (i.cast R.length_dist)).packed_in) | ||
:= by rw [packed_in_pack_coprod, ret_seq]; congr; sorry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters