Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Read about our upcoming Code of Conduct
on this issue
Open sidebar
isa-afp
afp-2019
Commits
d17090cd59d8
Commit
80e53873
authored
Feb 12, 2018
by
Alexander Bentkamp
Browse files
Remove use of Hilbert choice
--HG-- branch : deep_learning
parent
34a28de01acb
Changes
1
Hide whitespace changes
Inline
Side-by-side
thys/Deep_Learning/DL_Deep_Model.thy
View file @
d17090cd
...
...
@@ -509,16 +509,10 @@ shows "dim_row (A' ws) = (last rs) ^ N_half" "dim_col (A' ws) = (last rs) ^ N_ha
definition "Aw = tensors_from_net (witness_l rs) $ y"
definition "Aw' = ten2mat Aw"
definition "witness_weights =
(SOME ws. witness_l rs = inser
t_weights shared_weights (
deep_model_l rs) w
s)"
definition "witness_weights =
extrac
t_weights shared_weights (
witness_l r
s)"
lemma witness_weights:"witness_l rs = insert_weights shared_weights (deep_model_l rs) witness_weights"
proof -
have 0:"\<exists>x. witness_l rs = insert_weights shared_weights (deep_model_l rs) x"
unfolding weight_space_dim_def using shared_weight_net_witness insert_extract_weights_cong_shared
insert_extract_weights_cong_unshared witness_is_deep_model by (metis (full_types))
show "witness_l rs = insert_weights shared_weights (deep_model_l rs) witness_weights"
unfolding witness_weights_def using someI_ex[OF 0] by blast
qed
by (metis (full_types) insert_extract_weights_cong_shared insert_extract_weights_cong_unshared shared_weight_net_witness witness_is_deep_model witness_weights_def)
lemma Aw_def': "Aw = A witness_weights" unfolding Aw_def A_def using witness_weights by auto
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment