cfahlgren1/math / lean /OAI /Combinatorics /TwoWayAutomata /DeterministicTransport.lean
cfahlgren1's picture
download
raw
777 Bytes
import OAI.Combinatorics.TwoWayAutomata.DeterministicCore
import OAI.Combinatorics.TwoWayAutomata.Main
namespace OAI
namespace TwoWayComplementation
theorem TwoNFA.Deterministic.reindex {Sigma Q Q' : Type*} {A : TwoNFA Sigma Q}
(hA : A.Deterministic) (e : Q ≃ Q') : (A.reindex e).Deterministic := by
intro q symbol a ha b hb
have h := hA (e.symm q) symbol ha hb
apply Prod.ext
· exact e.symm.injective (congrArg (fun t : Q × Fin 3 => t.1) h)
· exact congrArg (fun t : Q × Fin 3 => t.2) h
theorem TwoNFA.Deterministic.pullAlphabet {Sigma Gamma Q : Type*} {A : TwoNFA Gamma Q}
(hA : A.Deterministic) (f : Sigma → Gamma) : (A.pullAlphabet f).Deterministic := by
intro q symbol
exact hA q (Sum.map id f symbol)
end TwoWayComplementation
end OAI

Xet Storage Details

Size:
777 Bytes
·
Xet hash:
903c9c3751e48a28e7f3c24ece6f8a7e0ff4e21102f6fa52d51fda49379e152c

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