cfahlgren1's picture
download
raw
4.53 kB
import OAI.Combinatorics.InfiniteMatroid.OrdinalRank
import OAI.Combinatorics.InfiniteMatroid.Columns
import OAI.Combinatorics.InfiniteMatroid.LocalBases
namespace OAI
section
open Set Filter Finset
open scoped Topology symmDiff
namespace InfiniteMatroidCounterexample
lemma signed_columns_positive (P N : Finset ColumnTag) (hPN : Disjoint P N) :
¬ DSmall (columnPattern column P N) := by
classical
let F := P ∪ N
let v (t : F) : Bool := decide (t.val ∈ P)
apply mt (fun h ↦ dSmall_mono h ?_) (pattern_positive F v)
intro x hx
constructor
· intro t ht
have he := hx ⟨t, Finset.mem_union_left _ ht⟩
simpa [v, ht, column] using he
· intro t ht hc
have hn : t ∉ P := fun hp ↦ Finset.disjoint_left.mp hPN hp ht
have he := hx ⟨t, Finset.mem_union_right _ ht⟩
have hf : x.2 (prefixString (columnString t) x.1) = false := by simpa [v, hn] using he
exact Bool.false_ne_true (hf.symm.trans hc)
def tagA (t : CIndex) : ColumnTag := (t,0)
def tagB (t : CIndex) : ColumnTag := (t,1)
def tagG (t : CIndex) : ColumnTag := (t,2)
def AColumn (t : CIndex) : Set D := column (tagA t)
def BColumn (t : CIndex) : Set D := column (tagB t)
def GColumn (t : CIndex) : Set D := column (tagG t)
def Ameet (F : Finset CIndex) : Set D := {x | ∀ t ∈ F, x ∈ AColumn t}
def KSmall (X : Set D) : Prop := ∃ F : Finset CIndex, DSmall (X ∩ Ameet F)
lemma Ameet_union (F H : Finset CIndex) : Ameet (F ∪ H) = Ameet F ∩ Ameet H := by
ext x
simp only [Ameet, Set.mem_ofPred_eq, Set.mem_inter_iff, Finset.mem_union]
constructor
· exact fun h ↦ ⟨fun t ht ↦ h t (Or.inl ht), fun t ht ↦ h t (Or.inr ht)⟩
· rintro ⟨hF,hH⟩ t (ht|ht)
· exact hF t ht
· exact hH t ht
lemma dSmall_kSmall {X : Set D} (h : DSmall X) : KSmall X := by
refine ⟨∅, ?_⟩
simpa [Ameet] using h
lemma kSmall_mono {X Y : Set D} (hY : KSmall Y) (hXY : X ⊆ Y) : KSmall X := by
obtain ⟨F,hF⟩ := hY
exact ⟨F,dSmall_mono hF (inter_subset_inter_left _ hXY)⟩
lemma kSmall_union {X Y : Set D} (hX : KSmall X) (hY : KSmall Y) : KSmall (X ∪ Y) := by
classical
obtain ⟨F,hF⟩ := hX
obtain ⟨H,hH⟩ := hY
refine ⟨F ∪ H, dSmall_mono (dSmall_union hF hH) ?_⟩
rw [Ameet_union]
intro x hx
rcases hx.1 with hxX|hxY
· exact Or.inl ⟨hxX,hx.2.1⟩
· exact Or.inr ⟨hxY,hx.2.2⟩
lemma Ameet_positive (F : Finset CIndex) : ¬ DSmall (Ameet F) := by
classical
apply mt (fun h ↦ dSmall_mono h ?_) (signed_columns_positive (F.image tagA) ∅ (by simp))
intro x hx t ht
exact hx.1 _ (mem_image.mpr ⟨t,ht,rfl⟩)
lemma kSmall_proper : ¬ KSmall univ := by
rintro ⟨F,hF⟩
exact Ameet_positive F (by simpa using hF)
noncomputable def KIdeal : SubsetIdeal D :=
⟨KSmall,dSmall_kSmall dSmall_empty, fun _ _ h hs ↦ kSmall_mono h hs,
fun _ _ hX hY ↦ kSmall_union hX hY, kSmall_proper⟩
lemma AColumn_compl_kSmall (t : CIndex) : KSmall (AColumn t)ᶜ := by
classical
refine ⟨{t}, ?_⟩
have he : (AColumn t)ᶜ ∩ Ameet {t} = ∅ := by ext x; simp [Ameet]
rw [he]
exact dSmall_empty
lemma Gpattern_kPositive (P N : Finset CIndex) (hPN : Disjoint P N) :
¬ KIdeal.small (columnPattern GColumn P N) := by
classical
rintro ⟨F,hF⟩
let P' := F.image tagA ∪ P.image tagG
let N' := N.image tagG
have hd : Disjoint P' N' := by
apply Finset.disjoint_left.mpr
intro u hu hv
obtain ⟨v,hvN,rfl⟩ := Finset.mem_image.mp hv
rcases Finset.mem_union.mp hu with hu|hu
· obtain ⟨t,ht,he⟩ := Finset.mem_image.mp hu
have : (0 : Fin 3) = 2 := congrArg Prod.snd he
have hv : (0 : ℕ) = 2 := congrArg Fin.val this
omega
· obtain ⟨t,ht,he⟩ := Finset.mem_image.mp hu
have htv : t = v := congrArg Prod.fst he
exact Finset.disjoint_left.mp hPN (htv ▸ ht) hvN
apply signed_columns_positive P' N' hd
apply dSmall_mono hF
intro x hx
refine ⟨⟨?_,?_⟩, ?_⟩
· intro t ht
exact hx.1 _ (Finset.mem_union_right _ (Finset.mem_image.mpr ⟨t,ht,rfl⟩))
· intro t ht
exact hx.2 _ (Finset.mem_image.mpr ⟨t,ht,rfl⟩)
· intro t ht
exact hx.1 _ (Finset.mem_union_left _ (Finset.mem_image.mpr ⟨t,ht,rfl⟩))
lemma exists_concrete_rank : ∃ R : RankModel D, R.ideal = KIdeal := by
obtain ⟨U,hUK,hG,hfinite⟩ := exists_rank_ultrafilter KIdeal GColumn Gpattern_kPositive
obtain ⟨R,hK,_⟩ := exists_rankModel KIdeal GColumn U hUK hG hfinite
exact ⟨R,hK⟩
end InfiniteMatroidCounterexample
end
end OAI

Xet Storage Details

Size:
4.53 kB
·
Xet hash:
5ace4997578234e900b364b27c2dbc1745fb5c363582a31e1eb59b302c23f3e8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.